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
Similar Messages
-
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,
WenyanHi 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 -
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? -
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 -
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. -
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
NitinHi 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?
ThanksYou 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. -
I am running WLS 7.0 and I've noticed that the deployment order
of EJBs does not appear to work. I have 3 ejbs in 3 different
ears. If I set the deployment order to be 1 for A.ear, 2 for B.ear, and 3 for
C.ear and startup weblogic and watch the
startup.log, I get different results each time I stop and start
weblogic.
Is there something that I'm missing? Is this fixed in SP1?I'm not sure if it's fixed in SP1 or not. It's worth giving it a shot.
If SP1 doesn't fix this problem, i would suggest that you talk to
[email protected]
Kumar
Brian wrote:
I am running WLS 7.0 and I've noticed that the deployment order
of EJBs does not appear to work. I have 3 ejbs in 3 different
ears. If I set the deployment order to be 1 for A.ear, 2 for B.ear, and 3 for
C.ear and startup weblogic and watch the
startup.log, I get different results each time I stop and start
weblogic.
Is there something that I'm missing? Is this fixed in SP1? -
Deployment Order of modules.
Hi,
I have an en EAR that contains multiple jars and each jar contains multiple EJBs
and the jars depends each others (not circular).
that means that the deployment order of modules it's
very important so I won't get NoClassDefErrorFound.
How Can I set the modules deployment order ?, I know that for each of the jars
I can set the deployment order (in my case ejb deployment order) but what about
modules ?
Any help will be appreciated.
HaimIf I understand correctly, you're asking if there is any ordering of the jar files in WEB-INF/lib of a war file? ie if you have the same class in multiple jars files which one is first on the classpath?
AFAIK, this is undefined in the J2EE specs, and we don't guarantee any ordering.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Deployment order across applications
I have a web app that implements ServletContextListener. This app on deployment
looks for an ejb on another app. How do I tell weblogic to deploy the web app
before the ejb app. These two have to be different applications. I cannot combine
them into the same ear. I am not able to find ways to identify deployment order
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatly appreciated.
Thanks in advance.We don't want the dependency between the EAR application and this web app. We also
plan to deploy this web app on multiple boxes that will require only a servlet
container and will not require an app server. Also the EAR app will be deployed
on multiple boxes and we do not want the extra overhead of this web app. Hope
this answers your question.
Do you know of any alternative approach to this problem since I do not see having
deployment ordering across apps in weblogic.
Thanks.
Gajendra Sanil
"Dimitri I. Rakitine" <[email protected]> wrote:
I'm curious, why you cannot deploy your EJBs and WAR in the same EAR?
Deploying them separately will result in a very serious performance
penalty because local RMI optimization will not be used.
Gajendra Sanil <[email protected]> wrote:
I have a web app that implements ServletContextListener. This app ondeployment
looks for an ejb on another app. How do I tell weblogic to deploy theweb app
before the ejb app. These two have to be different applications. Icannot combine
them into the same ear. I am not able to find ways to identify deploymentorder
across applications. Any thoughts.
Any ideas on other approaches if this is not possible will be greatlyappreciated.
Thanks in advance.--
Dimitri -
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
AshAshanty,
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 -
How to make deployment order irrelevant
Right now I have 2 SOA projects, A and B. A calls B. I have to deploy B first, then A second. Otherwise if I deploy A before B then when I run A, I will get an error saying it can't find B.
Is there a way to make deployment order not important so we can deploy SOA projects in any order we want? In my example, I can deploy A or B in any order I want.
ThanksHi,
Thanks for the response.
I have already attached the shipping, production and warehouse calendar and also the transportation calendar in the means of transport in the transportaion lane.
But it still does not consider factory calendar. It does not take weekend and the holidays into account for deployment purpose. -
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,
AntonTo 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'); -
Application deployment order with weblogic-ejb-jar.xml and jndi-name
I have two applicatation working on Weblogic server v. 10.3.6.
First of them creating one ejb stateless bean and creates JNDI maping for it (in weblogic-ejb-jar.xml file):
<weblogic-enterprise-bean>
<ejb-name>ConfigMenegerBean</ejb-name>
<stateless-session-descriptor>
<stateless-session-descriptor>
<business-interface-jndi-name-map>
<business-remote>package.ConfigurationSessionRemote</business-remote>
<jndi-name>ConfigMeneger</jndi-name>
</business-interface-jndi-name-map>
</stateless-session-descriptor>
<enable-call-by-reference>true</enable-call-by-reference>
<jndi-name>ConfigMeneger</jndi-name>
</weblogic-enterprise-bean>
Second appication have to refer for this bean by JNDI using spring been lookup :
<jee:jndi-lookup id="configManager" jndi-name="ConfigMeneger"/>
I changed deployment order parameter for both apllication(first=100 and second=500) in order to first app start first and share bean by jndi to another application. Unfortuantelly I got an error :
javax.naming.NameNotFoundException: Unable to resolve 'ConfigMeneger'. Resolved ''; remaining name 'ConfigMeneger'
How can I configure deployment order that first application make jndi mapping for bean, before the second application will use it ?Ok in a way I have solved my problem (even if I am not completely satisfied by the way on how to proceed...). So thanks to message "JBuilder7.0 and Weblogic6.1" on EJB sun forum :
http://forum.java.sun.com/thread.jsp?thread=285735&forum=13&message=1255488
I have tried the following actions (mentionned in the other forum messages):
- To preserve changes to weblogic*.xml, the safest way is to change the ejb-borland.xml.
(I am not sure that I have applied this advice correctly, because I suppose that syntax is not similar in weblogic file or borland file).
And you can MANUALLY update the weblogic file in your JAR archive.
1. Open the EJB JAR file in Winzip and extract the weblogic-ejb-jar.xml file, so that a copy exists in your
project directory.
2. Open this file (in Notepad), add the WebLogic specific information, and then save the file.
3. Now, when you are finished with the build cycle and are ready to deploy, you may open the EJB jar file
and swap in the weblogic-ejb-jar.xml file."
Good Luck.
Maybe you are looking for
-
Hello- Came home from work today to find my monitor screen was entirely black and white. No distortion, no problems otherwise with the computer's functions, it's just that everything's a beautifully detailed colorless grayscale image. I tried restart
-
Hello everyone,I have a question,how to realize trigonometric function:sin
I need to use sin to calculate the distance between two points on the earth. In orcale it has the functions:SIN,ACOS,SQRT, but in TT the same sentence is wrong. Now I have a question:how can I realize SIN. Thanks
-
Attaching ByteArrayOutputStream to Mail Message
I can attach a file to a javamail message easily: DataSource source = new FileDataSource("test.pdf"); messageBodyPart.setDataHandler(new DataHandler(source)); Is there anyway however to attach a ByteArrayOutStream to a mail message and then give it a
-
Stock display with Alternate unit of measure
Hi All, is there any report in SAP, which displays the warehouse stock with Alternate Unit of measure. I did try in MB52. It was showing only in BUM. Please help ASAP. Ayesha
-
Please Help - LR update wipes out my catalog.
This seems an uncommon problem as I haven't found any other posts on it, but I'm having the issue that LR updates wipe out my catalog?! I've had LR4 for a couple years now. When the 4.4 update first came along awhile back, I accepted the download, an