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?

slm
  • 15,396
  • 12
  • 109
  • 124
Manoj
  • 5,707
  • 19
  • 56
  • 86
  • possible duplicate of [how to set java class loader PARENT\_LAST](http://stackoverflow.com/questions/21421916/how-to-set-java-class-loader-parent-last) – ᄂ ᄀ Feb 03 '14 at 08:32

1 Answers1

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

ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
  • Any generic way available irrespective of which server i am deploying..? – Manoj Feb 05 '14 at 20:16
  • 1
    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 http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-dist&topic=trun_app_distr – user3199691 Feb 06 '14 at 18:59