문제

In my email-send-app, I holding a Singleton Session instance in SenderImpl. For per email message i retrieve Transport instance from session for sending, and close it after sending is complete.

Now i want reuse SMTP Connection for batch emails sending, so i want figure out, what is the relation between Session, Transport and underlying Socket Connection(SMTP Connection)?

A Transport instance Corresponds to a single underlying Socket Connection, is that correct?

No correlation between Session and underlying Socket Connection, is that right?

All response will be greatly appreciated.

도움이 되었습니까?

해결책

A Transport corresponds to a single connection.

A Session holds configuration information.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top