Manoj
Manoj

Reputation: 5867

How to change class loader policy programmatically?

In Websphere 7, I'm developing an EAR application. I need to configure all the modules to be "PARENT_LAST" class loader policy.

Now, I'm configuring by logging into the WebSphere admin console and doing the configuration manually.

Is there any configuration such as application.xml that can do this class loading policy automatically?

Upvotes: 2

Views: 1392

Answers (1)

user3199691
user3199691

Reputation: 11

The classloader attributes for an EAR are stored in the deployment.xml file. The following information center articles provide ways to change the classloader attributes via scripting or programming:

Modifying WAR class loader mode using wsadmin scripting

Manipulating additional attributes for a deployed application

Upvotes: 1

Related Questions