[jboss-user] [JBoss jBPM] - Re: Error getting CommandServiceBean

salaboy21 do-not-reply at jboss.com
Tue Sep 16 18:35:28 EDT 2008


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#4176951

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176951



More information about the jboss-user mailing list