2

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?

1

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

Any generic way available irrespective of which server i am deploying..?
If the deployment.xml is not in the EAR, it will be created on deployment. You can then export the ear from WebSphere after making changes to the classloader. This exported ear will contain the modified deployment.xml which will be used on redeployment. Exporting enterprise applications www14.software.ibm.com/webapp/wsbroker/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.