[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
what all Exception can be tharown by Terracotta Session ?  XML
Forum Index -> Terracotta for Web Sessions
Author Message
Niket Shah

neo

Joined: 04/26/2007 05:08:12
Messages: 1
Offline

What all exception can be thrown by terracotta ( if any ) which needs attention at the applcaition lavel ?

If Terracotta throws some exception they how whould you take care of that as your application is concern?

Thanks
~Niket Shah
[Yahoo!]
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

The only Exceptions we throw are UnlockedSharedObjectException and NonPortableObjectException. These aren't things one handles at runtime though. They are the kinds of things one handles during developement. We do have some JMX events one can use to determine cluster membership, ie. nodes joining or leaving the cluster.

http://www.terracotta.org/confluence/display/docs1/JMX+Guide#JMXGuide-ClusterEventsandClusterNodeData

The chatter demo also takes advantage of this feature.

Want to post to this forum? Join the Terracotta Community
kbhasin

consul

Joined: 12/04/2006 13:08:21
Messages: 340
Offline

Also, the exceptions Steve mentions above are "unchecked exceptions" subclassed from RuntimeException and it is not advisable to eat them up in your code. You should try and fix the actual problem by looking at the stack trace.

Regards,
Kunal Bhasin.

Regards,

Kunal Bhasin,
Terracotta, Inc.

Be a part of the Terracotta community: Join now!
 
Forum Index -> Terracotta for Web Sessions
Go to:   
Powered by JForum 2.1.7 © JForum Team