0

How to get Executions.getCurrent() from a RESTful request

asked 2013-08-25 05:12:36 +0800

chaudh76 gravatar image chaudh76
1 1

Hi,
I am implementing some RESTful API in a ZK applications. I need some features provided by Executions, but there is a problem inside. Because RESTful request is stateless, so the Executions.getCurrent() does not attach to the web context; therefore I always get NPE when invoking Executions.getCurrent().
So is there any solution to initialize the Executions when processing RESTful request to avoid NPE? Thank you so much

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-08-25 05:12:36 +0800

Seen: 5 times

Last updated: Aug 25 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More