• No results found

WebSphere Application Server v8 Primer

N/A
N/A
Protected

Academic year: 2021

Share "WebSphere Application Server v8 Primer"

Copied!
10
0
0

Loading.... (view fulltext now)

Full text

(1)

By

Joseph Amrith Raj

WebSphere Application Server v8

Primer

(2)

Joseph’s WebSphere Library

J O S E P H ’ S W E B S P H E R E L I B R A R Y

WebSphere Application Server v8

Primer, part-5: Monitored deployment /

Auto-deployment

WebSphere Library

http://webspherelibrary.mp

http://facebook.com/webspherelibrary

(3)

Joseph’s WebSphere Library

Table of Contents

Monitored Directory ... 4

Settings... 4

Deployment ... 5

UnDeployment ... 6

Final comments: ... 7

Next Steps: ... 7

References ... 8

About Author ... 9

Connect With US ... 10

(4)

Joseph’s WebSphere Library

In WebSphere Application Server v8, you can specify a deployment directory location which websphere can monitor and do deployments.

Monitored Directory

Monitor Directory specifies whether to enable monitored directory deployment. You can use monitored directory deployment to install or update an enterprise application file on an application server or cluster, or to uninstall an application file that was previously installed using monitored directory deployment. You can install or update an application file by dragging or copying an EAR, WAR, JAR, SAR to a monitored directory. The application file must conform to the Java Platform, Enterprise Edition (Java EE) specification. To uninstall a deployed application file, remove it from the monitored directory.

This sound like the „webapps‟ directory of the tomcat server to me, at this moment. Now, let us see how it works.

Settings

By default, this option is disabled. To enable, go to Applications –>Global Deployment Settings

1. Monitor Directory to automatically deploy application – must select to enable the option.

2. Monitored Directory – Directory where you will place your deploy-able files and websphere should monitor

For base (stand-alone) application servers, the default monitored directory is the monitoredDeployableApps/servers/

server_name

directory of the application server profile.

For deployment managers, the default monitored directories are the monitoredDeployableApps/servers/

server_name

,

(5)

Joseph’s WebSphere Library

and monitoredDeployableApps/clusters/

cluster_name

directories of the deployment manager profile.

3. Polling interval – Specifies the number of seconds that elapse before the WebSphere scans a monitored directory for new applications. Default is 5 seconds.

4. Click apply, save change and restart server [ before restart nothing happened in the monitored directory ]

 For base (stand-alone) application servers, the default monitored directory is the monitoredDeployableApps/servers/

server_name

directory of the application server profile.  For deployment managers, the default monitored directories are the

monitoredDeployableApps/servers/

server_name

,

monitoredDeployableApps/nodes/

node_name

/servers/

server_name

,

and monitoredDeployableApps/clusters/

cluster_name

directories of the deployment manager profile.

I‟ve changed the Monitored directory to {USER_INSTALL_ROOT}/Autodeploy. Created „AutoDeploy‟ directory under C:/IBM/WWebSphere8/profiles/AppServer01 [this is my USER_INSTALL_ROOT]. then restarted server. Now i can see 2 new directories under {USER_INSTALL_ROOT}/Autodeploy with names deployment properties and Servers. Under servers directory i‟ve another directory with name server1 which is actually my server name. So the directory that is now being monitored by WebSphere is ”{USER_INSTALL_ROOT}/Autodeploy/servers/server1

Deployment

Ok.. Now let’s do a deployment. for the testing purpose i took cachemonitor.war from „installableApps‟

and placed it in the monitored directory.

After 5 seconds.. i can see the following update in my SystemOut.log

[4/25/11 11:59:45:538 PDT] 00000022 WatchService I CWLDD0007I: Event id 1924194575-1.

Start of processing. Event type: Added, File path:

C:\IBM\WebSphere8\profiles\AppSrv01\AutoDeploy\servers\server1\CacheMonitor.ear.

[4/25/11 11:59:46:273 PDT] 00000022 AppManagement I CWLDD0028I: Event id

1924194575-1. The target of the current operation is

[WebSphere:cell=josephNode01Cell,node=Node01,server=server1].

[4/25/11 11:59:46:304 PDT] 00000022 AppManagement I CWLDD0014I: Event id

1924194575-1. Installing application Dynamic Cache Monitor…

[4/25/11 11:59:48:741 PDT] 00000023 webcontainer I

(6)

Joseph’s WebSphere Library

Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] was registered

successfully.

[4/25/11 11:59:48:741 PDT] 00000023 webcontainer I

com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0240I: Extension

Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] has been associated

with patterns [""].

[4/25/11 11:59:48:788 PDT] 00000023 WebSphereSCAS I Added Servlet mapping: /dojo

[4/25/11 11:59:48:788 PDT] 00000023 WebSphereSCAS I Added Servlet mapping: /dojo

[4/25/11 11:59:48:788 PDT] 00000023 WebSphereSCAS I Added Servlet mapping: /tuscany

[4/25/11 11:59:48:788 PDT] 00000023 WebSphereSCAS I Added Servlet mapping: /tuscany

[4/25/11 11:59:49:538 PDT] 00000023 InstallSchedu I ADMA5013I: Application Dynamic Cache

Monitor installed successfully.

This clearly says that the deployment is successful. Now go to Applications –> Application Types –> websphere enterprise applications in the admin console. I can see the dynamic cache monitor deployed ans started successfully. Another thing i noticed here is it generated [updated] the plugin-cfg.xml and propagated it to my Web Server [IHS].

UnDeployment

Now that deployment is successful.. Let’s test the UnDeployment. Just remove the application EAR file from monitored directory and wait for 5 sec [polling interval]

[4/25/11 12:06:56:268 PDT] 00000022 WatchService I CWLDD0007I: Event id 1924194575-2. Start of

processing. Event type: Deleted, File path:

C:\IBM\WebSphere8\profiles\AppSrv01\AutoDeploy\servers\server1\CacheMonitor.ear.

[4/25/11 12:06:57:002 PDT] 00000022 AppManagement I CWLDD0028I: Event id 1924194575-2. The

target of the current operation is

[WebSphere:cell=jpaturi-wxp03Node01Cell,node=Node01,server=server1].

[4/25/11 12:06:57:018 PDT] 00000022 AppManagement I CWLDD0023I: Event id 1924194575-2.

Stopping application Dynamic Cache Monitor…

[4/25/11 12:06:57:049 PDT] 00000022 AdminHelper A ADMN1010I: An attempt is made to stop the

Dynamic Cache Monitor application. (User ID =

defaultWIMFileBasedRealm/server:josephNode01Cell_Node01_server1)

[4/25/11 12:06:57:049 PDT] 00000022 CompositionUn A WSVR0192I: Stopping composition unit

WebSphere:cuname=Dynamic Cache Monitor in BLA WebSphere:blaname=Dynamic Cache Monitor.

[4/25/11 12:06:57:049 PDT] 00000022 ApplicationMg A WSVR0217I: Stopping application: Dynamic

Cache Monitor

[4/25/11 12:06:57:081 PDT] 00000022 ApplicationMg A WSVR0220I: Application stopped: Dynamic

Cache Monitor

(7)

Joseph’s WebSphere Library

[4/25/11 12:06:57:752 PDT] 00000022 CompositionUn A WSVR0193I: Composition unit

WebSphere:cuname=Dynamic Cache Monitor in BLA WebSphere:blaname=Dynamic Cache Monitor

stopped.

[4/25/11 12:06:57:752 PDT] 00000022 AppManagement I CWLDD0024I: Event id 1924194575-2.

Application Dynamic Cache Monitor is stopped on:

WebSphere:cell=jpaturi-wxp03Node01Cell,node=Node01,server=server1,status=success.

[4/25/11 12:06:57:752 PDT] 00000022 AppManagement I CWLDD0017I: Event id 1924194575-2.

Uninstalling application Dynamic Cache Monitor…

[4/25/11 12:07:00:143 PDT] 00000022 AppBinaryProc I ADMA7021I: Distribution of application

Dynamic Cache Monitor completed successfully.

It was successfully uninstalled and again updated and propagated my plugin configuration accordingly.

Final comments:

It is really simple and works well. I liked the plugin configuration update part. Since i‟m working on Base/Beta version, we have restrictions on the clusters, LB etc.. It would be interesting to see the deployment on the clusters.

Next Steps:

(8)

Joseph’s WebSphere Library

References

1.

http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.w

as_v8/was/8.0/Administration/WASv8_MonitoredDirectoryDeploy/player.html

(9)

Joseph’s WebSphere Library

About Author

Joseph Amrith Raj is a technical consultant for multiple WebSphere products. He worked on various

product consulting and support teams including WebSphere Application Server, WebSphere MQ,

WebSphere Message Broker, Enterprise Service Bus and WebSphere Process Server. He has 7 years of

experience in administration, troubleshooting, consulting and he has significant experience in

architecture, strategy and leadership positions. He is IBM certified for WAS, WMQ, WPS , SOA and Cloud

Computing.

(10)

Joseph’s WebSphere Library

Connect With US

Get notified on upcoming tutorials

Subscribe, to get this WebSphere blog posts directly to your inbox :

here

Tell us your feedback and what you want

Please leave your comments in the comments section below the post

Send us suggestions for future topics and improvements about the content at

[email protected]

Be Connected!

Connect with us on

Facebook

Connect with us on

Twitter

More about us :

profile

References

Related documents

Features Windows SharePoint Services 3.0 SharePoint Server 2007 for Search Forms Server 2007 SharePoint Server 2007 Standard CAL SharePoint Server 2007 Enterprise CAL

If the H-point couple distance, or seating package, is such that the H-point machine with 95 th percentile leg lengths will attain an ankle angle greater than 130 degrees with

Select the WebSphere Application Server v8.0 server that was created in the Servers view and click the Start the server button on the right..

Directory Application Mode (ADAM), a stand- alone, lightweight directory service based on Active Directory technology—a component of Windows Server 2003—and Authorization

than the rights of the parties addressed in Day,” and the Court ultimately deferred to the Texas Supreme Court to “recognize and pronounce such. an expansion” of the holding in Day

Among major family businesses which are still owned by the first generation of owners, only one in six (17.6%) has an advisory board; this percentage increases to as much as

SCs increase neural activity in reward-related brain re- gions, independent of pharmacological withdrawal [9], SC-induced craving can predict increased smoking be- havior [10],

Portal Server Directory Server Central Directory Central Directory Application Security Application Security Certificate Sevices & Management Customer Employee Supplier