I think you missed to copy the list..
Sure; In my startup class I call a mthod that executes this code. It basically registers the JTS driver (makes sure it has been loaded) and then binds a subjective name to JNDI which is the name of my default connection pool. (poolName is apssed in from a configuration file) Class.forName("weblogic.jdbc.jts.Driver").newInstance(); Context localContext = new InitialContext(); localContext.rebind("weblogic.jdbc.defaultPoolName" ,poolName); So later in the life of the app server, my beans can retrieve the default pool name from JNDI. //Nicholas --- Shiv Kumar <[EMAIL PROTECTED]> wrote: > Hi Nicholas > > > 1. In your application server startrup, read the > > runtime values from the properties files and place > > them in the JNDI tree where they can be retrieved > at > > runtime in your beans. > > I understand the first part, namely 'read the values > from properties file'. In > an earlier post on the same thread, Chandra Sekaran > mentioned about this in > detail. > > But can you explain more about the second part, > which is 'place them in the JNDI > tree'. Did you mean to say, read from properties > file and bind to env context? I > thought the bean's env was read only. Even if it > were read-write, the env > context is local to a bean. Is there a way to write > to the env context in one > bean and read it from another? A small code > fragement would probably answer all > my questions :-) > > Thanks for the reply. > > -- > shiv > [EMAIL PROTECTED] > > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.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". > ===== __________________________________________________ Do You Yahoo!? Kick off your party with Yahoo! Invites. http://invites.yahoo.com/
