Re: getting the datasource ref in a gbean

2006-03-07 Thread David Jencks
On Mar 7, 2006, at 11:14 PM, Manu George wrote: Hi , I have a final object (SessionFactory of hibernate) that I need in the JNDI context of an application. Since Geronimo does not have a global JNDI Context I am planning to write a GBean to initialize the Session factory and then

Re: getting the datasource ref in a gbean

2006-03-07 Thread Manu George
Hi ,    I have a final object (SessionFactory of hibernate)  that I need in the JNDI context of an application. Since Geronimo does not have a global JNDI Context I am planning to write a GBean to initialize the Session factory and then in the application provide the gbean-ref. Does this featu

Re: getting the datasource ref in a gbean

2006-03-06 Thread David Jencks
On Mar 6, 2006, at 8:22 AM, Manu George wrote: Hi, I have a geronimo-web.xml with a gbean defined inside. I am starting a service with the gbean which starts a service that tries to get a datasource from the InitialContext. I have given the resource-ref in geronimo-web.xml It seems

getting the datasource ref in a gbean

2006-03-06 Thread Manu George
Hi,   I have a geronimo-web.xml with a gbean defined inside. I am starting a service with the gbean which starts a service that tries to get a datasource from the InitialContext.  I have given the resource-ref in geronimo-web.xml It seems that the gbean is starting first before the datasource i