This content has been marked as final.
Show 1 reply
-
1. Re: Invoke POJO or EJB Services
pravot Dec 1, 2006 11:08 AM (in response to mailinator)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