Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Using Java client to call EJB in JBOSS

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 569
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Let's go to the waterfront with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic