Karine,
Using httpclient should do the job just fine.
Mailets are created once upon startup or when the server chooses to. They
are not destroyed but reused like servlets and must be thread safe.
Therefore perhaps you need to keep all of your httpclient stuff in the
service method?
__________________
I am trying to establish a connection to a servlet running on tomcat from
inside my custom mailet. I am using httpClient package to create a filePost
object to send to the servlet. It seems that nothing is happening when I
create the object.
Could someone tell me if it is possible to establish an http connection
from inside a mailet?
Thanks a lot (I need to find out how to do it quite urgently!)
Karine Pinault
***************************************************************************
The information in this e-mail is confidential and for use by the addressee(s) only.
If you are not the intended recipient (or responsible for delivery of the message to
the intended recipient) please notify us immediately on 0141 306 2050 and delete the
message from your computer. You may not copy or forward it or use or disclose its
contents to any other person. As Internet communications are capable of data
corruption Student Loans Company Limited does not accept any responsibility for
changes made to this message after it was sent. For this reason it may be
inappropriate to rely on advice or opinions contained in an e-mail without obtaining
written confirmation of it. Neither Student Loans Company Limited or the sender
accepts any liability or responsibility for viruses as it is your responsibility to
scan attachments (if any). Opinions and views expressed in this e-mail are those of
the sender and may not reflect the opinions and views of The Student Loans Company
Limited.
This footnote also confirms that this email message has been swept for the presence of
computer viruses.
**************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]