The Artima Developer Community
Sponsored Link

News & Ideas Forum (Closed for new topic posts)
Interview with Dean Jacobs on Clustering in J2EE

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stanley Kohut

Posts: 59
Nickname: velcro
Registered: Mar, 2003

Interview with Dean Jacobs on Clustering in J2EE Posted: Mar 30, 2003 9:31 PM
Reply to this message Reply
Advertisement
Dean Jacobs says "When you talk about clustering in J2EE, you have to think about, for each of the different APIs, whether it's JSP or EJB or JMS; you have to think about what's the state that needs to be managed in the cluster."

Read the text of theserverside interview or watch streaming video of the interview here.

http://www.theserverside.com/home/thread.jsp?thread_id=18595&article_count=1

Here is an excerpt:

What are some of the ways that J2EE vendors implement clustering?

When you talk about clustering in J2EE, you have to think about, for each of the different APIs, whether it's JSP or EJB or JMS; you have to think about what's the state that needs to be managed in the cluster. And generally there's three kinds of things we do associated with treatement of state. First is for stateless services. This would include all of the factories like EJBHome or a Connection Factory for JMS or a JDBC connection factory. Stateless services, you could put each one on a member of the cluster and switch between them at will; it doesn't matter which one you hit. So that's really about just load balancing. The next group of services are where you want to keep some kind of state in memory but it's not fundamentally persistent, it does not need to go to a disk. That would be a JSP Servlet Session state or a Stateful Session Bean. And for those there's issues about how you find it in the cluster. And a vendor may choose to do in-memory replication with say primary and secondary so if you lose the primary copy of the state, you could fail over to the secondary. Third class is services which are backed by state which is fundamentally persistent. This includes entity beans, JMS destinations, these sorts of services. And there a bunch of techniques around those such as caching things in memory or things like singleton services that allow you to maintain full transactional consistency with the backend database.

What do you think of Dean Jacob's ideas on J2EE?

Topic: Jason Hunter on Servlet 2.4 Previous Topic   Next Topic Topic: Flash Goes Solo

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use