IHelperBean Class - Predefined SOA Class to set JCA properties in Spring Component
Most of the Business logic are not simple to achieve in SOA ( BPEL ) or BPM, to make process more faster and simple to maintain Spring approach can be use. Calling SOA adapter in Spring also simple.
Question ???
How to set JCA properties in Run Time with out hard coding properties in .JCA and I know how to use in BPEL , But how to set in Spring ????
IHelper Bean ( Note don't change any name for IHelper Bean)
Import Statement :
import oracle.soa.platform.component.spring.beans.IHeaderHelperBean;
private IHeaderHelperBean headerHelper;
Getters and Setters
public void setHeaderHelper(IHeaderHelperBean headerHelper) {
this.headerHelper = headerHelper;
}
public IHeaderHelperBean getHeaderHelper() {
return headerHelper;
}
Code Logic :
headerHelper.setHeaderProperty("jca.file.FileName", "TmpBPCL.txt");
headerHelper.setHeaderProperty("jca.file.Directory", filePath);
Most of the Business logic are not simple to achieve in SOA ( BPEL ) or BPM, to make process more faster and simple to maintain Spring approach can be use. Calling SOA adapter in Spring also simple.
Question ???
How to set JCA properties in Run Time with out hard coding properties in .JCA and I know how to use in BPEL , But how to set in Spring ????
IHelper Bean ( Note don't change any name for IHelper Bean)
Import Statement :
import oracle.soa.platform.component.spring.beans.IHeaderHelperBean;
private IHeaderHelperBean headerHelper;
Getters and Setters
public void setHeaderHelper(IHeaderHelperBean headerHelper) {
this.headerHelper = headerHelper;
}
public IHeaderHelperBean getHeaderHelper() {
return headerHelper;
}
Code Logic :
headerHelper.setHeaderProperty("jca.file.FileName", "TmpBPCL.txt");
headerHelper.setHeaderProperty("jca.file.Directory", filePath);
Spring.xml
<beans>
<bean class="com.bcbsri.spring.mapUtil.ClaimProcessor"
id="CLM030837IpEditsFileBean">
<property name="headerHelper" ref="headerHelperBean"/>
</bean>
</beans>
No comments:
Post a Comment