-
1. Re: Can EJB have an application scope?
peterj Oct 2, 2008 10:49 AM (in response to mabimal)Scopes are associated with web applications. An EJB, on the other hand, is a back-end resource that can be used by multiple web applications, and each web application has its own application scope. So which application scope would the EJB use if there could be multiple ones?
-
2. Re: Can EJB have an application scope?
mabimal Oct 3, 2008 12:23 AM (in response to mabimal)Thank you Peter J
Now the concept is a bit clear to me.
Regards
Mabimal -
3. Re: Can EJB have an application scope?
mabimal Oct 6, 2008 5:50 AM (in response to mabimal)Hi PeterJ,
I have written the connectionpool code in EJB and it gets established by the first call of portlet and i am in need to hold the established connection continuously so that other portlets can access the data. How can i maintain this level of persistence?
Please Help me..!
Regards
Mabimal -
4. Re: Can EJB have an application scope?
peterj Oct 6, 2008 12:18 PM (in response to mabimal)You do not want to do that. Let the app server manage the database connection pool for you. Your EJB should get a connection from the app server when it needs to do database processing, and then release the connection when it is done.