[jboss-user] [JBoss jBPM] - Re: Invoke POJO or EJB Services

pravot do-not-reply at jboss.com
Fri Dec 1 11:08:56 EST 2006


Hello as far as i now there is no "off the shelf" parameters to plug an EJB on an action handler (although i did not dig into Jira requests) but you can easily code it :
 
  | 	public void execute(ExecutionContext context) throws Exception {
  | 		String sessionName = (String) context.getContextInstance().getVariable(
  | 				"SessionName");
  | 		EcnAction remote = null;
  | 		try {
  | 			InitialContext ctx = new InitialContext();
  | 			remote = (EcnAction) ctx.lookup(localAdress);
  | 			remote.session(sessionName);
  | 		} catch (Exception e) {
  | 			log.error("Cannot marshal " + localAdress + "-" + e.getMessage());
  | 		}
  |                 remote. blablab
  |                context.leaveNode();
  | }
  | 
  | 
Hope this helps

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990480#3990480

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



More information about the jboss-user mailing list