on 01-09-2007 3:16 PM
Hi
I am trying to find a way to send mail from a Web Dynpro without using my own external Jars such as mail.jar and activation.jar
I have come across the sap.com_SAP-JEE_1 in Used DC's and found a mail DC inside of this package but I'm not sure how to use it. Can anyone shed some light on this for me? Thanks.
Regards,
Brian
You not have to ADD external LIB, that are inside SAP-JEE!!!
You must add used DC into metaData
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brian,
For using external libraries refer my <a href="/people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas">blog</a>.
For using the standard DC as a used DC, simply open the DC metadata of your DC and go to "Used DCs" and choose the option "Add used DCs" and select the DC you want. You may refer <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383">tutorial</a> as well.
Bala
After this operation you are able to use the JavaMail libraries.
take a look here:
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
there are also example.
Hi,
Thanks for all the replies. I have followed the instructions for using the sap.com/mail and sap.com/activation DC'S making a WebDynpro Library reference. This solution makes sense to me because they are part of the sap.com package and I expect that there will be no problem when activating in the NWDI because they are a part of the sap.com package. My first attempt to use mail.jar and activation.jar as external jars resulted in a build failure upon activation in NWDI, I think becuase of the missing jars.
My final question is how do I now use the sap.com/mail and sap.com/activation in my code for example? Thanks.
Regards,
Brian
The example are here:
http://java.sun.com/developer/onlineTraining/JavaMail/exercises.html
Roberto,
Thanks. I just noticed that in my Email class there are no complaints about importing javax.mail.n etc...I am supposing now that the imports are resolving to the sap.com/mail and sap.com/activation Library references that were made aliong with the USED DC association that was made. I also expect this to activate in the NWDI without any problems. I hope! Thanks again.
Regards,
Brian
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.