No, I believe an env-entry is only accessible within the java:comp
namespace, which is inacessible to non-J2EE clients. In fact, the
env-entry as declared below is not even accessible to other EJBs because
you need to declare it for every bean that refers to it (in the
deployment descriptor).
Some app servers (such as the reference implementation) support
J2EE-clients, so that you can run your client within a J2EE container,
therefore, giving you access to the java:comp namespace. I don't know
if JBoss supports this. Anybody knows?
Victor
----- Original Message -----
From: "Richard Hutton" <[EMAIL PROTECTED]>
Date: Thursday, June 7, 2001 2:36 pm
Subject: [JBoss-user] <env-entry>
> Hi
>
> Is it possible to create environment entries in jndi which then
> can be then
> looked up
> outside of the app server
>
> e.g <env-entry>
> <description>test</description>
> <env-entry-name>TEST_ENTRY</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>test value</env-entry-value>
> </env-entry>
> I have done this in the web.xml file and have an empty jboss-
> web.xml file
> under WEB-INF works fine when
> a servlet does a look up e.g java:comp/env/TEST_ENTRY works fine.
> Unfortunately i get a NameNotBoundException when run
> ocally( lookup(TEST_ENTRY) & lookup(env/TEST_ENTRY)
>
> Any thoughts?
>
> Richard
>
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user