Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wsadmin start applications on a cluster?? (Websphere ND v5.1)

95 views
Skip to first unread message

Niclas Rothman

unread,
May 26, 2004, 1:24:58 PM5/26/04
to
Hi there, I惴 trying to make a wsadmin script (jacl) that fully automates
the work of updating an existing web application.
However it愀 not clear to me how to do this at all, my approach is;


1. Install the application with the -update option (works fine).


$AdminApp install /home/niro/cblsml.ear {
-cluster cluster1
-MapResRefToEJB {{
cblsml.war "" cblsml.war,WEB-INF/web.xml
jdbc/cblsmlDS javax.sql.DataSource jdbc/cblsmlDS
}}
-MapWebModToVH {{
cblsml.war cblsml.war,WEB-INF/web.xml default_host
}}
-nopreCompileJSPs
-distributeApp
-nouseMetaDataFromBinary
-nodeployejb
-appname CBLSML
-createMBeansForResources
-reloadEnabled
-reloadInterval 0
-nodeployws
-update
}
$AdminConfig save
puts "Deployment of application CBLSML finished."

2. Now the application is in stop state, we need to start the app on
every server that is a member of the cluster.
2.1 Find all ApplicationManagers that belong to the servers in the
cluster.
2.2 Issue a startApplication command for every ApplicationManager.

As you probably can se from the "pseudo" code, I惴 totally lost. How do I do
this, or is the approach not the right one?

And finally, WHERE巽 THE DOCUMENTATION of wsadmin? The infocenter have many
concreate examples but totally miss to give the reader the "Big picture"!

Best Regards

Niclas


Niclas Rothman

unread,
May 27, 2004, 1:21:43 AM5/27/04
to
Somehow strange, replying to my own mail :-) Yesterday I found a more in
depth documentation about the wsadmin.
The documentation is targeted for the z/os audience but from what I can se
it´s still valid for other platforms. However my question below are still
unanswered so if anyone have som input i woul appreciate it!

Enjoy :-)

http://www-1.ibm.com/support/docview.wss?rs=493&q1=wsadmin+cluster+start+application&uid=tss1wp100421&loc=en_US&cs=utf-8&lang=en+en


Niclas


"Niclas Rothman" <ni...@nnit.com> wrote in message
news:c92jtc$43cm$1...@news.boulder.ibm.com...
> Hi there, I´m trying to make a wsadmin script (jacl) that fully automates


> the work of updating an existing web application.

> However it´s not clear to me how to do this at all, my approach is;

> As you probably can se from the "pseudo" code, I´m totally lost. How do I


do
> this, or is the approach not the right one?
>

> And finally, WHERE´S THE DOCUMENTATION of wsadmin? The infocenter have

PJ

unread,
May 27, 2004, 7:24:51 AM5/27/04
to
Hello,
When you use the WSADMIN tools you must start the application on
each server instance. Below is a link to an IBM redbook that touches
on the process of querying websphere for servers and then performing
operations on the servers. Start at page 822.

http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg246195.html?Open

We had a developer who did this through ANT. I'll see if I can get
the source from him and post it.


PJ


"Niclas Rothman" <ni...@nnit.com> wrote in message news:<c93tt9$8gvk$1...@news.boulder.ibm.com>...


> Somehow strange, replying to my own mail :-) Yesterday I found a more in
> depth documentation about the wsadmin.
> The documentation is targeted for the z/os audience but from what I can se

> it愀 still valid for other platforms. However my question below are still


> unanswered so if anyone have som input i woul appreciate it!
>
> Enjoy :-)
>
> http://www-1.ibm.com/support/docview.wss?rs=493&q1=wsadmin+cluster+start+application&uid=tss1wp100421&loc=en_US&cs=utf-8&lang=en+en
>
>
> Niclas
>
>
>
>
>
>
> "Niclas Rothman" <ni...@nnit.com> wrote in message
> news:c92jtc$43cm$1...@news.boulder.ibm.com...

> > Hi there, I惴 trying to make a wsadmin script (jacl) that fully automates


> > the work of updating an existing web application.

> > However it愀 not clear to me how to do this at all, my approach is;

> > As you probably can se from the "pseudo" code, I惴 totally lost. How do I


> do
> > this, or is the approach not the right one?
> >

> > And finally, WHERE巽 THE DOCUMENTATION of wsadmin? The infocenter have

metal

unread,
Jun 9, 2004, 10:59:43 AM6/9/04
to

Thank you both for the useful information. I wrote a nice little ANT
script that handled Base well (either single and multiple JVMs), but
I'm having a tough time figuring out how to do something similar for ND
and clusters. PJ, if you could post the ANT source you mentioned
below, that would probably be a huge help to me.
Thanks!
Tim

PJ wrote:
> *Hello,


> When you use the WSADMIN tools you must start the application on
> each server instance. Below is a link to an IBM redbook that
> touches
> on the process of querying websphere for servers and then performing
> operations on the servers. Start at page 822.
>

> http://tinyurl.com/2p2c3


>
> We had a developer who did this through ANT. I'll see if I can get
> the source from him and post it.
>
>
> PJ
>
>
> "Niclas Rothman" <ni...@nnit.com> wrote in message

> news:<c93tt9$8gvk$1...@news.boulder.ibm.com>...[vbcol=seagreen]


> > Somehow strange, replying to my own mail :-) Yesterday I found a
> more in
> > depth documentation about the wsadmin.
> > The documentation is targeted for the z/os audience but from what I
> can se
> > it愀 still valid for other platforms. However my question below are
> still
> > unanswered so if anyone have som input i woul appreciate it!
> >
> > Enjoy :-)
> >

> > http://tinyurl.com/2x78q


> >
> >
> > Niclas
> >
> >
> >
> >
> >
> >
> > "Niclas Rothman" <ni...@nnit.com> wrote in message
> > news:c92jtc$43cm$1...@news.boulder.ibm.com...

> > do
> > many *

--
metal
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message240769.html

Chris Peyton

unread,
Jun 10, 2004, 8:24:17 AM6/10/04
to
This is the JACL script that i use to start my cluster.

set name [lindex $argv 0]
puts $name
set cl1 [$AdminControl completeObjectName type=Cluster,name=$name,*]
$AdminControl invoke $cl1 start

The argument passed to the script is the name of the cluster. The
stop script is identical except you replace start with stop.

Chris

metal <metal....@mail.webservertalk.com> wrote in message news:<metal....@mail.webservertalk.com>...

0 new messages