• Post Reply Bookmark Topic Watch Topic
  • New Topic

EjbHome caching  RSS feed

 
mridul das
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have two applications running on two different Weblogic 8.1 servers. Both are clustered.
There are some points of integration between the two.
We cache the ejbHome references in static variables in the Servicelocator.
Suppose one server goes down and then comes up while the other is running, the cached ejbHome references to that server still exists. Calling ejbHome.create() on that reference is not ausing any problem if <home_is_clusterable> is True. However if it is false it throws an Exception.
Is it a good idea to cache the home references. Why is there no problem if
<home_is_clusterable> is True.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When home-is-clusterable it means that EJB is available in all servers of the cluster. SO if create call when made on one server fails it invokes it on another server.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!