aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Tricky question (How to pass javax.ejb.Handle) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Tricky question (How to pass javax.ejb.Handle)" Watch "Tricky question (How to pass javax.ejb.Handle)" New topic
Author

Tricky question (How to pass javax.ejb.Handle)

Qand Davaatsedev
Ranch Hand

Joined: Feb 06, 2002
Posts: 36
I have a J2EE project which has two WARs and one EJB JAR.
The only EJB is a stateful session bean which was created
to maintain client state (according to Java Blueprints best
practices). To be able to access this stateful
bean I have to pass javax.ejb.Handle object from one web module
to another.
The question is how can I do it? If there exist some easy way to
pass this object between two web modules, then why do I need the
stateful session bean?


Qand
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Put the handle in a location that both web modules can access.


Groovy
Qand Davaatsedev
Ranch Hand

Joined: Feb 06, 2002
Posts: 36
I can put the client state there as well.
What's the point to store client state in a SFSB then?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

SFSB are not shared. They can be thought of as logical extension of the client but running on an EJB container. EJB container provides tx,security support.

Originally posted by Qand Davaatsedev:
I can put the client state there as well.
What's the point to store client state in a SFSB then?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tricky question (How to pass javax.ejb.Handle)