cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic filename configuration via custom EJB

Former Member
0 Kudos

Hi Experts,

We are doing a poc on whether we can do the dynamic filename configuration,i.e. set the file name dynamically in a custom EJB deployed on the server and called in the sender comm. channel of any J2EE based adapter.

The requirement is for some interfaces, there is no mapping requirement other then setting the filename dynamically, which maybe based on a certain value of the input file or a specific portion of string in the payload.

The custom EJB takes the namespace and attribute as input parameters along with other string manupulation parameters to determine the receiver file name. That is if we are using sender JMS adapter, we can have namespace = http://sap.com/xi/XI/System/JMS and attribute as DCJMSMessageProperty1. The bean would read the value and perform the manipulation based on certain other input parameters and set the file.

There is one particular bean : AF_Modules/DynamicConfigurationBean but it does not allow us to manipulate the filename.

Any help would be much appreciated.

Regards,

Shiladitya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

this can be achieved using the setMessageContent and getContent parameters

former_member556412
Active Participant
0 Kudos

Hi,

please refer to the following links for your reference

Regards,

Bhanu

Shabarish_Nair
Active Contributor
0 Kudos

/people/daniel.graversen/blog/2006/10/05/dynamic-configuration-in-adapter-modules

/people/michal.krawczyk2/blog/2006/10/09/xi-dynamic-configuration-in-adapter-modules--one-step-further

those are your reference