deploying .ear file Websphere


 
Thread Tools Search this Thread
Operating Systems Solaris deploying .ear file Websphere
# 1  
Old 05-20-2008
deploying .ear file Websphere

hi
This may not be right question to ask on this forum, but I think people here can answer the question.

Please give me details of steps/commands used in UNIX ( only command mode) for deploying an ear file on websphere.

Thanks in advance,
Ashish
# 2  
Old 05-20-2008
Deploying EAR from UNIX command line

WebSphere has a command language implemented in jython. You can create a jython script that calls the following objects/methods:

AdminApp.install("<your ear name and path>", "[-cluster <yourCluster> -appname <your app name> -MapModulesToServers <what ever additional servers - eg web servers you want to map it to> -MapWebModToVH <vhost definition to map it to>]")

AdminConfig.save()

There are simpler versions of this command - just check on WebSphere information center (http://publib.boulder.ibm.com/infoce...v6r0/index.jsp). Then once you have the information in a file (such as myscipt.py), then you can invoke it like this:


<websphere_home>/bin/wsadmin.sh -lang jython -f <name and path of script>

Hopefully that helps. There is a lot of information on info center about scripting. Just go to the info center site and search for scripting.

steve
# 3  
Old 05-20-2008
that should be in the websphere manual.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to get CRC check sum of files in java EAR file without extracting .jar/.war files to disk.?

unzip -v gives CRC info of each file in a zip(in my case .EAR) file. # unzip -v my-application.ear Archive: my-application.ear Length Method Size Cmpr Date Time CRC-32 Name -------- ------ ------- ---- ---------- ----- -------- ---- 197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies

2. Shell Programming and Scripting

Help needed with a shell script for deploying ear file to a weblogic server using WLST

Hi, Please help me through a shell script to run from command prompt using WLST for the below purpose: Automation process: >Check the availability of an application. >Stops the EAR if it already exists in Weblogic Server >Undeploys/Delete the project (EAR file) >Deploys the new ear file... (2 Replies)
Discussion started by: Amulya
2 Replies

3. Linux

Difference in binary file sizes after deploying package via yum/rpm

Hi Guys, I have an issue whereby I package up an rpm and when I deploy it, the binary filesizes differ from what I packaged up from the SOURCE directory. from source - -rwxrwxr-x 1 user group 685156 Sep 26 15:50 cybAgent.bin after install - -rwxr-xr-x 1 user group 683388 Oct 16 11:10... (4 Replies)
Discussion started by: gazza-o
4 Replies

4. Shell Programming and Scripting

Unpack (extract) EAR / JAR files

i have about 30 .EAR files, every ear file have 1 .JAR file. so i need to extract .EAR files then extract .JAR files, and one important thing is that every archive must bee extracted to separate folder. i try with gzip, but when i extract 30 ear files i cant make separate folders.... (1 Reply)
Discussion started by: waso
1 Replies

5. AIX

checking the version revisions of a java file inside the ear using KSHELL in AIX.

consider on day1, in PVCS repository we have java files like a.java,b.java with version revision 1.0, through ANT build script we have compiled and created an ear,named c.ear in AIX build server.we have transfered this ear from build server to portal server through FTP using KSHELL. consider... (0 Replies)
Discussion started by: kareemaashik
0 Replies

6. Shell Programming and Scripting

replacing files in an EAR file after extracting

{Hello All, Here is what I am trying to do: I have an archive file: AppName.ear jar -tvf AppName.ear 60459 Thu May 01 09:29:36 EDT 2008 /SharedResources/Application/App.dat 67542 Thu May 01 09:29:36 EDT 2008 JDBCConn/Application/App.dat 14488 Thu May 01 09:29:36 EDT 2008 config.xml ... (0 Replies)
Discussion started by: chiru_h
0 Replies
Login or Register to Ask a Question