users@glassfish.java.net

Re: Calling WebService over Http

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Tue, 14 Aug 2007 11:32:50 -0400

It seems to me your method just needs to use HttpURLConnection to
retrieve some data. I'm not understanding the need to wrap it with JMS
or JCA, even if the method's transacted (if that's what you mean by
managed).

   -- Ed

glassfish_at_javadesktop.org wrote:
> Hi, i have an application that needs to talk to a web service that is implemented as a straight http get request and it is unlikely to change. If it was a "proper" web service, then i could use the java webservice client code to call it, however as it isn't i wondered if anyone could advise on the best cause of action.
>
> Firstly is it ok to make an external http call within a managed function (I was probably going to use a message queue around the calls as well to allow for timeouts, etc)? Are there any issues i should be aware of? Ideally the call would run in its own thread which is why i was thinking of wrapping it in a message queue.
>
> Secondly if the above isn't possible/advised, what would people suggest instead. I've thought about using a JCA connector to wrap the call up with, but again not sure if this is suitable.
>
> Thanks in advance for you suggestions
> [Message sent by forum member 'jsl123' (jsl123)]
>
> http://forums.java.net/jive/thread.jspa?messageID=230788
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>