aspose file tools*
The moose likes Websphere and the fly likes websphere 5 deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "websphere 5 deployment" Watch "websphere 5 deployment" New topic
Author

websphere 5 deployment

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

What is the prefered way to deploy an application from the command line in Websphere 5? In 4, it was wscp/xmlconfig. Is it wsadmin in 5 or something else?
Thanks


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Sondra Colagrossi
Ranch Hand

Joined: Oct 30, 2002
Posts: 68
There's ejb_deploy in addition to wsadmin. Personal preference is well...
The preferred/easiest way is via WSAD, but it's not command line.
If you state why you want to do it via the command line, guru's
may talk you out of it.
HTH
[ May 11, 2004: Message edited by: Sondra Colagrossi ]
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Jeanne,
WSAdmin is the way to go. The best way to do large (or repeatable) deployments, period.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

Sondra,
I have to do it command line to be repeatable between environments and so the deployment can proceed without my direct control.
Kyle,
That's what I thought. I just wanted to make sure I wasn't on the wrong track before reading all the details. Thanks!
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
I have numorous jacl scripts (wsadmin) written for automated deployment. If needed, just let me know and I can point you in the right direction.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
William's made an great offer -- I'd take him up on it if I were you. Also, take a look at the WAS 5.0 Administration handbook redbook -- there are lots of sample WSAdmin scripts there too.
Kyle
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

Thanks to William in advance. I may do that once I know what it is I'm looking for. At the moment, I'm trying to get a feel for what it is I need to know. I need to read a bunch.
Sudhir Meduri
Greenhorn

Joined: May 28, 2003
Posts: 22
William,

The company I work for wants nothing but automation
please could you forward me the pointers too.
sudhirm@hotmail.com

Thanks


Thanks,<br />Sudhir <br />SCJP1.4
Raman Baweja
Greenhorn

Joined: Jul 09, 2004
Posts: 1
William,

I am looking for the same kind of scripts. Can you please provide that to me at ramanforu78@rediffmail.com

Thanks,
Raman
James Buck
Greenhorn

Joined: Jul 16, 2004
Posts: 2
William,

Me too! I would greatly appreciate seeing those Jacl scripts for deploying to WAS 5.1. My email is james.buck@boeing.com

I'm stuck in a Jacl script on the creation of a vhost with using a variable name:
<pre>
set cellName "was9Cell"
set vhostName app_vhost
set cell [$AdminConfig getid /Cell:$cellName/]
$AdminConfig create VirtualHost $cell {{name $vhostName}}
</pre>

creates a vhost named $vhostName! Arggggh!


Thanks,<br />Jim
James Buck
Greenhorn

Joined: Jul 16, 2004
Posts: 2
I finally stumbled on the answer. It�s to use the subst command.

<pre>
set cellName "was9Cell"
set vhostName �app_vhost�
set cell [$AdminConfig getid /Cell:$cellName/]
$AdminConfig create VirtualHost $cell [subst {{name $vhostName}}]
</pre>
njdesiboy njdesiboy
Greenhorn

Joined: Aug 02, 2004
Posts: 1
Hi,

I am having problem creating host aliases using wsadmin
I can not use variable. Here is my code. Thanks

set dHosts �web1�
set vh [$AdminConfig getid /VirtualHost efault_host/]
$AdminConfig modify $vh {{aliases {{{hostname $dHosts}{port 80}}}}}
$AdminConfig save

I can not get $dHosts to resolve in $AdminConfig modify ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: websphere 5 deployment