File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Ejb stand alone client question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Ejb stand alone client question" Watch "Ejb stand alone client question" New topic

Ejb stand alone client question

jaki jane

Joined: Aug 04, 2008
Posts: 11
Hi all,
Im to develop a stand alone java client for my ejb3 app (which consists of a few entity beans and corresponding session beans to manage those entities and remote interfaces for the session beans). Right now, Im packaging the client and the ejb in the same ear but I want to have my client moved to a different machine. Below is part of my client code

What changes will I have to make to the above code so it can connect with the ejb in the other machine. Also, will I have to package the ejb as jar along with the client? My client references the remote interfaces as well as the session and entity beans. But if i have to add the entire ejb module as a jar it doesnt make much sense to have it running on a remote machine.
Kindly help

ps: the client will be deployed as war in tomcat and ejb3 module will be running on jboss.

[ August 04, 2008: Message edited by: jake jake ]
[ August 04, 2008: Message edited by: jake jake ]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

jake jake, please check your private messages.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33124

Please fix your display name again. Both a first name and last name are required. Now you only have one name.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Ejb stand alone client question
It's not a secret anymore!