11-09-05 12:50 PM
Hello,
I'm working on a personal WAS 5.1 console, using the
provided documentation on MBeans (which is really thin).
I can successfully deploy an application on a selected server but I would no
w like to specify a given virtual host for my web modules.
In jacl, no problem it works with "MapWebModToVH". But using the JMX API, th
ere are no infos. I saw that "AppConstants" provides one called "MapWebModTo
VHTask" that I tried below withour success...
Which "AppConstants" & syntax should be used to specify a virtual host for a
web module ?
Thanks in advance.
Best regards,
Cyrille
// Mapping web modules to server & virtual host
Hashtable module2server = new Hashtable();
Hashtable mapwebtovhost = new Hashtable();
StringTokenizer modules = new StringTokenizer(webmoduleList, ",");
while(modules.hasMoreTokens()) {
String webmodule = modules.nextToken();
module2server.put(webmodule+".war+WEB-INF/web.xml","WebSphere:cell="+cell+",
node="+node+",server="+server);
mapwebtovhost.put(webmodule+".war+WEB-INF/web.xml",webmoduleHost);
}
options.put(AppConstants.APPDEPL_MODULE_TO_SERVER, module2server);
options.put(AppConstants.MapWebModToVHTask, mapwebtovhost);
[ Post a follow-up to this message ]
|