Modify Deployment Order

Hello all,
I have 2 deployments, deployment 2 needs to be deployed after deployment 1 because it d2 is using d1. As far as I know you have so called "Deployment Order" (DO). d1 hast DO=100 and d2 has DO=200. If so, then eg after a restart of the weblogic d1 is deployed before d2.
Now my question: How to modify DO during the building of d2? That means that I want to have the information DO=200 in web.xml (or whatever) of the d2. I've tried <load-on-startup>2</load-on-startup> but it doesn't work because I think it is only valid for 2 different servlets in the sam .ear. But I have 2 .ears. Maybe edit weblogic.xml somehow. But I think weblogic.xml affects all deployments and not only 1.
Thank you in advance for you feedback.
Kind regards,
Anton

To my knowledge to change the deployment order, the application must first be deployed, for example by using the WLST deploy command (http://docs.oracle.com/cd/E24329_01/web.1211/e24490/reference.htm#i1024284) after which you can obtain an instance of the AppDeploymentMBean (http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13951/core/index.html) and change the DeploymentOrder attribute (http://docs.oracle.com/cd/E24329_01/web.1211/e24443/managing.htm#DEPGD306).
The following shows an example (with shared libraries)
print 'DEPLOY LIBRARIES';
deploy('jsf-ri', path=jsfrilibrary, targets='Cluster', libraryModule='true');
deploy('trinidad', path=trinidadlibrary, targets='Cluster', libraryModule='true');
deploy('coherence-web-spi', path=coherencelibrary, targets='Cluster', libraryModule='true');
print 'START EDIT MODE';
edit();
startEdit();
print 'CHANGE DEPLOYMENT ORDER OF DEPLOYED LIBRARIES';
libraries = cmo.getLibraries();
for library in libraries:
     library.setDeploymentOrder(1);
print 'SAVE AND ACTIVATE CHANGES';
save();
activate(block='true');

Similar Messages

  • Weblogic.deployer  and deployment order

    Good day all,
    Is there a way to force an application to deploy last (because of dependencies)?
    I know how to modify the deployment order in the console or wlst, but if all applications are in the same application directory, how can you make sure that appxyz.war deploys last?
    Thanks
    Ash

    Ashanty,
    you may want to refer this link for deployment order of applications..
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13952/taskhelp/deployment/ChangeTheServerDeploymentOrder.html
    I don't think weblogic.deployer will allow you to do deployment order and it can be done through Administration console only.
    Thanks
    Lawrence Manickam
    http://toyork.blogspot.ca

  • Modify Sales order Item additional tab B

    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....which is ok. But does it have any impact becoz the same screen fields coulbe used in any of the other transaction .......i  just wanted to know if we remove the fields from sale orde item additional tab B and some new details will have some impact

    Hi,
    Before making any modifications check "Where-used". If it is in some other program other than the VA01/02/03, then better consult your lead before modifying.
    If you do not find, go ahead and make the changes confidently.
    Regards,
    Subramanian

  • Need to modify Sales order Item additional tab B

    Hello all,
    I need to modify Sales order item additional tab B ...by removing the exisitng fields and should add some new fields ....does it have any impact on this screen could be used in any of the other transaction .......i  just wanted if we remove the fields and some new details will have some impact
    Regards,
    KK

    Additional data B is used to add your own fields also known as custom fields in sales order.
    Custom fields can be added to tables VBAK & VBAP (depending on header or item). Similarly you can remove fields if you don't require it anymore.
    In short, your requirement can be met but you have to take help of ABAP consultant since it requires maintenance of user exits and modification of screens.

  • Issue with create deployment order with BAPI_POSRVAPS_SAVEMULTI3

    Hi Experts,
      We are trying to create deployment orders with BAPI_POSRVAPS_SAVEMULTI3. The following are the input:
    LOGICAL_SYSTEM                  RR1CLNT010
    ORDER_TYPE                      2
    EXT_NUMBER_ASSIGNMENT
    COMMIT_CONTROL                  E
    PLNG_VERSION                    000
    NO_CREATE
    PLANNING_MODE_USAGE             0
    EVENT_CONTROL                   1
    And for receipts and requirement, we put ATP category as EG and EF.
    But it return error 'Events are supported only for Purchase Requisitions'. For u2018EGu2019 and 'EF', I can see it is category typ '2'.
    Does this BAPI able to create deployment STR or it can only create SNP STR?
    Thanks.
    best regards,
    Wenyan

    Hi Wenyan,
    In the BAPI, the following code should be responsible for the error message:
    * -> check: event_control is only available for purchase requisition
      if event_control = gc_apo_bapi_create_event and order_type <> gc_requisition.
    *   -> error message
        _apo_bapi_message_add_itab0 gc_error gc_apo_bapi_msgclass '342'
        return.
        lv_error = gc_true.
      endif.
    The relevant constants are:
    * -> constants for event control
    CONSTANTS:
      gc_apo_bapi_no_event TYPE bapi10503eventcontrol VALUE space,   "collect but no direct sending
      gc_apo_bapi_create_event TYPE bapi10503eventcontrol VALUE '1',     "collect + send event
      gc_apo_bapi_no_event_collect TYPE bapi10503eventcontrol VALUE '2'. " no collect and no sending
    *--> External Order types
    CONSTANTS:
    *  Bestand
    gc_stock              TYPE /sapapo/r3obj VALUE '0',
    *  Bestellanforderung
    gc_requisition        TYPE /sapapo/r3obj VALUE '1',
    *  Bestellung
    gc_purchase_order     TYPE /sapapo/r3obj VALUE '2',
    As you can see, if you want to create an order other than SNP purchase requistion, you cannot set the control_event as '1'.
    Best Regards,
    Ada

  • Modify purchase order to include company logo

    Hi,
           How to Modify purchase order to include company logo

    Modfying is  nothing but copying the existing form to new name.
    For example MEDRUCK  is standard one .
    Copy this to new one as follows.
    1.In SE71 Utilities -> Copy from Client
    2. Mandatory fields
    Form Name:MEDRUCk
    Source Client:Depends upon ur client
    TArget form:ZMEDRUCK
    Check both the check boxes there
    3 .Click Save button
    4.New form will be created
    5.Now do ur changes.
    Niow u have to add the program and the modified form in the NACE to an output type.
    Next using the new out put type, in the transaction mee2n give a po number.
    Next in the tool bar u have Goto -> Messages
    In that screen u have to give the new out put type and medium and partner.
    Once this is done u can save and go back check the print preview.
    Follow the above steps and let me know if u face any problem,
    Regards
    Ravi

  • Deployment order of MDBs vs EJBs in WL startup sequence

              This is a problem that follows on from my last posting.
              To recap, we have multiple WL servers not clustered, one acts as the JMS server that
              all of them use as their MDB jndi-provider-url so when a message (on a JMS topic)
              is published to the main server, all the WL servers receive it.
              The main WL server acting as the JMS server is started up first, then the others.
              The following problem can occur.
              A message can arrive at the main server while another server is booting up. The MDBs
              on this booting server can deploy it's MDBs before it's EJBs. Because this server
              is subscribing using the JMS server on the main server, the message is delivered
              and the onMessage() method is called. But this method may have to do lookups on EJBs
              that have not been deployed yet.
              So the question is, is it possible to ensure that all the EJBs deploy before the
              MDBs in a WL startup sequence? Does it require two separate JAR files to control
              the order, or can you control the order within a JAR file or have you simply no control
              over the order at all?
              Regs,
              Paul
              

    That's correct.
              "Paul Hammond" <[email protected]> wrote in message
              news:[email protected]...
              >
              > In my response to my own question I have seen in the WL docs that JMS
              servers are
              > deployed before EJB components, but within EJB components you can specify
              a deployment
              > order so presumably there by having separate JARs, one with EJBs, one with
              MDBs,
              > you can ensure your MDBs are deployed last?
              >
              > Paul
              >
              >
              >
              >
              > "Paul Hammond" <[email protected]> wrote:
              > >
              > >This is a problem that follows on from my last posting.
              > >
              > >To recap, we have multiple WL servers not clustered, one acts as the JMS
              > >server that
              > >all of them use as their MDB jndi-provider-url so when a message (on a
              JMS
              > >topic)
              > >is published to the main server, all the WL servers receive it.
              > >
              > >The main WL server acting as the JMS server is started up first, then the
              > >others.
              > >
              > >The following problem can occur.
              > >
              > >A message can arrive at the main server while another server is booting
              > >up. The MDBs
              > >on this booting server can deploy it's MDBs before it's EJBs. Because
              this
              > >server
              > >is subscribing using the JMS server on the main server, the message is
              delivered
              > >and the onMessage() method is called. But this method may have to do
              lookups
              > >on EJBs
              > >that have not been deployed yet.
              > >
              > >So the question is, is it possible to ensure that all the EJBs deploy
              before
              > >the
              > >MDBs in a WL startup sequence? Does it require two separate JAR files to
              > >control
              > >the order, or can you control the order within a JAR file or have you
              simply
              > >no control
              > >over the order at all?
              > >
              > >Regs,
              > >
              > >Paul
              > >
              >
              

  • How to Confirm the SDAs deploy order of SCA in RemoteGUI of SDM

    Hello everybody,
           We assemblied a sca file in NWDI when we finished development.
           But when we used RemoteGUI to deploy the SCA file in another NetWeaver2004s engine.The Deploy order is wrong.The SDM doesn't first deploy the Library,EAR.It deployed the SDA ordering by the letter order ,not the dependence order.
           For example,there are two SDA in the SCA file, one's name is <b>d_lib</b>,another name is <b>a_ear</b>.The a_ear depend on the d_lib.When SDM deploy the SCA,it first deploy the a_ear,not d_lib.
          How to Confirm the SDAs deploy order of SCA in RemoteGUI of SDM?

    Hi Marc,
    Thanks for your help!
    I found the Prodiver.xml,and the content is:
    <?xml version="1.0" encoding="utf-8" ?>
    - <provider-descriptor>
      <display-name>om/library</display-name>
      <component-name>om/library</component-name>
      <description />
      <major-version>7</major-version>
      <minor-version>00</minor-version>
      <micro-version>0</micro-version>
      <provider-name>pjs.com</provider-name>
    - <jars>
      <jar-name>pjs.comomwcalistwcalist_daoWcalistPackage.jar</jar-name>
      <jar-name>pjs.comomlogequipdao~daoPackaged.jar</jar-name>
      <jar-name>pjs.comomnotificationnotification_daoNotificationPackage.jar</jar-name>
      <jar-name>pjs.comombasedaodaoPackaged.jar</jar-name>
      <jar-name>pjs.comomlogareaareadaopackaged.jar</jar-name>
      <jar-name>pjs.comompostpost_daoPostPackage.jar</jar-name>
      <jar-name>pjs.comompostpost_daoSpecialtyPackage.jar</jar-name>
      <jar-name>pjs.comomtaskdaopackaged.jar</jar-name>
      <jar-name>pjs.comomgradeprojectgradedaopackagSDA.jar</jar-name>
      <jar-name>pjs.comomlogreconlredaopackaged.jar</jar-name>
      <jar-name>pjs.comomsafeexcepreportExcepReportPackage.jar</jar-name>
      <jar-name>pjs.comomsaferecorddaoapi.jar</jar-name>
      <jar-name>pjs.comomlogelogelogdaopackaged.jar</jar-name>
      <jar-name>pjs.comomsysdaopackaged.jar</jar-name>
      <jar-name>pjs.comombasevindbasedaopackaged.jar</jar-name>
      <jar-name>pjs.comomlogsearchpersondao~SearchPersonSDA.jar</jar-name>
      <jar-name>pjs.comomplacarddaoplacardPackaged.jar</jar-name>
      <jar-name>pjs.comompostpost_daoPersonPackage.jar</jar-name>
      <jar-name>pjs.comomsbillrecorddaosbillRecordPackaged.jar</jar-name>
      <jar-name>pjs.comomdutyperson_dao~DutyPersonSDA.jar</jar-name>
      <jar-name>pjs.comomrptdaoRptSDA.jar</jar-name>
      <jar-name>pjs.comompostpost_daoEquipmentPackage.jar</jar-name>
      <jar-name>pjs.comomlogtypelogdaopackaged.jar</jar-name>
      <jar-name>pjs.comomsafeproeval_daoProEvalPackage.jar</jar-name>
      <jar-name>pjs.comompersonpostdaopackaged.jar</jar-name>
      <jar-name>pjs.comomlogsearchlogdao~SearchSDA.jar</jar-name>
      <jar-name>pjs.comompublic~packaged.jar</jar-name>
      <jar-name>pjs.comomspellgroupdaodaoPackaged.jar</jar-name>
      <jar-name>pjs.comomlogpersonlogdao~packaged.jar</jar-name>
      <jar-name>pjs.comompostpost_daoRlogPackage.jar</jar-name>
      <jar-name>pjs.comomschedule_dao~ScheduleSDA.jar</jar-name>
      <jar-name>pjs.comomreportrptdaopackaged.jar</jar-name>
      <jar-name>pjs.comompostpost_daoRecordClassPackage.jar</jar-name>
      <jar-name>pjs.comompostpost_daoReqpPackage.jar</jar-name>
      <jar-name>pjs.comomlogshiftclassdao~ShiftClassSDA.jar</jar-name>
      <jar-name>pjs.comomverifyrecorddao~RecordPackage.jar</jar-name>
      <jar-name>pjs.comomunit_dao~UnitSDA.jar</jar-name>
      <jar-name>pjs.comomdatadefinedefdaopackaged.jar</jar-name>
      <jar-name>pjs.comomheader_dao~HeaderSDA.jar</jar-name>
      <jar-name>pjs.comomspellspedaopackaged.jar</jar-name>
      <jar-name>pjs.comomlogrecdlcddaopackaged.jar</jar-name>
      <jar-name>pjs.comomlogsearchequip_dao~SearchEquipSDA.jar</jar-name>
      <jar-name>pjs.comomcompanycomdaopackaged.jar</jar-name>
      <jar-name>pjs.comommaceasyformdao~daoJAR.jar</jar-name>
      <jar-name>pjs.comomdeclaredecdaopackaged.jar</jar-name>
      <jar-name>pjs.comompostpost_daoFunlcodePackage.jar</jar-name>
      <jar-name>pjs.comomlogeventlevdaopackaged.jar</jar-name>
      <jar-name>pjs.comomclient_dao~ClientSDA.jar</jar-name>
      <jar-name>pjs.comomlogdepldedaopackaged.jar</jar-name>
      <jar-name>pjs.comomlogceqplceqdaopackaged.jar</jar-name>
      <jar-name>pjs.comomrptinforptdaopackaged.jar</jar-name>
      </jars>
      </provider-descriptor>
    I checked it and didn't find any error! What can i do?

  • Can we modify sales order line item before its booked through API?

    can we modify sales order line item before its booked through process_order API?
    here we have a situation where related item should be substituted for actual order item when user selects the related item , So looking for a way to modify the ordered item on sales order line .
    Thanks,

    Hi
    There is an API to update the Related Item on the line level in the Sales Order.
    PROCESS_ORDER API can be used for this purpose. It is part of OE_ORDER_PUB.
    Below are the fields on line table type that will be assigned to create an order line with related item and original ordered item.
    ORIGINAL_ORDERED_ITEM : Original Item
    ORDERED_ITEM : Related Item
    ITEM_RELATIONSHIP_TYPE : Type of Relationship.
    Please go ahead and try to create it like this. I am pretty sure that it will get the order created with related items.
    Note: Please make sure the profile option
    OM: Enable Related Items
    should be enabled.
    Please mark the response as helpful or correct if it provides you the solution.
    Thanks
    Mirza Tanzeel

  • User exit to modify sales order pricing condition

    Hi Experts,
    I need ot modify Sales Order Header Condition (ZFRH), Condition Value (KWERT) for Transaction VA01 & VA02
    I agree there are many user exits which will modify XKOMV-KWERT structure and can populate what ever value we insert.
    But the value we insert is inserting into line item condition and the total of all line items is populating in Header .
    I need to modify only Header condition without populating Line items
    Thanks ,
    Basheer .

    Hi:
    Program : MV45AFZZ
    search for USEREXIT_NUMBER_RANGE.
    BR,
    Manthana

  • Meaning of the Deployment Order attribute

    Does anyone know to what the Deployment Order attribute corresponds in
              the Create a new Connector window ?
              Thanks in advance.
              

    Hello Lee,
    The origin of the front panel is denoted by the diamond shape in the front panel grid. As you place your tab control farther from this axis, the value of the Position:Left property will increase. You might want to read this property at runtime and configure any other positions as relative to this one. I hope this is what you needed!
    Mike D. 
    Message Edited by Duffman Says: on 04-18-2007 12:12 PM
    Attachments:
    ScreenShot.JPG ‏15 KB

  • Deployment order in 6.0

    I'm sure this has been covered before but is there anyway to dictate the
    deployment order of EJB's contained in a single EAR file?
    Or does WL use some default scheme - alphanumeric sorting, order in the
    applications.xml file??
    Thanks
    Tom

    The default scheme is random.
    in your config.xml you can specify the order in 6.x, it's just not documented.
    The format is:
    <EJBComponent DeploymentOrder="9" Name="discount"
    Targets="wlcsServer" URI="discount.jar"/>
    We were told by a Bea consultant to set all of the out of the box
    EJBs to 9, all of our beans that are not run through ejbc to something like 80,
    and all of the rest to 99.
    WLS will randomly pick the order for all EJBs with the some deployment order,
    for example 9.
    The catch, once it finds one EJB that is fully packaged (tan through ejbc, it
    will assume that all of the remainder are fully packaged. This can cause problems.
    Tom Gerber <[email protected]> wrote:
    I'm sure this has been covered before but is there anyway to dictate
    the
    deployment order of EJB's contained in a single EAR file?
    Or does WL use some default scheme - alphanumeric sorting, order in the
    applications.xml file??
    Thanks
    Tom

  • Changing of Means of Transport for deployment order

    Hi All,
    Is it possible to manually/ programatically change the means of transport of a deployment order ? for example once deployment has run, it has created a deployment order with means of transport, lets say, 0001 ( Truck). Now i want to change the means of Transport to 0003 ( Air). Is it possible using some BADI etc ?
    Pls note that i know that by assigning product speciic means of product of 0003, it is possible to directly create deployment order for 003 means of transport. Due to some requirement, we want to change it manually.
    Regards,
    Pawan.

    Hi Senthil,
    I tried that option already. Infact there is no need to delete existing deployment order, you can simply run deployment with replan all option. This will create deployment orders on the new means of transport. What i wanted is, without running deployment, is there some option possible wherein i can change the means of transport of an existing order, which is already created on another means of transport ?
    regards,
    Pawan.

  • Changing Deployment Order

    Hi,
    Is there a way to alter deployment order through WLST? Or, does someone know about altering deployment order(not from Admin Console though!) ?
    Thanks
    Nitin

    Hi Nitin,
    This can be done in Offline Mode:
    Step1). run . ./setWLSEnv.sh
    Step2). java weblogic.WLST
    Step3). wls:/offline> readDomain(r'C:\bea103\user_projects\domains\7001_Domain')
    OR
    wls:/offline> readDomain('C:/bea103/user_projects/domains/7001_Domain')
    Step4). cd ('AppDeployment')
    Step5). ls()
    wls:/offline/7001_Domain/AppDeployment> ls()
    drw- PolicyTestEAR
    drw- WebAppEar
    drw- SecondWebAppEar
    Step6). cd ('SecondWebAppEar')
    Step7). cmo.setDeploymentOrder(111)
    wls:/offline/7001_Domain/AppDeployment/SecondWebAppEar> set('DeploymentOrder',111)
    wls:/offline/7001_Domain/AppDeployment/SecondWebAppEar> ls()
    -rw- AltDescriptorPath..........................null
    -rw- AltWlsDescriptorPath..........................null
    -rw- ApplicationIdentifier..........................null
    -rw- ApplicationName..........................null
    -rw- CompatibilityName..........................null
    -rw-   DeploymentOrder ..........................111
    -rw- DeploymentPrincipalName..........................null
    -rw- InstallDir..........................null
    -rw- ModuleType..........................ear
    -rw- Name..........................SecondWebAppEar
    -rw- Notes..........................null
    -rw- PlanDir..........................null
    -rw- PlanPath..........................null
    -rw- SecurityDdModel..........................DDOnly
    -rw- SourcePath..........................C:\JavaTest\Diagnostics\SecondWebAppEar
    -rw- StagingMode..........................stage
    -rw- Target..........................AdminServer
    -rw- ValidateDdSecurityData..........................false
    -rw- VersionIdentifier..........................null
    ============================================
    As well as in Online Mode :
    http://weblogic-wonders.com/weblogic/2010/05/23/changing-deploymentorder-of-datasources/
    Thanks
    Jay SenSharma
    Edited by: Jay SenSharma on Jan 14, 2010 1:57 PM
    Edited by: Jay SenSharma on Jan 14, 2010 1:58 PM

  • Set deployment order at deployment

    Hi All,
    This is my situation. i have a WLST deploy script to deploy a few EAR files (WLS 10). The first service is deployed in 5 minutes, the second takes 8 minutes, the third will take 12 minutes and so on until a timeout occurs. Every service takes more time to deploy (size is about the same). I think this has something to do with server getting buzzy with all the deployments. Is there a way to set the deployment order at deploy time so the server first handles all action for the first service before he starts handling the second service? Or is there some other solution to prevent the deployment script form timing out?
    Thanks

    You can change to deployment order by first obtaining a reference to your deployment by using
    deployments = cmo.getAppDeployments;Then the deployment order can be changed as follows:
    for deployment in deployments:
        deployment.setDeploymentOrder(1);The deployment order can be set after you have deployed the application.

Maybe you are looking for

  • Error message when trying to open the itunes setup

    when i try to open the itunes setup icon on my desktop i get the error message i get the message "'iTunesHelper.Resources' is not a valid short file name". this is after itunes vanished leaving behind the same message a few days ago. i have deleted i

  • The program can't start because api-ms-win-core-debug-l1-1-1.dll is missing

    I was recently asked to convert several APP-V 4.6 sequences to APP-V 5.0 SP2 sequences.  On a development workstation, I ran the Test-AppvLegacyPackage command against the APP-V 4.6 sequences to detect potential issues.  Next, I ran the ConvertFrom-

  • TS2755 Msg 2114

    Can't send messages for some contacts. I receive this message: "message sent using invlid number of digits. Please resend using 10 digit number or valid short code. Msg 2114 I check the numbers, edit, fix . delete the contacts and make new again but

  • How to make clock themes for 6233?

    How can I create clocks that works for 6233 to add to the themes I make, knowing that 6233 only supports flashlite 1.1 no higher versions http://www.zedge.net/forum/t/57960/how-to-make-clock-themes/

  • Confirmation Links in ESS

    Hi All, We have configured ESS in our landscape. In the Confirmation page of Address, we have the following three links : Go to HR Self Services Homepage Go to Main Menu Return to Overview Page But in the Confirmation page of W-4 Tax & Benefits Enrol