posted 24 years ago
Hello Dear
I follow the following steps to deploy the simple helloworld example of stateless bean.
compile all the files (remote interface ,home inteface , bean class , client class)
then open ejb deployer tool
click on file > new browse the path to weblogic/myserver
give the file name say xyz.jar
click on the finish.
now click on the xyz you will see that all the button get enabled,
click on the "edit file set" button(click on "project" & "select edit file set")Add & remove project file window will open up.
click on the add button to add files(your remote interface , home interface & bean class which implements sessionBean & any other relevent class but not the client class).
click on ok button.
click on the bean than select bean after this you will see two tab pages in the edit pannel(its bean name & classes)click on the classes tab give the "Home JNDI Name"its the same one which you have given in the client class (lookup() method of the InitialContext)it is actually the name of home interface)
click on the save.
after this you will find that two xml file are generated.
click on the tools>prefences>
select ejbc,click on the choose button of the ejbc properties,
browse down to javac.exe file of your jdk1.2.1
check the true radio button click on ok button.
after this click on the "generate container" button,if every thing is right container will generated,
after this start the weblogic server.
after this click on the tools>deploy to> myserver
thats all you have to do it,& thats what i did to deploy stateless bean.
hope you understand the things.
Love
Lokesh