EJB 3.0 Environment Variables

I am trying to create environment variables within my project, but it doesn't seem to recognize the env-entry within the sun-ejb.jar.xml file. I am using EJB 3.0, which could be the problem... is there a replacement for env-entries? If yes... what is it and how do I use it please? 10x.

I am using Netbeans 5.5 with Java Application Server and EJB 3.0

[365 byte] By [T@koa] at [2007-11-27 5:13:41]
# 1

env-entry is not defined within sun-ejb-jar.xml.It's part of the standard Java EE component

environment and is fully describable without any vendor-specific metadata.

Just add it to ejb-jar.xml within the associated EJB component.You then look it up via

new InitialContext("java:comp/env/<env-entry-name>"), where the portion of the lookup String

relative to "java:comp/env/" must match the value in the env-entry-name of the env-entry.

--ken

ksaksa at 2007-7-12 10:35:22 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...