Hi,
I believe you are suppose to use      lookup("java:comp/UserTransaction")
If this doesn't work you can try to Enumerate through the Context to what's
there.
Eric :-)

Elham Chandler wrote:

> Hi,
>
> I have the environment setup correctly to bring up EBJServer, however when
> running the entity bean example I am getting :
>
> $ java eb.ClientAccount AccountImplHome
> Getting a UserTransaction object from JNDI
> Cannot lookup UserTransaction: javax.naming.NoInitialContextException: Need to 
>specify class name in environment or system property, or as an applet parameter, or 
>in an application resource file:  java.naming.factory.initial
>
> My CLASSPATH is set to :
>
> 
>:/work/bullsoft/jonas_jdk1.2/examples/classes:/u/elham/jarfiles/jndi.jar:$/u/elham/jarfiles/lib/providerutil.jar:/u/elham/jarfiles/lib/rmiregistry.jar:/u/elham/jarfiles/ejb.jar:/u/elham/jarfiles/jta-spec1_0_1.jar:/u/elham/jarfiles/jdbc2_0-stdext.jar:/work/bullsoft/jonas_jdk1.2/lib/RMI_jonas.jar:/pd/local/java/jdk1.2/lib:/vobs/jdbc:.
>
> Could you please let me know what I am doing to get this error ?
>
> Thanks
>
> Elham
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to