wood burning stoves*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 8904

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: 8904

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?
 
Don't get me started about those stupid light bulbs.
 
subject: Tricky question (How to pass javax.ejb.Handle)
 
Similar Threads
Manage session between servlet and session bean
Scope of an EJB session
�Session Beans vs Entity Beans�
Stateful EJB internal mechanism
No concurrent calls on stateful beans exception