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.....

[807 byte] By [SURYAa] at [2007-11-26 22:53:21]
# 1
Well, did you put your jar files of your ejbs into the classpath? It should be working fine.Clarence Loh
clarenceloha at 2007-7-10 12:16:33 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...