Hi,

 When im looking up a home interface im putting
properties in the InitialContext.
 My problem is how to access this in the enterprise
bean. I need to do this beacuse i need the language of
the client in the enterprise bean (without passing it
as a parameter to the bean). If i can get the user
name  why cant i get all other parameters also in the
bean.
 My requirement is to get the locale of the user in
the enterprise bean. I cant pass the locale as a
parameter to the method.

Somebody please reply as whether this can be done or
not.


    String user = null;
    String password = null;
    Properties properties = null;
    try {
      properties = new Properties();
      properties.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
      properties.put(Context.PROVIDER_URL, url);
      properties.put(Context.LANGUAGE, "en");
      new InitialContext(properties);


Regards
Cherry

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to