Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbStore() not called by the container.

 
J Johny Rufus
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1646
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could this perhaps be the source for your problems:
<concurrency-strategy>ReadOnly</concurrency-strategy>
 
J Johny Rufus
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic