In my project, the ejb stub is used to call the business service from the web layer.

But now we are asked to create a new non-ejb stub type for the service to service call on the same jvm.

Can you suggest how do to determine whether application calls the services in the same JVM or not.

Thanks in Advance.