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.
Haim
If 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/
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 -
Problem in Connection pooling after deploying BC4J App Module as EJB
Hi,
We have deployed the application modules on standalone OC4J as stateful EJB session beans.
The problem is that with each user, the number of database connections seem to increase. This is making the application unscalable, which defeats the purpose of using EJB!
Can someone please suggest how to limit the number of database conections in this scenario?
Can this be solved by application module pooling? How can we use the PoolMgr to work with the session beans?
We have tried to invoke disconnect on the application module after calling methods(using appmodule.disconnect(true)) and reconnect (appmodule.reconnect()) on entering the method. This keeps the number of connections low and works the first time the method is invoked. But subsequently, it gives nullpointerexception when the Row is accessed in the JSP.
The exception we are getting is :
java.lang.NullPointerException
at oracle.jbo.client.remote.ViewUsageImpl.getStructDef(ViewUsageImpl.java:241)
at oracle.jbo.client.remote.ViewUsageImpl.findAttributeDef(ViewUsageImpl.java:275)
at oracle.jbo.client.remote.RowImpl.getAttributeIndexOf(RowImpl.java:368)
at oracle.jbo.client.remote.RowImpl.getAttribute(RowImpl.java:144)
at Supplier.client.ejb.beanmanaged.SupplierAM_IntPaymtVORowBeanManagedClient.getMdid(SupplierAM_IntPaymtVORowBeanManagedClient.java:63)
at supplier.sccPayCheq._jspService(_sccPayCheq.java:102)
[SRC:/Supplier/sccPayCheq.jsp:44]
The Application module configuration (in bc4j.xcfg) is:
<AppModuleConfig name="SupplierAM9iAS">
<AppServerConnectionName>StandaloneOC4JConnection</AppServerConnectionName>
<AppModuleJndiName>Supplier.SupplierAM</AppModuleJndiName>
<java.naming.security.credentials>admin</java.naming.security.credentials>
<DeployPlatform>EjbIas</DeployPlatform>
<java.naming.security.principal>admin</java.naming.security.principal>
<DtMiddleTierDeploymentProfile>ProjectMiddleTier.deploy</DtMiddleTierDeploymentProfile>
<ApplicationName>Supplier.SupplierAM</ApplicationName>
<DtDeploymentProfile>ProjectEJB.deploy</DtDeploymentProfile>
<DtCommonDeploymentProfile>ProjectCommon.deploy</DtCommonDeploymentProfile>
<JDBCDataSource>jdbc/ConnectionCoreDS</JDBCDataSource>
<jbo.server.internal_connection>jdbc/ConnectionCoreDS</jbo.server.internal_connection>
<jbo.ejb.txntype>local</jbo.ejb.txntype>
<jbo.doconnectionpooling>true</jbo.doconnectionpooling>
<ApplicationPath>ProjectEJB</ApplicationPath>
</AppModuleConfig>
The Datasource used (in $ORACLE_HOME/j2ee/home/config/data-sources.xml) is:
<data-source
class="oracle.jdbc.pool.OracleConnectionCacheImpl" connection-driver="oracle.jdbc.driver.OracleDriver"
ejb-location="jdbc/ConnectionDS"
inactivity-timeout="30"
location="jdbc/ConnectionCoreDS"
name="ConnectionDS"
password="*******"
pooled-location="jdbc/ConnectionPooledDS"
url="jdbc:oracle:thin:@<IPADDESS>:<SID>"
username="USER"
xa-location="jdbc/xa/ConnectionXADS"
max-connections="5"
min-connections="1"/>Can this be solved by application module pooling? How
can we use the PoolMgr to work with the session
beans?You can use a stateless checkout/checkin appmodule.
Take a look at the following help topics which explain this in good detail.
"About Application Module Pooling"
"About JSP Pages and Application Module Pooling"
The pool can help reuse the appmodule instance across requests thus reducing the number of concurrent db sessions.
Dhiraj -
The customers and orders form modules
Please,i am new to oracle forms.I have been reading a book on forms ,but the book uses two form modules created by Oracle for demo purposes, the Customer and Orders form modules.I need to access and open these form modules from my form builder.I have not been able to figure out how to do that.Please how can i open the customers and orders module from form builder.
I will appreciate any help.Assuming you have the .FMB files stored on your hard drive, you can simply double-click on them or use File -> Open in Forms Builder.
-
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? -
Deployment of Adapter Modules.
Hi,
Do we deploy the Adapter Modules using SDM.
In that case how do we assign that o the specific communication channel.
If i dont assign will they work?
Thanks in Advance.
Raj>>Do we deploy the Adapter Modules using SDM.
Yes.
>>In that case how do we assign that the specific communication channel.
Specify the adapter module under the Processing Sequence of Module tab in the CC.
>>If i dont assign will they work?
No. It will not work.
Thanks
SaNv... -
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
TomThe 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. -
Project & order management modules
how can i link between project module and order management
module in order form .
thanks,Hi,
In Order Management, you can enter Project Number and Task number against each order line. This can done, by going to "Others" tab on Order Lines window.
project_id and task_id columns are there on oe_order_lines_all table.
This can be linked to pa_projects_all.project_id column
Hope this helps,
Gopal
e-mail: [email protected]
www.sagss.com -
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 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
Maybe you are looking for
-
SSRS Error while executing the report
Hi, dataextension!WindowsService_0!7d4!03/09/2015-11:21:04:: e ERROR: Throwing Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException: , Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException: Failed to execute web request for the s
-
How do i add an external hard drive to my network
how do i add an external hard drive to my network
-
Hi experts, I need find the path in the transaction SPRO the maintenance the data last selected "Assign User to Planning Book ". I attached picture. Thanks.
-
EPSI Dashboard problem after moving from reporting services 2005 to 2012
I have created a Dashboard with Allscripts EPSI with a Reporting Services Report. After we changed from Micrsosoft Reporting Services 2005 to 2012, the report now gets cut in half. I turned a ticket in to Allscripts and they said that it had nothin
-
I unchecked about thirty bands and checked about thirty different bands. With each selection the songs continued to count up and the usage meter filled. Until I clicked a final band and the song count and usage meter dropped to zero (all items still