ADF BC With No Database Connection
Sometimes user need programmatic View object with no database connection.
If you want to disable database access for ADF BC application, you will need to update bc4j.xcfg.
I would recommend to update this file from outside, not from JDeveloper – otherwise you may experience errors – seems like JDeveloper IDE is constantly scanning changes from bc4j.xcfg. Make sure to update bc4j.xcfg, for example RequiresConnection=false
Below is the snippet of the file:
<?xml version = ‘1.0’ encoding = ‘UTF-8’?>
<BC4JConfig version=”11.1″ xmlns=”http://xmlns.oracle.com/bc4j/configuration”>
<AppModuleConfigBag ApplicationName=”model.AppModule”>
<AppModuleConfig name=”AppModuleLocal” ApplicationName=”model.AppModule” DeployPlatform=”LOCAL” jbo.project=”model.Model”>
<Security AppModuleJndiName=”model.AppModule”/>
<Custom RequiresConnection=”false” password=””/>
</AppModuleConfig>
<AppModuleConfig name=”AppModuleShared” ApplicationName=”model.AppModule” DeployPlatform=”LOCAL” jbo.project=”model.Model”>
<AM-Pooling jbo.ampool.maxpoolsize=”1″ jbo.ampool.isuseexclusive=”false”/>
<Security AppModuleJndiName=”model.AppModule”/>
<Custom RequiresConnection=”false” password=””/>
</AppModuleConfig>
</AppModuleConfigBag>
</BC4JConfig>
Update <Custom JDBCDataSource=”java:comp/env/jdbc/Connection1DS”/> with <Custom RequiresConnection=”false” password=””/> at both the places.
If you want to disable database access for ADF BC application, you will need to update bc4j.xcfg.
I would recommend to update this file from outside, not from JDeveloper – otherwise you may experience errors – seems like JDeveloper IDE is constantly scanning changes from bc4j.xcfg. Make sure to update bc4j.xcfg, for example RequiresConnection=false
Below is the snippet of the file:
<?xml version = ‘1.0’ encoding = ‘UTF-8’?>
<BC4JConfig version=”11.1″ xmlns=”http://xmlns.oracle.com/bc4j/configuration”>
<AppModuleConfigBag ApplicationName=”model.AppModule”>
<AppModuleConfig name=”AppModuleLocal” ApplicationName=”model.AppModule” DeployPlatform=”LOCAL” jbo.project=”model.Model”>
<Security AppModuleJndiName=”model.AppModule”/>
<Custom RequiresConnection=”false” password=””/>
</AppModuleConfig>
<AppModuleConfig name=”AppModuleShared” ApplicationName=”model.AppModule” DeployPlatform=”LOCAL” jbo.project=”model.Model”>
<AM-Pooling jbo.ampool.maxpoolsize=”1″ jbo.ampool.isuseexclusive=”false”/>
<Security AppModuleJndiName=”model.AppModule”/>
<Custom RequiresConnection=”false” password=””/>
</AppModuleConfig>
</AppModuleConfigBag>
</BC4JConfig>
Update <Custom JDBCDataSource=”java:comp/env/jdbc/Connection1DS”/> with <Custom RequiresConnection=”false” password=””/> at both the places.
I appreciate your effort and you have done a great job.thanks for the ideas and please add more in future.
Software Testing Training in Chennai
testing courses in chennai
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
SEO training in chennai
Software Testing Training in Chennai
Software testing training in T Nagar
Keep posting the updates and also post more information.
French Classes in Chennai
french institute in chennai
Best Spoken English Classes in Chennai
TOEFL Classes in Chennai
pearson vue exam centers in chennai
German Courses in Chennai
French Classes in anna nagar
spoken english in anna nagar
Thanks for sharingcustom erp solutions