Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ConnectionDefinition for bc4j.xcfg at one place.

user1022639Jan 11 2012 — edited Jan 12 2012
Hi Experts,

I would like to deploy the ADF BC as ejb and access that in the ADF Faces data binding. So i have done the following config,

1) For each application module i have created new configuration in bc4j.xcfg. And specify the DeployPlatForm as "EjbWls".

2) Added the following code segment into the config file


<AppModuleConfig name="LookupAMejb" ApplicationName="test.LookupAM"
DeployPlatform="EjbWls" jbo.project="test.Model" JDBCName="testDS">
<Database jbo.TypeMapEntries="OracleApps"/>
<Security AppModuleJndiName="TestApplication-Model-RemoteLookupAM"/>
<Custom JDBCDataSource="java:comp/env/jdbc/testDS" java.naming.factory.url="t3://127.0.0.1:7101" AppServerConnectionName="IntegratedWebLogicServer"/>
</AppModuleConfig>
</AppModuleConfigBag>
<ConnectionDefinition name="IntegratedWebLogicServer">
<Entry value="7101" name="HTTP_PORT"/>
<Entry value="7102" name="JMX_CONNECTOR_SSL_PORT"/>
<Entry value="WebLogic_10.x" name="ConnectionType"/>
<Entry value="weblogic" name="user"/>
<Entry value="DefaultDomain" name="weblogic.domain"/>
<Entry value="127.0.0.1" name="JMX_CONNECTOR_HOST"/>
<Entry value="7102" name="HTTPS_PORT"/>
<Entry value="7101" name="JMX_CONNECTOR_PORT"/>
<Entry name="password" value="welcome1"/>
<Entry name="DeployPassword" value="true"/>
</ConnectionDefinition>

3) In the databindings.cpx i have wired the application module to the ejb configuration.

Now my question is for each application module (in a different package) i have bc4j.xcfg, So do i need to add the server details to each of them?,
Is there anyway that i can load the values from properties file or from a single place. It would be difficult to change lots of places for single property.

Looking forward to hear from u experts.

-t

Edited by: user1022639 on Jan 12, 2012 1:25 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2012
Added on Jan 11 2012
1 comment
308 views