Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Stateful session Bean  RSS feed

 
rudresh kumar
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I was going thro' the Mikalai Zaikin's notes and practising few ejb3 examples.

The Appendix B and C. Enterprise Application Development Environment on pg 262,

I had successfully tested both stateless and stateful session bean, but i had a doubt about the stateful session bean example, to see the behaviour of the stateful session bean, i just changed the bean definition from @stateful to @stateless(StatefulCalculatarBean), other classes remained same, built the ejb and restarted the server.

The result was same, irrespective of stateful/stateless. Has any one tried stateful session bean from a Java Test client?.

I believe we cannot test stateful session bean on java test client (may be we have test on app server) i had tried other examples from jboss and openejb, results are same.

Can any one clarify

Thanks in Advance
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!