• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Best servlet session persistance mechanism

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I wanted to know:
Which servlet session persistence mechanism offers the highest performance in weblogic?
In-memory replication
Filesystem persistence
JDBC persistence
Depends on the hardware being used
I think its the In-memory replication but cannot find it written in the pdf docs?
Thanx
faiza
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Faiza,
Take a look at Tangosol's Coherence product. It comes with a Servlet 2.3 In-Memory HTTP Session Replication Module that guarantees session failover along with providing the ability to fully utilize non-sitcky load-balancing.
Note: WebLogic 7.0 is Servlet 2.3 compatible.
Later.
 
faiza athar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess you'r mistaken. Searching the weblogic pdf's i found the answer...its In-memory replication.
Thanx
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rob Misek:
Hi Faiza,
Take a look at Tangosol's Coherence product. It comes with a Servlet 2.3 In-Memory HTTP Session Replication Module that guarantees session failover along with providing the ability to fully utilize non-sitcky load-balancing.
Note: WebLogic 7.0 is Servlet 2.3 compatible.
Later.


Hey Rob,
I have always heard good things about Coherence and I respect the opinions of you and Cameron when I read them in the various newsgroups. Now on to the real reason I replied, the client I am currently working for wants to add clustering to their J2EE Application but is balking at the price upgrading their WLS licenses to clustered versions. Since they only really need HttpSession Replication (web interface is the only entry point for the application), Coherence seems a perfect fit.
I have a few quick questions though. I downloaded the evaluation and was reading thru the docs, everything seems very easy. Setup is extremely simple, but there are very few details on how Coherence works. Do you use IP Multicast? If so, is the address configurable? If not, how is communication handled? Do all nodes have to be on the same network segment? Can you have multiple separate clusters in the same segment? How is this handled? Do you using passive replication like WebLogic (primary and secondary servers) or do you use active replication (everyone gets a copy)? Does the load balancer need any knowledge of the cluster or can it just round-robin requests? Finally, I see WebLogic 7.0 is explicitly mentioned as being supported, would it be reasonable to assume Coherence would also work on WebLogic 6.1 since it support Servlet 2.3?
Sorry for all the questions.
 
Rob Misek
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris,
> Do you use IP Multicast? If so, is the address configurable? If not, how is communication handled?
Coherence uses UDP Multicast and Unicast to communicate. This is configurable in the tangosol-coherence.xml configuration file located at the root of the coherence.jar file.
>Do all nodes have to be on the same network segment?
All nodes need to be accessible by Multicast. You can configure the Time-To-Live of the Multicast messages which allows you to limit the life of the Multicast message.
> Can you have multiple separate clusters in the same segment? How is this handled?
You can have multiple separate clusters by either:
1) Having the different clusters run on different Multicast IP/Port combinations.
-or-
2) By separating them by having differenct com.tangosol.net.CacheService s running.
> Do you using passive replication like WebLogic (primary and secondary servers) or do you use active replication (everyone gets a copy)?
The Servlet 2.3 HTTP Session Replication Module uses Active Replication.
> Does the load balancer need any knowledge of the cluster or can it just round-robin requests?
Since we use Active Replication the load balancer only needs to be aware of the active nodes in the cluster and you can use non-sticky loadbalancing.
> Finally, I see WebLogic 7.0 is explicitly mentioned as being supported, would it be reasonable to assume Coherence would also work on WebLogic 6.1 since it support Servlet 2.3?
Upon further investigation WebLogic 6.1 does not fully support the Servlet 2.3 spec so there could be some issues that arise but since with a Development License (FREE) of the Coherence you are supplied the source for the Servlet 2.3 HTTP Session Replication Module you are free to work around any issues that may arise.
Later.
 
Rob Misek
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Faiza,

I guess you'r mistaken. Searching the weblogic pdf's i found the answer...its In-memory replication.


Yes, BEA's fastest built-in implementation is WebLogic in-memory session replication. However, it does not guarantee the replication of the HTTP Session data, nor is it the fastest solution available for WebLogic.
Later.
reply
    Bookmark Topic Watch Topic
  • New Topic