Hi,
Is there a way in stateful bean instance to know if it is being accessed by a 
local or remote client at present ? Two ways to know are - one when u have 
different arguments create() methods in their local and remote home interface, 
and secondly if u declare methods of different names or args in their local and 
remote interfaces. But my situation is both home have same zero arg create() 
method, and the both home and remote have same arg methods of same names. Given 
this, when one of the method of the interface is invoked, is there way to know 
whether the bean instance is currently serving a local or remote EJB object ? 
The SessionContext object always returns not-null EJBObject and EJBLocalObject 
if the bean instance implements both local and remote interfaces. This is 
probably becoz same bean instance when created is capable of serving both a 
local or remote EJB object. Any idea will be highly appreciated.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944709#3944709

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944709


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to