• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

EJB Deployment using deployer tool

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could anyone please let me know how to deploy the ejb using deployer tool on windows system. How to create jar file using deployer tool and deploying ejb on weblogic 5.1 server.I am having problems even creating the .jar file using deployer tool.
Thanks,
Appreciate u'r help!
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
mendy smith
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Lokesh for u'r help! I followed all the steps you have specified. After i specify my HomeJNDI name , when i save i don't see any xml files generated. It just says saved 'xyz'. What should i specify in the "Home JNDI Name" , is it just the name of my home interface or should i specify the packagename.myhomeInterfaceName, i tried both ways. When i save, it says it saved. In the console tab at the very end of the tool, i see Null text data?? when i click on the problems, nothing is displayed. When i followed the next step in generating container, then i got a message saying No container managed fields were set for CMP bean A(this is my bean class) and a window popped up saying container generator failed. I don't know what's going on? Could you please let me know where i might have gone wrong.
Appreciate your help.
Thanks again!
 
Lokesh Mahajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Dear
I tried it once again its working perfectly on my m/c,home jndi name is given from client class. here is the method of the client class.

InitialContext ic = new InitialContext();
System.err.println("looked up initial context");
BagHome bh = (BagHome) ic.lookup("BagHome");
this BagHome is the name given to the home interface,
after clicking save its creating xml files, but before generating a container every time I have to select
go to Tools>preferences>choose and than select the again javac.exe of the jdk1.2.1.I dont know why but i have to do it every time before generating the container,
Also I forgot to mention one thing after contaner is generated successfuly again you have to click on the save button at this junction all the stub & skeleton files will be seen in your edit pannel.
hope this will help you out in some way,actually i am also new to this & after lots of effort i was successful in deploying the heelloworld stateless bean.
Love
Lokesh
 
mendy smith
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What i have is Entity Bean, is the deployment going to be different for Entity Bean. What is a client class? I am pretty new to this EJB stuff. I don't see any InitialContext object being created anyWhere in my ejb classes. I have an interface by name AH which extends EJBHome which has only one method findByPrimaryKey(primaryKey);
This is all i have in my EJB folder
I have 2 classes and 2 interfaces
I have an interface called A which extends EJBObject
I have a class AB which implements EntityBean
I have an interface AH which extends EJBHome
I have a class APK which implements Serializable
I understand that, you have stateless session bean. Is there any difference in the deployment for different type of Bean(Session, Entity)? I am still having the same problem saying that No container managed fields were set for CMP bean A.
Appreciate your help!
Thanks lokesh for u'r help.
reply
    Bookmark Topic Watch Topic
  • New Topic