aspose file tools*
The moose likes JBoss/WildFly and the fly likes Using Java client to call EJB in JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Using Java client to call EJB in JBOSS" Watch "Using Java client to call EJB in JBOSS" New topic
Author

Using Java client to call EJB in JBOSS

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
If I am calling a remote EJB (in another machine) from an ordinary java class (non-web), do I need to install something in the client machine?
Recall that in J2EE SDK1.3, we need to use the 'runclient' command to run the application client. So what is the part in JBOSS equivalent to a 'runclient' of J2EE SDK?
Sanju Thomas
Ranch Hand

Joined: Dec 29, 2004
Posts: 243
I dont think there is such a command in the case of JBoss. You can write simple application client and run in any machine. You need jbossall-client.jar in the classpath.
Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
Then is it possible for the client to lookup up UserTransaction and starts a transaction in the client? Would the context propagates to the EJB?

If the client is web, it is possible because web client within web container is a 'J2EE client' (a client which itself confirms to J2EE). But, can a standalone client without something like 'runclient' as the container do J2EE things?
 
 
subject: Using Java client to call EJB in JBOSS