cancel
Showing results for 
Search instead for 
Did you mean: 

Use Send Mail Service in J2ee

Former Member
0 Kudos

Hi,

I like to use the ISendMailService so that I can send mail from my J2EE application.

I saw in other posts that I need to use the com.sap.netweaver.coll.shared (transjavamail_api, srvcmail_api) and com.sap.netweaver.coll.appl.gw (gw_api).

My question is how can I add this library's to my J2EE application which is a local Development Component.

I need to add the libraries as public part to my EJB project for build time use and I need to add references in my EAR project for runtime.

I can't find the libraries as public part. So does that mean that I need to put these JAR's in a own Server Library and deploy them that way. Or are there better solutions?

I hope that someone can help.

Marinus

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Finally it worked.

I made the following references in my application-j2ee-engine.xml:

<i> <reference

reference-type="weak">

<reference-target

provider-name="sap.com"

target-type="application">com.sap.netweaver.coll.appl.gw</reference-target>

</reference>

<reference

reference-type="weak">

<reference-target

provider-name="sap.com"

target-type="application">com.sap.netweaver.coll.shared</reference-target>

</reference>

<reference

reference-type="hard">

<reference-target

provider-name="getronics.com"

target-type="library">MYOWNSERVERLIBRARY</reference-target>

</reference></i>

In my own server library I used the following API's:

<i>coll.appl.gw.srvcmail_api.jar

coll.appl.gw.transjavamail_api.jar

coll.shared.gw_api.jar

kmc.util.core_api.jar</i>

So I hope this helps some other people to!

Marinus

Former Member
0 Kudos

Hi,

I temporary added the jar files to a own Server Library. I still like to know if this is the proper was! So anyone?

But adding the three jar as mentioned above is not enough. The develop studio now complains that he can't find the following class: com.sap.ip.collaboration.core.api.util.exception.BaseException. Does someone know which Jar i need?

Thanks

Former Member
0 Kudos

Hi Max,

Thanx for your answer. I know of the existence of the JavaMail. But I prefer to use the ISendMailService way of sending email. This because this uses the same mail server configuration as the Portal Collaboration.

I this case the mail server configuration have only to be set put ones.

Anyway thanx for your answer. I hope someone else also reacts.

Kind regards.

Marinus