[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]
Clustering a bean with an instance of Commons Logging  XML
Forum Index -> Terracotta for Spring
Author Message
battags

neo

Joined: 12/06/2006 08:24:53
Messages: 2
Location: NJ
Offline

I am trying to cluster a bean with an instance of Commons Logging in it and it isn't working.

I obviously don't want to cluster the logging instance. Is there any way to disable the clustering of the logging instance. I've tried excluding classes, excluding fields, etc.

Thanks
-Scott
[Yahoo!] aim icon [MSN]
battags

neo

Joined: 12/06/2006 08:24:53
Messages: 2
Location: NJ
Offline

in case this will help anyone I got it to work by declaring the field to be transient. (The Eclipse plugin is extremely helpful with this)
[Yahoo!] aim icon [MSN]
tgautier

seraphim

Joined: 06/05/2006 12:19:26
Messages: 1781
Offline

Glad you solved the problem.

You might also consider using a static field for your Commons Logging object.

Taylor
[WWW]
ekulesho

master

Joined: 12/04/2006 08:49:08
Messages: 57
Offline

in case this will help anyone I got it to work by declaring the field to be transient. (The Eclipse plugin is extremely helpful with this) 
You can also do this in tc-config on bean level:
Code:
...
 <bean name="myBean">
   <non-distributed-field>logger</non-distributed-field>
 </bean>
 ...
or using DSO-style definition for transient fields:
Code:
...
 <jee-application>
    ...
   <transient-fields>
    <field-name>com.package.BeanClassName.logger</field-name>
   </transient-fields>
   ...
[WWW]
 
Forum Index -> Terracotta for Spring
Go to:   
Powered by JForum 2.1.7 © JForum Team