File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes change the webserver definition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "change the webserver definition " Watch "change the webserver definition " New topic
Author

change the webserver definition

Rahuul Dravid
Ranch Hand

Joined: Feb 17, 2009
Posts: 42
Hi folks,

I have a remote webserver configured with the application server and i configured even the application.
and everything is working perfect , but now i need to change the webserver definition from default webserver1 to host name of that server.

This is the part i missed ....now to do this task , Is there any way to just update the webserver definition name and configuration location without actually deleting the webserver1 definition form the dmgr cell???

like " set webserverName " form wsadmin.sh ......but i'm not able to figure out to use this to change the definition from webserver1 to host_name ..... ( we have 2 more webserver on 2 diff nodes federated to the cell )

" wsadmin> set webserverName host_name webserverHostName host_name.domain "

placing the webserver name to the host( which i wanted to change from the default webserver1) by using the hostname so that it can config the webserver defined on that host Can this solve the issues ???


if changed does this effect the application deployed??

I guess this shouldn't not disturb anything on the application side as we are only trying to change the websever name but the host is the same to which everything is configured.

Thanks in Advance !
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 445
Browse thru "Sample Scripts for WebSphere Application Server" available from IBM for what you are looking for:
http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

Look for usage of AdminConfig object for changing the name of the webserver.
Rahuul Dravid
Ranch Hand

Joined: Feb 17, 2009
Posts: 42
Deepak Pant wrote:Browse thru "Sample Scripts for WebSphere Application Server" available from IBM for what you are looking for:
http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

Look for usage of AdminConfig object for changing the name of the webserver.



Hey Deepak thanks for the quick reply,

ya i'm assuming that we can make use of this "AdminConfig object to modify configuration objects" ,
But i'm not able to figure out how to use this .... i tired a couple of ways but didn't work ,

and then i wondered can we really change it and found some answers saying we cann't and the way is to delete and recreate it with new definition
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: change the webserver definition