Suresh Kethireddy wrote:Your initCtx = new InitialContext(); won't work from a client. You need to create the InitialContext by passing it values in a HashMap that tell it where to look up the EJBs from. It works in JSF because that is running in a container and so the context is created from that server's settings.
Here the server is local oc4j server(localhost)
The same is getting called when i call it from jsf, but not from the client.
The call to ejb from delegator is like below(delegator's method is called from client/jsf):
initCtx = new InitialContext();
LawyerCronJobSessionEJBHome lawyerCronJobSes =
lawyerCronJobSessionEJB = lawyerCronJobSes.create();