• Post Reply Bookmark Topic Watch Topic
  • New Topic

clustering

 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we thought of implementing clustering to our application.we r using oc4j9.0.5

should i make any changes to my code if i implement clustering like all javaobjects should be serializable.

previously in our code only some objects has implemented serializable interface.

now if i implement clustering Is it mandatory to implement serializable interface for all java objects.

another query is that all java objects should be Singleton classes?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kesava chaitanya:

should i make any changes to my code if i implement clustering like all javaobjects should be serializable.

Any object to be passed over the network in a distributed application must be serializable. The typical pattern is to have serializable DTOs for passing data between distributed components.

Originally posted by kesava chaitanya:

another query is that all java objects should be Singleton classes?


A Singleton is a pattern designed to ensure that one and only one instance of an object exists within a single JVM. It has nothing to do with clustering.

[ September 01, 2005: Message edited by: Paul Sturrock ]
[ September 01, 2005: Message edited by: Paul Sturrock ]
 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ours is a distrubuted application.but some objects only(some hundred's of objects are there) has implemented serializle interface.

but application is working fine in distrubuted application environment even though we are not implemented serializle interface for all java objects.

in a clustering environment should we implement serializle interface for all hundred's of java objects.

another question is if we implement clustering what sort changes shall we make at code level.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If its already a distributed application then it should be deployable without changes in a cluster. I can't say whether some object need serialized without knowing how they are used. It is perfectly possible in a clustered app. to have objects which are not serializable. For example a DAO (depending on how you implement it) is not going to be passed over the netweork so why serialize it?


another question is if we implement clustering what sort changes shall we make at code level.

If you have implemented your app. as per the J2EE spec. then the answer is none.
 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK UR FOUR REPLY
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!