Hi Dave, You can just create any class that extends the Thread object or implements the runnable interface. The required method, run(), should abstract what u want to do, (connect to the 3rd party server). Instantiate that class then call its start() method from the Struts action that should trigger it. Your action should finish safely without waiting for that thread to finish. Note: this is just a bare implementation, you might want to consider using thread pooling to manage your resources. What exactly do you intend to do? Will you wait for a response from your HTTPS server?
Reginald Javier Software Engineer II, Strategic Customer Solutions Implementation T: +632-859-5442 -----Original Message----- From: dave.smith [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2008 11:45 PM To: user@struts.apache.org Subject: Re: Background Threads I forgot to mention that I am using Struts 1.1. dave.smith wrote: > > I have a function that POSTs data to a third party HTTPS server: void > postData(String sURL, String sData); > > I need to call this function as a background thread from an Action class, > so that the user doesn't have to wait on the connection to establish. How > can I safely call this function so that it becomes a background thread? > > Thanks, > Dave > -- View this message in context: http://www.nabble.com/Background-Threads-tp18691709p18691741.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]