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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

How to deploy ejb in weblogic6.1

Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello , i am new to EJB , i have no expericene in ejb, tell me how to deploy ejb in weblogic6.1
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am also new to EJB..i will just tell u how i deployed my first bean..Actually the Bean i used was a state less session bean..hope u r familiar with the Home and Remote Interfaces..make urself available with the Following files...
1. Home Interface.
2. Remote Interface.
3. Actual Bean.
The Above three files r Java Files...
Then u need the Following two descriptor Files.
1. ejb-jar.xml
2 weblogic-ejb-jar.xml
Then the Last file is ur File...
Now I tell u how to Organise these files..
Create a directory say, demo...
then Create two Subdirectories inside demo..
say, ejb and META-INF
put the home,remote,bean java files inside the ejb directory...
put the XML files inside META-INF directory...
Now u put the in the demo directory. i.e. at the same level of ejb and META-INF.

Now u need the Following installed in ur Comp.
1. JDK 1.2
2. Weblogic 6.1

Compile the Java files inside the ejb directory using "javac *.java"
now u hav to create the jar file....for that u go to the Command Prompt..and stay inside the demo give the Follwing command...
"jar -cvf x.jar ejb\*.class META-INF"
Now u should see the x.jar file in the demo directory...

Now it's time to deploy....
give the following command.
"java weblogic.ejbc x.jar y.jar"
u should see the y.jar in the demo directory....
then compile the file....

Now u hav to specify the y.jar file in the file in the weblogic directory....
open that file in notepad...
Search for the Pattern
i think for first time this line will be marked as comment with a leading # symbol. remove that # and in the next line add ur y.jar d:/demo/y.jar note the Forward slash.. don't give any backward slash in the path..if u give a backward slash u hav it twice...better stick to single forward the file...
now open a new command Window and go to the weblogic run the startweblogic batch will start the weblogic server...
now go to ur previously opened command window...and run the Client.class file.....

u should get the Bean running properly......
if u hav any ur doubts....
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All the steps mentioned by you are OK.But you should deploy the y.jar using Weblogic Admin Console instead of using
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
also to deploy u can use

before doing this make sure that u weblogic.jar file is in ur classpath
for more information visit
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic