cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the filename from J2SE File adapter

Former Member
0 Kudos

In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping and J2SE for Deliveying the message .

In one senario, routing will be based on the filename .

J2SE Sender File adapter --- XI Adapter --- XI pipe line

So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.

When we are using the dynamic configurator in the XI to get the filename

we are not able to get the file name becasue it is coming to XI via

XI adapter.

How to get the filename ????Hope I am clear about the problem.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

It is closed

henrique_pinto
Active Contributor
0 Kudos

The problem is that J2SE file adpater doesnt support dynamic configuration, afaik...whyd ont you use j2ee adapter?

Regards,

Henrique.

stefan_grube
Active Contributor
0 Kudos

> The problem is that J2SE file adpater doesnt support dynamic configuration, afaik.

Yes it does, starting with SP20. But only the sender file adapter.

Best regards

Stefan

henrique_pinto
Active Contributor
0 Kudos

Oh those're good news, then.

When I had tried, it didn't.

Regards,

Henrique.

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

try this

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

//obtengo la Key del FileName

DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();

http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e96...

/people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically

Hope it helps

Thanks

Rodrigo

Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

stefan_grube
Active Contributor
0 Kudos
Former Member
0 Kudos

Goutam

Looks like you cant retrieve the filename since, XI adapter doesnt receive Dynamic config data and also we cant add any adapter modules to it.

regards

krishna