Monday, June 11, 2012

Property To Make DB JNDI Dynamic

Suppose you created a project by using the DB adapter.And you are migrating the project from DEV to TEST.In the TEST environment the JNDI name may be different.So in these situations we have to make the JNDI name dynamic.


Steps to change DB JNDI dynamically.
1.Create a preference in the composite.xml
<property name="bpel.preference.dyn_jndi">eis/jndi/mydbjndi"</property>


2.Then drag and drop the DB adapter and configure it.


3.Then open .bpel file , please the property
 <bpelx:inputproperty name="jca.jndi" variable="dyn_jndi"/>


4.Deploy the project , then we can change the JNDI in the runtime,         By setting the preference    value

No comments:

Post a Comment