on 08-03-2012 12:07 PM
Hello experts,
is it possible and advisable to persist information in a local enterprise bean used in pi adapter module chain?
If yes, please give me information on how to do it. Code examples are appreciated.
Thanks in advance!
Kind regards,
Markus
Hi Markus,
you can read from/ write to files from within adpter module code. The files will recide under folders of PI server.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus, I have not tried this, but perhaps your modules can read/write to an adapter variable as explained in this blog by Jin:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did this kind of requirement but not using adapter module,as per my experience implemnting through adapter module not a right idea,
1)Suppose your receiver is SOAP and you want store the message in Oracle table, this case your adapter module should support sending data to Data base .
you need to maintian the sequence also in Adapte module chain.
This is bit tedious activity that why add one more JDBC receiver adapter and insert data.
I dont recommend file storage domain.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Another approach is use file as a storage media. You can easily do File lookup using UDF during mapping. You might want to check this wiki about file lookup using UDF. This is very simple approach.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>>>is it possible and advisable to persist information in a local enterprise bean used in pi adapter module chain?
I don't think so - why not
a) store the data in some jdbc table and populate it with an normal PI adapter
as a second receiver in your flow ?
b) - just read the data in the module
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markus,
In this wiki you have an example of a module implementation with access to the payload:
http://wiki.sdn.sap.com/wiki/display/NWTech/Custom+Adapter+Module+Development+-+SAP+PI+7.1
Another example:
http://scn.sap.com/docs/DOC-16229
For the persistence you could use a Z table in the abap stuck, or create a table in the java stuck (i never try this option and i cant assure you the problems that you can find) http://scn.sap.com/docs/DOC-1222
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.