GeeCON Prague 2014*
The moose likes Websphere and the fly likes Plugins for Two application server profiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Websphere
Bookmark "Plugins for Two application server profiles" Watch "Plugins for Two application server profiles" New topic
Author

Plugins for Two application server profiles

MaheshChittoor Reddy
Greenhorn

Joined: Mar 24, 2010
Posts: 7
Hi,

I'm new for websphere. Can anybody clarify the below doubt please!!

I have installed two profiles called AppSrv1 and AppSrv2 in my local machine (no Dmgr). And installed IHS webserver as well.
While installing the plug-in, by default it is taking the AppSrv1 and generating the plug-in for this profile.

my doubt is :::

I'm having one application called "SAMPLE1" is running on AppSrv1's server1. After installing plugin successfully i can able to access tha application from http://localhost:80/sample1.

How can i install the plug-in for AppSrv2 to access my another application called "SAMPLE2" which is running on AppSrv2's server1.

Please let me know if you are not understanding the above senario!!!


Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
As far as I know one install of IHS can support one profile of WebSphere.

1. You can have one IHS server that does request round-robin (load balancing) between two WAS Web Server(App Server) that are part of one cluster. This way you can create any number of Clusters and IHS will handle it as there is only one IHS, which is administered via DMGR.

2.If you have two separate Base WebSphere installs then I think you will have to install IHS (and plaug-in) twice, that listens to HTTP request on two ports and register them separately on two WAS profiles. I have seen this recommended in following 6.1 book.
http://www.amazon.com/WebSphere-Application-Server-Step-Step/dp/1583470611/ref=sr_1_8?ie=UTF8&s=books&qid=1269514723&sr=1-8

But I have not tried it. I have tried point #1 above with ND version where one IHS can front end multiple WAS servers that part of a DMGR profile.
MaheshChittoor Reddy
Greenhorn

Joined: Mar 24, 2010
Posts: 7
Hi,

Thankx for your quick reply!!!

One more question here--

After installing the plugin file, it will available in the below path
(for example under :C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\8113AP09Node01Cell\nodes\webserver1_node\servers\webserver1\plugin-cfg.xml).

Same plugin-cfg.xml file should be available in plugin installation directory as well.. is it right???

If it is right please let me know where to copy this file in plugin dirctory(PATH)??


Thankx,
Mahesh
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
The overall process is as follows:

1. Install WAS

2. Create Profile in WAS

3. Install IHS (specify ports, useid/password for ihs admin etc). This process will also install IHS Plug-in.

4. Log into WAS ISC Console and add IHS as a web server.

5. This way the IHS (and Plug-in) details are known to WAS.

6. Now when you install any application (ear or war) file to WAS then WAS will generate & propagate the plug-in changes to proper plug-in directory under IHS.

7. There should not be a case of manually copying the plug-in files to IHS folders.
MaheshChittoor Reddy
Greenhorn

Joined: Mar 24, 2010
Posts: 7
Hi Deepak,

Thans for your reply!!

Here my prblem is when ever i'm generating plugin from admin console it is generating the xml file in the below path

C:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\8113AP09Node01Cell\nodes\webserver1_node\servers\webserver1\plugin-cfg.xml


After propagating i'm getting the message

"The Web server plugin configuration was propagated successfully for server webserver1."

but i want to know which xml file or conf file is updating at webserver or plugin side???

Thanks
Mahesh

Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
the name of the file should be "plugin-cfg.xml" and it should be under <IHS installl root>/plugins/config/<web sever folder>.
MaheshChittoor Reddy
Greenhorn

Joined: Mar 24, 2010
Posts: 7
Hi Deepak,

I have installed the (all are default locations only)

WAS C:\Program Files\IBM\WebSphere\AppServer.....

PLUGINS C:\Program Files\IBM\WebSphere\Plugins...

IHS C:\Program Files\IBM HTTP Server...


WHENEVER I'M CLICKING GENERATING PLUGIN AND PROPAGATE THE PLUGIN I FOUND THAT
UNDER C:\Program Files\IBM\WebSphere\AppServer....... THERE IS ONE PLUGIN-CONF.XML FILE IS UPDATING, MY QUESTING IS OTHERE THAN THAT WHICH PLUGIN-CONF.XML OR ANY OTHERE FILES ARE REGENERATING???


Thanks,
Mahesh
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
I know of only one xml file. WAS might be updating its internal XML files like ServerXXX.xml.

What are you trying to achieve? As I said I dont think you can have two different WAS servers being forward referenced by one single IHS machine. This can be achieved by using ND version with clustered app servers.
 
GeeCON Prague 2014
 
subject: Plugins for Two application server profiles