Hi,
i just trying to access the environment of a client (swing) that is calling a
session bean.
The client has a property "locale" set in which the current language is stored.
I have to read this language in the session bean.
In ejb2.1 this was possible using the sessioncontext
| context.getEnvironment().getProperty("locale");
|
I'm using Jboss 4.0.4SP1 with EJB RC5.
The api of the SessionContext says, that this is now deprecated and i should
use java:comp/env instead.
How can i solve this?
I tried:
| InitialContext ini = new InitialContext();
| NamingContext o = (NamingContext) ini.lookup("java:comp/env");
|
But this will throw an NameNotBoundException.
Is there a manual for that?
Thanks for your help
Martin
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923532#3923532
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923532
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user