How to access EJB from a portlet
hi friends...
How to access an EJB from a Portlet.
I've tried but its not working u have any idea Plz help me out...
The scenario is I have portal running in a machine & appserver(weblogic) running in another machine and want to access EJB from my portal. I have tried with the t3 protocol and iiop but it is not working
The code i have use
Properties props = new Properties();
props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
props.put(javax.naming.Context.PROVIDER_URL, "t3://10.1.87.46:7031");
it is giving me a nullpointer exception when i try to access the method in the ejb , it is not able to call that method...
Plz help me out to resolve this situation
Thnx in Advance.....

