• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to deploy ejb in weblogic6.1

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I AM VERY NEW TO THIS TECHNOLOGY SO PLEASE CORRECT ME IF I MISGUIDE SOMEONE.....
hi,
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 Client.java 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 Client.java 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 directory..now 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 Client.java file....

Now u hav to specify the y.jar file in the weblogic.properties file in the weblogic directory....
open that weblogic.properties file in notepad...
Search for the Pattern
"weblogic.ejb.deploy=\"
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 path....eg. 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 slash..save the file...
now open a new command Window and go to the weblogic directory...now run the startweblogic batch file...it 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 doubts...post ur doubts....
ALL THE BEST....
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 weblogic.properties.
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 http://edocs.bea.com/wls/docs61/ejb/deploy.html#1054980
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic