I have encountered several problems while using environment entries. Indeed,
I define entries in my ejb-xml.jar. I compile it as well as my interfaces my
interfaces. I write a bean which implements it and in the, for and
setSessionContext, I try to fetch the entry for this bean (I have omitted
exception handling for the sake of simplicity):


void setSessionContext(SessionContext context) {
    this.context = context;

    Context initial = new InitialContext();
    // The following line raises a NamingException
    Integer entry = initial.lookup("java:comp/env/entry");
}

The NamingException I got tells me it cannot find the entry since there is
no java:comp/env path.

I think I correctly set my java.naming.provider.url and java.naming.factory
properties and checked my jndi.properties.

I got the same problem with javax.transaction.UserTransaction when I tested
it.

Any solution?


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