This content has been marked as final.
Show 3 replies
-
1. Re: Do not start long-running conversations in direct calls to EJBs
ulrike Apr 3, 2008 1:38 PM (in response to ulrike)code snippets...
@Name("myAction") @Scope(ScopeType.EVENT) public class MyAction implements Serializable { private static final long serialVersionUID = -5117712464229825663L; @Restrict("#{identity.loggedIn}") public String test() { return "OK"; } }
@Name("myService") @Stateless @WebService(name="myService", serviceName="MyService") public class MyServiceImpl implements MyService { @WebMethod public boolean login(String username, String password) { Identity.instance().setUsername(username); Identity.instance().setPassword(password); Identity.instance().login(); return Identity.instance().isLoggedIn(); } @WebMethod public boolean logout() { Identity.instance().logout(); return !Identity.instance().isLoggedIn(); } @WebMethod public String test() { return getMyAction().test(); } private MyAction getMyAction() { return (MyAction)Component.getInstance(MyAction.class, true); } ... }
-
2. Re: Do not start long-running conversations in direct calls to EJBs
ulrike Apr 3, 2008 5:16 PM (in response to ulrike)Solved...
Moved the standard-jaxws-endpoint-config.xml from ear/META-INF to ear/jar/META-INF and now it works... -
3. Re: Do not start long-running conversations in direct calls to EJBs
gred May 27, 2009 4:35 PM (in response to ulrike)Can you please tell me to which jar you placed the standard-jaxws-endpoint-config.xml file??
was it the ejb jar?
And what version of seam are you using??Thank you!