aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Stateful Session Beans..Help needed. 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 "Stateful Session Beans..Help needed." Watch "Stateful Session Beans..Help needed." New topic
Author

Stateful Session Beans..Help needed.

Sandip Sarkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 55
Hi All,

With regard to Stateful session beans for EJB 2.0 , i coded a bean that will just print a number.

The main thing i tried to go for is to make the pool size as two in jboss . Then i go for creating four stateful session bean instances.Since only two beans are allowed and i am creating four hence the container has to passivate some and activate some. This is mainly the thing i am trying to check out.

For this i added the following to my jboss.xml:


Still am happily creating four instances and none are getting passivated.
I made the calls from four different threads so as to make them concurrent with no help.

Please suggest why the above jboss xml configurations are not making effect.
Does it have any other dependencies?

My Client code is as follows:


My Main Bean class is as follows:





My deployment descriptor and jboss xml are as follows:





Thanks,
Sandip
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stateful Session Beans..Help needed.
 
Similar Threads
Exception accessing Local EJB
error while running EJB from java client on JBOSS
How to set number of min/max beans in pool (session ejb)
Database synchronization with Entity Bean
"Missing/invalid instance-cache" error with Stateless Session ejb deployment