Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JRE for J2EE  RSS feed

 
Sups Sam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If I create an Application Client to access and use EJBs, do i need to have the J2EE SDK installed on the machine? Is there some sort of a JRE for running J2EE stand alone applications.
Thanks.
Sups
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think so. One of the parameters you need to provide when running the application client is the location of the java executable. This needs to be the matching sdk to your application server.
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sups,
You do need the client part of the J2EE jar file. You can get this as j2ee.jar in the RI. I belive that WLS has a weblogic-client.jar file (or some name like that) that you can use to run client programs. There is no inherent problem in using a JRE on the client side and the JDK on the server side, I have done this many times with no problems. The thing to start with is your servers docs or examples to see which jar file(s) must be avalible on the client side to access the server.
Hope this helps!
[ September 26, 2003: Message edited by: Bill Dudney ]
 
Sups Sam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey thanks for the prompt replies.
Ok. Actually I'm using websphere to develop the J2EE application. So I will need to seperate the .jar file needed to run the clent application and install that on the client machine? Please correct me if I'm wrong.
Thanks
Sups
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly right, there is an element you can put in your ejb deployment descriptor that will create a cliet jar for you after the server finishes with its code gen.
Then your client needs the client side of your ejb's as well as the websphere client side jar.
Good Luck and repost when your done with how it went.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!