• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to simulate stateful session bean program on weblogic server?

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As you people might have gone through MasteringEJB by EdRoman. I want to run the stateful session bean example program given in the book. But, the problem is how to set the pool size for stateful session beans.

I used the following descriptor file for weblogic-ejb-jar.xml but I'm not getting correct output.

<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>Count</ejb-name>
<stateful-session-descriptor>
<stateful-session-cache>
<max-beans-in-cache>2</max-beans-in-cache>
</stateful-session-cache>
</stateful-session-descriptor>
<jndi-name>Count</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>

What extra tags should I use so that I would get the exact output specified in the book.

Thanks and Regards,
Narendranath
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the o/p, you are expecting. Just saying that you are expecting o/p which mentioned in book does not help .We dont know what the book conatins.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The o/p is

ejbCreate()
count()
ejbCreate()
count()
ejbCreate()
ejbPassivate()
count()
ejbPassivate()
ejbActivate()
count()
ejbPassivate()
ejbActivate()
count()
ejbPassivate()
ejbActivate()
count()
ejbPassivate()
ejbActivate()
ejbRemove()
ejbActivate()
ejbRemove()
ejbRemove()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!