RE: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?
Thanks Burkhard! I changed all every setting in the to 1 (except for cache-load-factor...I left it at 0.75) and my beans are now being refreshed (close-to-real-time). I know this will be bad performance, but I get the desired effect for integrating a J2EE application with a VB application. What's curious is that simply setting commit-option to 'C' did not work. By definition, I thought that would bypass caching for my CMP-entity bean. The definition for option 'C' states: Option C: The container does not cache bean instances and instances memory state is synchronized on every transaction start (via ejbLoad). For business methods executing outside a transaction the synchronization is done too, but as the ejbLoad executes in the same transaction context as the triggering business method, the state must still be considered invalid and might already have changed in the persistent storage when the business method executes. I'm using the LRUEnterpriseContextCachePolicy and I also set all my session-bean cache parameters equal to 1. Just a heads up for anyone else out there thinking about doing something like this. -Frank > -Original Message- > From: Burkhard Vogel [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 10:52 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING? > > > Use 1. > - Original Message - > From: "Frank Villarreal" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, June 15, 2001 4:52 PM > Subject: RE: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING? > > > > K.V. Vinay Menon [mailto:[EMAIL PROTECTED]] wrote : > > > For what its worth did you try changing the following section in > > > standardjboss.xml > > > > > > > > > 50 > > > 1000 > > > 300 > > > 600 > > > 400 > > > > > 60 > > > > > 1 > > > 0.75 > > > > > > > > > to set min/max-capacity to 0? > > > > > > Vinay > > > > Thanks Vinay, but I tried setting the min/max capacity to 0 and it > resulted > > in the following jboss startup exception... > > > > > > [Container factory] org.jboss.ejb.DeploymentException: > Can't import policy > > configuration, Cause:org.jboss.ejb.DeploymentException: Min > cache capacity > > can't be <= 0 > > [Container factory] at > > > org.jboss.ejb.plugins.AbstractInstanceCache.importXml(Abstract > InstanceCache. > > java:311) > > [Container factory] at > > > org.jboss.ejb.ContainerFactory.createInstanceCache(ContainerFa > ctory.java:762 > > ) > > [Container factory] > > > > > > Any other ideas? > > > > - Frank > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?
Use 1. - Original Message - From: "Frank Villarreal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 4:52 PM Subject: RE: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING? > K.V. Vinay Menon [mailto:[EMAIL PROTECTED]] wrote : > > For what its worth did you try changing the following section in > > standardjboss.xml > > > > > > 50 > > 1000 > > 300 > > 600 > > 400 > > > 60 > > > 1 > > 0.75 > > > > > > to set min/max-capacity to 0? > > > > Vinay > > Thanks Vinay, but I tried setting the min/max capacity to 0 and it resulted > in the following jboss startup exception... > > > [Container factory] org.jboss.ejb.DeploymentException: Can't import policy > configuration, Cause:org.jboss.ejb.DeploymentException: Min cache capacity > can't be <= 0 > [Container factory] at > org.jboss.ejb.plugins.AbstractInstanceCache.importXml(AbstractInstanceCache. > java:311) > [Container factory] at > org.jboss.ejb.ContainerFactory.createInstanceCache(ContainerFactory.java:762 > ) > [Container factory] > > > Any other ideas? > > - Frank > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?
K.V. Vinay Menon [mailto:[EMAIL PROTECTED]] wrote : > For what its worth did you try changing the following section in > standardjboss.xml > > > 50 > 1000 > 300 > 600 > 400 > 60 > 1 > 0.75 > > > to set min/max-capacity to 0? > > Vinay Thanks Vinay, but I tried setting the min/max capacity to 0 and it resulted in the following jboss startup exception... [Container factory] org.jboss.ejb.DeploymentException: Can't import policy configuration, Cause:org.jboss.ejb.DeploymentException: Min cache capacity can't be <= 0 [Container factory] at org.jboss.ejb.plugins.AbstractInstanceCache.importXml(AbstractInstanceCache. java:311) [Container factory] at org.jboss.ejb.ContainerFactory.createInstanceCache(ContainerFactory.java:762 ) [Container factory] Any other ideas? - Frank ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING?
For what its worth did you try changing the following section in standardjboss.xml 50 1000 300 600 400 60 1 0.75 to set min/max-capacity to 0? Vinay - Original Message - From: "Frank Villarreal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 1:03 PM Subject: [JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING? > Hello all. > > I was wondering if someone can give me a hand. I temporarily need to > disable all entity-bean caching in JBoss. Is this possible? My problem is > that I have an external application that is updating my entity-bean tables > (I will eventually eliminate that, but for now I have no choice in the > matter) and I want my beans to show the most current data from the > operational store. So far, I have modified "standardjboss.xml" and set the > tags to option C ... which seems like a fit. However, after > making a change to a database record and accessing the corresponding > entity-bean, the bean still contains the "old" data (apparently it is cached > in memory). Am I going insane or am I missing some configuration somewhere? > Any help is appreciated! > > - Frank Villarreal > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user