If invoking getEJBLocalObject() method of SessionContext returns null or an exception then it should be a remote call.
I would have thought that should work.
Thanks, but it seems not to work this way.
I tried the following Code.
The output is: "LocalObject not null: true"
when called from outside the container (client app) (RemoteHome and Interface)[pre]
public void sayHello()
"LocalObject not null: "
[/pre]Any other idea?