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
InitialContext ini = new InitialContext(); NamingContext o = (NamingContext) ini.lookup("java:comp/env");
Give a look in http://java.sun.com/products/ejb/docs.html#specs EJB 2.1 doc item 126.96.36.199 and item 188.8.131.52. Explain the "standard" way to use "EJB properties".
If you want to do what Im imagine you can create a setLocale() method in case of a SFSB.