hi all,
im looking into strategies concerning caching of ejbhome references and initialcontexts in weblogic 5.1, using the service locator pattern.
does this have a proven effect, or does wls cache these things in the jndi implementation?
and, does caching the homes have any security sideeffects?
any pointers would be helpful.
sincerely
morten wilken
-
ejbhome and initialcontext caching (2 messages)
- Posted by: morten wilken
- Posted on: March 07 2002 06:37 EST
Threaded Messages (2)
- ejbhome and initialcontext caching by Kapil Israni on March 11 2002 13:47 EST
- ejbhome and initialcontext caching by Michael Homeijer on March 13 2002 06:23 EST
-
ejbhome and initialcontext caching[ Go to top ]
- Posted by: Kapil Israni
- Posted on: March 11 2002 13:47 EST
- in response to morten wilken
well most of app servers usually implement home object caching. i know WebSphere does, not sure bout WebLogic.
Anyway its still a good idea to cache Home and initial context objects. makes your app more portable across app servers. remember not all app servers cache them.
-
ejbhome and initialcontext caching[ Go to top ]
- Posted by: Michael Homeijer
- Posted on: March 13 2002 06:23 EST
- in response to Kapil Israni
I have an additional question on the strategy for ejbhome caching:
I have created an EjbHomeFactory as described in the EJB Design patterns book. For every type of home interface, I store one instance returned from the jndi lookup in my factory.
Recently I saw some code that kept a whole pool of instances for every type of home interface.
Have I created some kind of bottleneck in my code? Does this mechanism prevent me from scaling my app because all beans will be created through the same home interface? Or is the code I saw needless complex?