• Post Reply Bookmark Topic Watch Topic
  • New Topic

Running a EJB program from client?

 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have written a program in EJB and deployed the bean in Weblogic. It is executing fine from my system as well as other system provided if they set environment variable (weblogic environment variable). This means that the others can run my program only if they have Weblogic. What extra jar files should I send to others apart from client program, ejbremote, ejbhome class files? so that they can run my program without use of Weblogic in their system.

Thanks and Regards,
Narendranath.
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naren,
You need to have
1. J2ee.jar
2. client jar for you bean other than this
3. JDK

The program can run without weblogic running locally. If your running in som other system and server running remotely of-course you need n/w connection.
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know how to create a Clientjar file. Can u please tell the same.

Thanks and Regards,
Narendranath.
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Boss what application server your using, I hope in weblogic during some build option there isprovision to get client jars.
 
Natarajan Shankar
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Naren, I hope for your case you dont need to have client jar since when you lookup, server will give home stub and later you can call create() to get remote stub. So you can use it normally. The scneario I was narrating was accessing one application related EJB from another application.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!