File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes ejbStore() not called by the container. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejbStore() not called by the container." Watch "ejbStore() not called by the container." New topic
Author

ejbStore() not called by the container.

J Johny Rufus
Ranch Hand

Joined: Oct 29, 2003
Posts: 47
Hi Folks,
While running an entity bean, the ejb container (weblogic 8.1) never calls the ejbStore() method and hence the database never gets updated.
Can some one help me out of this ???
Thanx in advance,
RUF
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by J Johny Rufus:
While running an entity bean, the ejb container (weblogic 8.1) never calls the ejbStore() method and hence the database never gets updated.

Can you please provide more information?
- Are you modifying the entity bean from a session bean or a POJO?
- Local or remote interface?
- Bean- or container-managed persistence?
- Bean- or container-managed transactions?
- If CMT, what are the transaction isolation and type (required, supports, etc)?
J Johny Rufus
Ranch Hand

Joined: Oct 29, 2003
Posts: 47
hi david,
i am calling the entity bean from a client program. Its a BMP and here is my container realted attributes.
<entity-descriptor>
<pool>
<max-beans-in-free-pool>500</max-beans-in-free-pool>
<initial-beans-in-free-pool>0</initial-beans-in-free-pool>
</pool>
<entity-cache>
<read-timeout-seconds>21600</read-timeout-seconds>
<concurrency-strategy>ReadOnly</concurrency-strategy>
</entity-cache>
<entity-clustering>
<home-is-clusterable>true</home-is-clusterable>
<home-load-algorithm>round-robin</home-load-algorithm>
</entity-clustering>
</entity-descriptor>
<transaction-descriptor>
<trans-timeout-seconds>120</trans-timeout-seconds>
</transaction-descriptor>
Thanx
RUF
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Could this perhaps be the source for your problems:
<concurrency-strategy>ReadOnly</concurrency-strategy>


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
J Johny Rufus
Ranch Hand

Joined: Oct 29, 2003
Posts: 47
Hai Lasse,
I got a new problem when trying to deploy the bean .
The console says..
Exception:weblogic.management.ApplicationException: prepare failed for ejb_bmp Module: ejb_bmp Error: Exception preparing module: EJBModule(ejb_bmp,status=NEW) Unable to deploy EJB: BMPSvc from ejb_bmp.jar: java.lang.ClassNotFoundException: classes.BMP.BMPSvc_fnatne_HomeImpl at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:198) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass
But the mentioned class is present in my ejb_bmp.jar.
can u figure out something...
Thanx
RUF
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejbStore() not called by the container.
 
Similar Threads
BMP entity bean - create
can be passivated when the bean instance is associated with a transaction?
EJBLocalObject interface
what is transaction roll back exception?
BMP ejbRemove() problem