Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

websphere 5 deployment

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sondra Colagrossi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne,
WSAdmin is the way to go. The best way to do large (or repeatable) deployments, period.
Kyle
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 34401
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William,

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

Thanks
 
Raman Baweja
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
James Buck
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic