mcayci
2008-01-24 16:36:05 UTC
Hello,
Here is the post I had in JavaMail but did not get any replies.
As some of you know, the following link has sample files and a JCA SMTP
sample under mailconnector directory.
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2eesdk-1.4_04-samples-oth-JPR&SiteId=JSC&TransactionId=noreg
This sample demonstrates how to write a JCA (Resource Adapter) for an email
server. It has both inbound and outbound pieces. The outbound piece means
that the clients send email messages using this adapter. I have noticed that
the sample first getting the "Session" object and then from the Session
object, it is getting the "Store" and finally making connection to the store
using "store.connect()"
Why is it doing this? Why can it just use the session object and get the
"Transport" object from it and connect?
Thanks in advance,
Mustafa
Here is the post I had in JavaMail but did not get any replies.
As some of you know, the following link has sample files and a JCA SMTP
sample under mailconnector directory.
http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2eesdk-1.4_04-samples-oth-JPR&SiteId=JSC&TransactionId=noreg
This sample demonstrates how to write a JCA (Resource Adapter) for an email
server. It has both inbound and outbound pieces. The outbound piece means
that the clients send email messages using this adapter. I have noticed that
the sample first getting the "Session" object and then from the Session
object, it is getting the "Store" and finally making connection to the store
using "store.connect()"
Why is it doing this? Why can it just use the session object and get the
"Transport" object from it and connect?
Thanks in advance,
Mustafa
--
View this message in context: http://www.nabble.com/Implementation-question-in-%22Mailconnector%22-in-J2EE-1.4.04-samples-tp15069034p15069034.html
Sent from the Sun - Connector-Interest mailing list archive at Nabble.com.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff CONNECTOR-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
View this message in context: http://www.nabble.com/Implementation-question-in-%22Mailconnector%22-in-J2EE-1.4.04-samples-tp15069034p15069034.html
Sent from the Sun - Connector-Interest mailing list archive at Nabble.com.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff CONNECTOR-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".