I am having weblogic5.1 installed on win98 , I can easily deploy enterprise bean with j2sdkee1.3 from sun , it automatically creates xml files , but how to deploy it with weblogic 5.1 ,I tried to use deploytool of it but does it still require writing ejb-jar.xml file , because its not generating container and its not deploying beans also , what is exact step by step process of using deploytool of weblogic5.1, thanks
if you need to use the deploy tool, read these instructions: http://www.weblogic.com/docs51/classdocs/API_ejb/EJB_deploy.html You still need to have the deployment descriptor ejb-jar.xml file. Why don't you save yourself some trouble and just use the ejb that you have already easily deployed? It is not compulsory to have weblogic-ejb-jar.xml deployment descriptor in your ejb jar, and by ejb's very nature you can deploy the same ejb on any application server that is compliant with the j2ee spec, and that includes Weblogic.
thanks for your reply but i have read ejb_deploy.html document number of times but still i think it is not that much of help for deploying with deploytool , i mean do you have to create meta-inf directory,ejb-jar.xml empty file or with full set of xml tags , after deploying does it generate client.jar file becuase when you deploy with j2sdkee1.3 it gives client.jar file, in j2sdkee1.3 jar files are placed in repository/localhost directory , likewise with weblogic where are they placed , please can anybody who is good with weblogic 5.1 explain these things in detail, thanks
>>do you have to create meta-inf directory,ejb-jar.xml empty file or with full set of xml tags from the weblogic documentation:
An EJB deployment unit in DeployerTool consists of a Java archive (.jar) file. The .jar file must contain all of the compiled classes for your EJB home interface, remote interface, and implementation class. It must also have a META-INF subdirectory that contains, at minimum, a valid ejb-jar.xml deployment file
So the answer to your question is yes, your .jar file must contain a meta-inf directory which contains a valid ejb-jar.xml file, and an empty ejb-jar file is not valid so no. >>after deploying does it generate client.jar file? from weblogic documentation:
When you use DeployerTool to generate container classes, the files are inserted back into the .jar file. If you want to place the container classes into a different file, use ejbc from the command line, as described in ejbc.
So the answer to your question is no it does not generate a client.jar file, it updates the jar file that you originally loaded. I think this also answers your next question >>likewise with weblogic where are they placed? wherever your original .jar file was loaded from, i.e .deploy tool will not move this file.
Please try and read http://www.weblogic.com/docs51/classdocs/API_ejb/index.html to fully understand how weblogic works with ejb's and experiment with deploying the example ejb's that are included in the weblogic installation. [This message has been edited by greg philpott (edited June 23, 2001).]
thanks for your reply , about weblogic i want to know that for client application to execute it must have some stub which deals with skeleton at ejb container , but if weblogic does not generate client.jar file then what file client application has to set in classpath as a stub and to enable distibuted execution of ejb , with j2sdkee1.3 from sun you have the option "Return client.jar file" so after deploying it generates client.jar file seperetly , what about weblogic. second question is if ejb-jar.xml file has to be manually created and placed in META-INF directory then how to create this xml file , what tags to use and what value for tags to use ? thanks
[This message has been edited by ray bond (edited June 24, 2001).]