-
1. Re: ESB and EJB3 Annotations
tfennelly May 2, 2008 11:28 AM (in response to nraghava)Sorry... are you saying you've added EJB3 annotations to a custom ESB Action class?
-
3. Re: ESB and EJB3 Annotations
nraghava May 2, 2008 11:34 AM (in response to nraghava)Yes. That is correct.
-
4. Re: ESB and EJB3 Annotations
tfennelly May 2, 2008 11:37 AM (in response to nraghava)In the interests of clarity... please provide a snippet of code so we can see what you're trying to do.
-
5. Re: ESB and EJB3 Annotations
nraghava May 2, 2008 12:12 PM (in response to nraghava)My ESB Action class snippet
NOTE: I am not using the Message object for anythingpublic class SampleAction extends AbstractActionLifecycle { @EJB private HelloWorldService helloWorldService; public Message sampleInvoker(Message message) throws Exception { System.out.println(getHelloWorldService().sayHello("ESB")); ...... return message; }
My HelloWorld api@Remote public interface HelloWorldService { String sayHello(String message); }
My HelloWorld service has been packaged into a ear and deployed. The esb component is a .esb with one service in it. -
6. Re: ESB and EJB3 Annotations
burrsutter May 2, 2008 1:39 PM (in response to nraghava)See quickstart business_service as that is the current way to use a SLSB.
@EJB is not presently an expected use case, but it is a good suggestion. Please make a jira for it so we can track it as a possible future enhancement.
Burr -
7. Re: ESB and EJB3 Annotations
kconner May 2, 2008 1:42 PM (in response to nraghava)You cannot embed EJB annotations within the classes contained in the esb artifact as they require a different deployer.
The only way to accomplish this within an esb artifact is to include an embedded war file (so the war deployer picks it up) or an embedded ear file. You cannot embed the EJB jar directly into the esb artifact.
Go through the webservice quickstarts and look at the ones that use 181 annotations. -
8. Re: ESB and EJB3 Annotations
nraghava May 5, 2008 10:41 AM (in response to nraghava)Thanks for the replies.
I have opened a JIRA for this: http://jira.jboss.com/jira/browse/JBESB-1704