webtier@glassfish.java.net

Re: [webtier] How To Communicate With Servlet From Desktop Application

From: Jim Driscoll <Jim.Driscoll_at_Sun.COM>
Date: Mon, 24 Aug 2009 13:54:50 -0700

Or you could go with something a little more modern, and set up a REST
interface. Jersey would be one option there.

Jim

On 8/24/09 12:30 PM, Jason Lee wrote:
> HttpUnit, in case this matters, supports JavaScript, whereas HttpClient
> does not:
>
> http://httpunit.sourceforge.net/doc/javascript-support.html
>
> On Aug 24, 2009, at 2:18 PM, Justin Lee wrote:
>
>> This is probably your best option:
>> http://hc.apache.org/httpcomponents-client/
>>
>> Certainly the most commonly chosen one I've seen used.
>>
>> Jason Lee wrote:
>>> You typically communicate with a Servlet via HTTP. You might look
>>> into something like HttpUnit. It's labeled as a testing tool (and a
>>> fine one at that), but you can use it to programmatically drive a web
>>> page (which I've done). There are other options well, but I think
>>> HTTP is what you want, regardless of the library.
>>>
>>> On Aug 24, 2009, at 12:16 PM, webtier_at_javadesktop.org
>>> <mailto:webtier_at_javadesktop.org> wrote:
>>>
>>>> Hi Everyone, i wonder if there is a way to communicate with servlet
>>>> deployed into glassfish through a Desktop Application?
>>>> May We use JNDI? if so , how can we do it?
>>>>
>>>> thx for your replies in advance...
>>>> [Message sent by forum member 'ilitheblack'
>>>> (gurcan.ilker_at_hotmail.com <mailto:gurcan.ilker_at_hotmail.com>)]
>>>>
>>>> http://forums.java.net/jive/thread.jspa?messageID=361782
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
>>>> <mailto:webtier-unsubscribe_at_glassfish.dev.java.net>
>>>> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>>>> <mailto:webtier-help_at_glassfish.dev.java.net>
>>>>
>>>
>>> Jason Lee
>>> Senior Java Developer
>>> GlassFish Administration Console
>>>
>>> Sun Microsystems, Inc.
>>> Phone x31197/+1 405-343-1964
>>> Email jasondlee_at_sun.com <mailto:jasondlee_at_sun.com>
>>> Blog http://blogs.sun.com/jasondlee
>>> Blog http://blogs.steeplesoft.com
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
>> <mailto:webtier-unsubscribe_at_glassfish.dev.java.net>
>> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>> <mailto:webtier-help_at_glassfish.dev.java.net>
>>
>
> <http://www.java.com> * Jason Lee *
> Senior Java Developer
> GlassFish Administration Console
>
> *Sun Microsystems, Inc.*
> Phone x31197/+1 405-343-1964
> Email jasondlee_at_sun.com <mailto:jasondlee_at_sun.com>
> Blog http://blogs.sun.com/jasondlee
> Blog http://blogs.steeplesoft.com
>
>