You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Daniel Jones <da...@murieston.com> on 2009/03/10 00:04:12 UTC

[T5] Web Service

Hi There,

I have a web application written using the Tapestry 5 framework.  This
allows users to view data stored in an SQL database.

I want to write a client Java application that a user will be able to run on
their local machine.  I want this client side application to be able to
communicate and retrieve data from my Tapestry application. (Something
similar to an ASP.NET web service)

I'm not sure what the best approach to this problem is.  Socket programming? 
Essentially what I want is an interface so that I can access data from my
client side Java application.  This interface needs to start up with the
Tapestry application.

Some suggestions/advice/pointing in the right direction would be much
appreciated (Connecting directly to the database is not an option).

Many Thanks,
Dan


-- 
View this message in context: http://www.nabble.com/-T5--Web-Service-tp22424545p22424545.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] Web Service

Posted by "Juan E. Maya" <ma...@gmail.com>.
I am doing something similar using CXF to expose web service. What i am
doing is to start up a web service once the registry starts up. To do this u
just need to contribute the registry startup:
http://tapestry.apache.org/tapestry5/tapestry-ioc/startup.html.

With the new version of tapestry-spring, tapestry services could be injected
to spring services and cxf makes via JAX-WS pr JAX-RS makes quiet easy to
call those spring services.

On Tue, Mar 10, 2009 at 12:04 AM, Daniel Jones <da...@murieston.com> wrote:

>
> Hi There,
>
> I have a web application written using the Tapestry 5 framework.  This
> allows users to view data stored in an SQL database.
>
> I want to write a client Java application that a user will be able to run
> on
> their local machine.  I want this client side application to be able to
> communicate and retrieve data from my Tapestry application. (Something
> similar to an ASP.NET web service)
>
> I'm not sure what the best approach to this problem is.  Socket
> programming?
> Essentially what I want is an interface so that I can access data from my
> client side Java application.  This interface needs to start up with the
> Tapestry application.
>
> Some suggestions/advice/pointing in the right direction would be much
> appreciated (Connecting directly to the database is not an option).
>
> Many Thanks,
> Dan
>
>
> --
> View this message in context:
> http://www.nabble.com/-T5--Web-Service-tp22424545p22424545.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: [T5] Web Service

Posted by Daniel Jones <da...@murieston.com>.
Thanks for all the replies, I have checked out all the links.

Marcus, this looks great, nice and simple!

Cheers,
Dan


Marcus Veloso wrote:
> 
> http://code.google.com/p/t5-restful-webservices/
> 
> 

-- 
View this message in context: http://www.nabble.com/-T5--Web-Service-tp22424545p22612955.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: [T5] Web Service

Posted by Marcus Veloso <mv...@gmail.com>.
http://code.google.com/p/t5-restful-webservices/

Re: [T5] Web Service

Posted by Lutz Hühnken <lh...@googlemail.com>.
Hi Dan,

I think the usual approach would be to expose a remote interface to
your application not through tapestry (or any other web framework),
but by use of some remoting framework. Depending on your requirements
(binary or text, one client platform or many, client architecture,
security and transactional integrity requirements..), options may
include a SOAP web service, REST web service, RMI, Hessian and others.

You might want to have a look at these:
http://ws.apache.org/
https://metro.dev.java.net/
http://static.springframework.org/spring/docs/2.5.x/reference/remoting.html

Hth,
Lutz


-- 
altocon GmbH
http://www.altocon.de/
Software Development, Consulting
Hamburg, Germany

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org