cancel
Showing results for 
Search instead for 
Did you mean: 

mutiple attachments using sender mail adapter

Akhil_Sun
Participant
0 Kudos

Hi All,

We developed custom adapter module to handle multiple attachments using sender mail adapter in our current PI 7.0 system and it working fine.

Now we upgraded our system from PI 7.0 to 7.4 and we are facing issue with our custom adapter module code.

In our custom adapter module we are directly connecting to Integration Server. Please see code snippet in attached document.

Now we want to connect same way using PI 7.4. How we can achieve this?

SAP provided handling multiple attachments feature in PI7.4 SP09. But we want to have our own custom module to handle multiple attachments has standard have some limitation like it only accept xml files.

Regards,

Akhil.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181985
Active Contributor
0 Kudos

Hi,

Have you molded PI7.0 custom AM code to PO7.4? The api has changed

What error you are getting?

//BR,

Praveen Gujjeti

Akhil_Sun
Participant
0 Kudos

Hi Praveen,

Yes, I know the API has changed and we added based on below link http://help.sap.com/javadocs/NW74/SPS10/PI/index.html and I tried to look other links as well 1) http://wiki.scn.sap.com/wiki/display/NWTech/Custom+Adapter+Module+Development+-+SAP+PI+7.1 2) http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e674...   But my problem is I need to connect directly to integration server for that I need to use connectionFactory Interface. When you look at the attached document which I provided there you can see how we achieved in 7.0 the same way we want to do in 7.4.  Below is the link where we can find this http://help.sap.com/javadocs/NW74/SPS10/PI/index.html  The last thing even I was successfully encrypting and decrypting the payload using Williams article  http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ac06cf-6ee2-2c10-df98-e17430ca5...  But I didn't find any document how we can connect directly to IS. Probably you can ask why I want to do that because I want to control myself rather than leaving to adapter to do the work.  The error I am getting is object not registered

engswee
Active Contributor
0 Kudos

Hi Akhil

The APIs and packages have changed since PI7.0.

Try using the following code instead to instantiate your connection factory.


ConnectionFactory connectionFactory = ConnectionFactory)initialContext.lookup("MessagingConnectionFactory");

This would resolve to the class com.sap.engine.messaging.impl.api.ConnectionFactoryImpl for the connection factory as shown in the JNDI browser details below.

The abstract interfaces for the connection and message factories have also changed and you should be using the following interfaces instead.

com.sap.engine.interfaces.messaging.api.ConnectionFactory

com.sap.engine.interfaces.messaging.api.MessageFactory

Rgds

Eng Swee