Hi!

>> You don't get the environment entries from the entity context. Are you
>> referring to getEnvironment()? That has been deprecated. Use the
>> java:/comp/env JNDI namespace instead (i.e. new
>> InitialContext().lookup("java:comp/env/jdbc/BeanDS")).
>
>Yes, I've tried in the same manner as said, excepting the last part from
the
>lookup url part - jdbc/BeanDS. I though that I could get them without
knowing
>the whole JNDI path - through the getEnvironment method after the lookup:
>
>try {
>    Context ctx = (Context) (new InitialContext()).lookup("java:comp/env");
>    Hashtable hash = ctx.getEnvironment();

This is not how it works. The environment you can get from ctx has nothing
to do with EJB.

You should do:
Context ctx = (Context) (new InitialContext()).lookup("java:comp/env");
NamingEnumeration enum = ctx.list();

/Rickard




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to