1

Is it possible to define startup order of the WebSphere enterprise application within EAR (some of descriptor/binding files, META-INF or anywhere else)?

The procedure described in IBM InfoCenter requires using AdminConsole, but I would prefer to set fixed order in the EAR to assert that our 2 EAR's will start in fixed order (one is requiring the other to start before).

Unfortunatelly, I haven't found in Internet any way for setting startup order other then AdminConsole/wsadmin. I don't want to go into AdminConsole each time I redeploy the EAR.

0

It is not possible and this completely makes sense, since EARs are self-contained distribution units that should not know anything about each other.

  • 1
    But if one EAR exports some EJBs and the second use them they are not independent, and it's quite a real-world case. – Danubian Sailor Nov 11 '13 at 19:41
0

Not true with Websphere version 6 of the application.xml, there is a setting for true which will boot up the war's in the order they are defined.

0

Using Websphere specific configuration xml, <EAR>/src/main/application/META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp/deployment.xml, we could set startup order.

Example: startingWeight="100"

    <appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1343411066534">
    <deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1343411066534" startingWeight="100">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.