Like I said on the jboss-dev
1- kudos for this work Simone, it is great work
2- make the passivating one default in the standard distribution now that it
works great
thanks
marc
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Bordet, Simone
|Sent: Wednesday, October 25, 2000 7:45 AM
|To: jBoss User Mailing List (E-mail)
|Subject: [jBoss-User] Caches not found: new settings
|
|
|Hello all,
|
|since the caches of jBoss have changed few days ago, all jars with a
|jboss.xml inside should be checked and corrected (EJX being the preferred
|way). If you try to deploy a jar with old jboss.xml files, the errors are
|usually:
|
|[Container factory] java.lang.ClassNotFoundException:
|org.jboss.ejb.plugins.RandomEntityInstanceCache
|[Container factory] java.lang.ClassNotFoundException:
|org.jboss.ejb.plugins.NoPassivationEntityInstanceCache
|[Container factory] java.lang.ClassNotFoundException:
|org.jboss.ejb.plugins.NoPassivationStatefulSessionInstanceCache
|
|If you don't use EJX then in jboss.xml you should do these changes:
|
|1) No passivation cache (the default)
|<instance-cache>org.jboss.ejb.plugins.EntityInstanceCache</instance-cache>
|or
|<instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache<
|/instance
|-cache>
|
|and
|
|<container-cache-conf>
|
|<cache-policy>org.jboss.ejb.plugins.NoPassivationCachePolicy</cache-policy>
|</container-cache-conf>
|
|2) Passivating cache
|<instance-cache>org.jboss.ejb.plugins.EntityInstanceCache</instance-cache>
|or
|<instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache<
|/instance
|-cache>
|
|and
|
|<container-cache-conf>
|
|<cache-policy>org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy
|</cache-p
|olicy>
| <cache-policy-conf>
| <min-capacity>5</min-capacity>
| <max-capacity>200</max-capacity>
| <overager-period>600</overager-period>
| <resizer-period>600</resizer-period>
| <max-bean-age>600</max-bean-age>
| <max-cache-miss-period>60</max-cache-miss-period>
| <min-cache-miss-period>1</min-cache-miss-period>
| <cache-load-factor>0.75</cache-load-factor>
| </cache-policy-conf>
|</container-cache-conf>
|
|The values above are defaults that should be reasonable in most cases.
|
|For any question, just post !
|
|Bye
|
|Simon
|
|
|--
|--------------------------------------------------------------
|To subscribe: [EMAIL PROTECTED]
|To unsubscribe: [EMAIL PROTECTED]
|Problems?: [EMAIL PROTECTED]
|
|
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]