Look.. here i made it thru injection.. but it's the same:
| @EJB(mappedName="ejb/CommandServiceBean") RemoteCommandServiceHome
cmdService;
|
|
and then in one method:
| try {
| cmdService.create().execute(cmd);
| } catch (CreateException e) {
| e.printStackTrace();
| } catch (RemoteException e) {
| e.printStackTrace();
| }
|
You must use RemoteCommandServiceHome because it's EJB 2.1 compatible and then use
the method create(), to call the real methods!
I Hope it helps!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176951#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...