Win a copy of liveProject: Protecting User Data with Spring Security and OAuth2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

ejbLoad() is not called??????in JBOSS and WebSphere?????

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi we are using JBOSS3.0 and we have the following requirement.
This is the architecture we are using.
From JSP we are calling session bean and from there we are calling entity bean(BMP).
For both the entity bean and session bean method we are setting the transaction-attribute as 'Required'.
The session bean method is like this
public void createMethod()
{
// getting initial context code
EJBHome home = context.lookup() // entity bean
EJBRemote remote = home.create()
// here actually it has to call the ejbStore() method of
// entity bean, that is one requirement
// here it has to call ejbLoad() method b'z getValue() is
// a business method
S.O.P(remote.getValue());
// here it has to call ejbStore() method b'z getValue() is
// a business method

}
but it is not calling the ejbLoad method(). I modified standardjboss.xml commit option to B and C . If both are in the same transaction it is not calling the ejbLoad() method at all. If session bean is in required, and entity bean is in requiresNew stage then it is calling.
But entire method we want to be in the same transaction, we are not able(server) to call the ejbLoad() method, so whatever value (bean values) we are setting in ejbcreate() method we are not getting reflected in the session bean when calling business method call.
Can any one please tell me why this is happening and how to solve this problem. Even i am facing problem in case of websphere., But the same thing is working in weblogic???
can anyone please help, the requirement is urgent....
Thanks in advance
dhananjayan
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving discussion to JBoss forum...
 
reply
    Bookmark Topic Watch Topic
  • New Topic