This is my first shot at the JavaMail API. As i understand, one can register the host details in JNDI and can access the same to send emails. I am thinking of the Mail Service Providers as Driver Softwares that know Mail Protocols and have the required knowledge to connect to a Mail Server. I guess i can see an analogy between this and JDBC/LDAP connections. I understand that we may pool JDBC/LDAP Connections. My questions are...
1)When we get a Mail Session from the JNDI, are we creating a connection to the mail server? Or, is this any different from the JDBC/LDAP Connections?
2)Is it possible to pool connections to the Mail Server? (Does it even make sense?
I browsed thru couple of books and also looked at internet. I didnt find anything so far that says "Pool Mail connections".
Thanks for your help.