The server side of a GWT project is a "service" for your GWT
application,
interacting with RPC "on demand".

I use a socket in my "server side", but it communicate on RPC request.

So i think you cannot start a server socket on the service, but you
have to use
a standalone server (that implements the socket and wait for agents
communication)
that store information (on db?) and implements in the service a method
that take these data and send to the client (but always on demand).

regards


On Mar 24, 11:01 am, piXi <[email protected]> wrote:
> I think I didnt explain well,
>
> so gwt client will only show data tables etc, gwt server will serve
> those data to client ( GWT RPC),  this is showing part,
>
> server socket part will be in seperate thread and will communicate
> with agents that are writen in pure java, not gwt.
> I allready got communication between agent and socket server.
>
> My problem still exist, when/ how to start server socket in seperate
> thread ( on server)
>
> Best regards Primoz
>
> On 24 mar., 08:43, rudolf michael <[email protected]> wrote:
>
> > Server Push?
> > check gwteventservice project, it has a Comet Servlet in order to keep the
> > client and server connected.
>
> > On Wed, Mar 24, 2010 at 9:27 AM, piXi <[email protected]> wrote:
> > > 1. I need this thread at server side not client.
> > > 2. I'm allready using RPC interface async etc.
> > > 3. But I dont know what is proper way to start socket server at Server
> > > side.
> > >    Via Modulu or something like that
>
> > > On 23 mar., 18:05, "[email protected]" <[email protected]> wrote:
> > > > I think you need to review GWT and the official tutorials.
> > > > 1. You cannot use threads on the clientside as javascript is single
> > > > threaded.
> > > > 2. Review the RPC mechanism in GWT as it requires a service interface,
> > > > an asynchronous interface, a servlet implementing the service, and
> > > > some client code to create and bind the service.
>
> > > > On Mar 23, 10:04 am, piXi <[email protected]> wrote:
>
> > > > > Hellow,
>
> > > > > I'm trying to develop an aplication with GWT.
> > > > > And have came across with a problem, but first what I wish to
> > > > > develop.
>
> > > > > And GWT application that will server user data, data will be get over
> > > > > RPC and hibernate.
> > > > > Now I need thread that will start up socket server and listen incoming
> > > > > connection from so called agents.
>
> > > > > Do I need to create new module or ?
>
> > > > > One solution that works but its not nice solution is :
>
> > > > > at EntryPoint in constructor I create a singletone and start the
> > > > > Thread.  Next time page is loaded I just return.
> > > > > Instance to singleton.
>
> > > > > I have tested and it works.
>
> > > > > But i do not like getInstance call every time page will refresh.
>
> > > > > From tutorials GWT looks very nice, but  I know that I still need much
> > > > > of understanding GWT.
>
> > > > > Best regards Primoz
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-web-toolkit%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to