How to deploy EJB without using GUI in different servers(e.g weblogic,jboss etc)

Questions by kedarparundekar2002

Showing Answers 1 - 2 of 2 Answers

Prasanna Balaraman

  • Dec 16th, 2005
 

The first step is to create EAR file, which contains both WAR, JAR files with application.xml.

For Jboss:

Really it is simple just copy the EAR file to the [server\default\deploy] deploy folder.

For Weblogic:

We can write the ant script to directly deploy in the weblogic server. Syntax is

<target name="deploy" depends="makewar">

<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"/>

  <wldeploy action="deploy" name="${name}.war"
  user="weblogic" password="weblogic" verbose="true" adminurl="t3://localhost:7001"

  debug="true" targets="myserver" nostage="true"  source="${destdir}/${name}.war"  upload="true" />

 </target>

Or we can access the weblogic console and we can upload the ear file.

Hope this answers the question.

Thanks

Prasanna

  Was this answer useful?  Yes

It is not mandatory to create EAR to deploy EJB. You can just create a JAR file with all dependancy resolved. There no generic way to deploy EJB on different server, Every server has it's own deployment process. So just follow the deploment steps of your server.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions