RE: [flexcoders] Server to client calls

2008-06-27 Thread Seth Hodgson
Hi Luciano,

You have two options for controlling/filtering which messages are pushed to 
subscribed Consumers.

1. Assign a selector expression to your Consumer before subscribing; this acts 
as a server-side filter that is evaluated against headers of messages sent to 
the destination. It's evaluated at the server, not at the client, and only 
messages that satisfy the expression are pushed to the Consumer.
2. Enabled subtopics for the destination and have each Consumer subscribe to a 
subtopic. You could have each Consumer subscribe to its own unique subtopic, or 
you can use subtopics to group sets of Consumers. When you generate messages on 
the server directly, you can target them to a specific destination's subtopic 
by adding a DSSubtopic header to the message you're sending.

Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luciano 
Manerich Junior
Sent: Thursday, June 26, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Server to client calls

Hi Seth,
 
thank you, and all those answers that i've received. In that sample app, every 
client receive an event, there is an way that i may filter some clients in 
server code, instead of ignoring it on the cliente side?
 
Ive seen that there is a property on consumer class that i'ld put an expression 
for a validation, that kind of filter its done on client side?
 
Thank in advance,
Luciano.


De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Seth Hodgson
Enviada em: quinta-feira, 26 de junho de 2008 13:46
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] Server to client calls
Hi Luciano,

Take a look through the sample apps. One of them is a stock ticker sample, and 
tick updates (messages) that are pushed/dispatched to subscribed Consumers are 
generated directly by Java code on the server.

You could follow the same approach, and generate messages on the server that 
your clients handle by invoking local methods. 
But there's nothing like client.call(...) on the server in BlazeDS and LCDS at 
this point.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luciano 
Manerich Junior
Sent: Monday, June 23, 2008 12:16 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Server to client calls

Hi,
 
i've just seen the way with Producer/Consumer, but, its just too much 
automated. Is there an way that i may dispatch a consumer event to flex 
within Java?
 
I need to dispatch an event, to some clients, without any user interaction.
 
In FMS, there is a collection of the current clients, and i may interact with 
that to call some methods.


De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Luciano 
Manerich Junior
Enviada em: segunda-feira, 23 de junho de 2008 15:32
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Server to client calls
Hi there,
 
It is possible with LCDS, BlazeDS or some similar DS to call flex client 
methods from the server? If not, this is only possible with FMS?
 
Thanks in advance. 
 


RE: [flexcoders] Server to client calls

2008-06-26 Thread Seth Hodgson
Hi Luciano,

Take a look through the sample apps. One of them is a stock ticker sample, and 
tick updates (messages) that are pushed/dispatched to subscribed Consumers are 
generated directly by Java code on the server.

You could follow the same approach, and generate messages on the server that 
your clients handle by invoking local methods. 
But there's nothing like client.call(...) on the server in BlazeDS and LCDS at 
this point.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luciano 
Manerich Junior
Sent: Monday, June 23, 2008 12:16 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Server to client calls

Hi,
 
i've just seen the way with Producer/Consumer, but, its just too much 
automated. Is there an way that i may dispatch a consumer event to flex 
within Java?
 
I need to dispatch an event, to some clients, without any user interaction.
 
In FMS, there is a collection of the current clients, and i may interact with 
that to call some methods.


De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Luciano 
Manerich Junior
Enviada em: segunda-feira, 23 de junho de 2008 15:32
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Server to client calls
Hi there,
 
It is possible with LCDS, BlazeDS or some similar DS to call flex client 
methods from the server? If not, this is only possible with FMS?
 
Thanks in advance. 


Re: [flexcoders] Server to client calls

2008-06-23 Thread Anatole Tartakovsky
Luciano,
You need about 1 week of development. In steps :
1. Pick up eIther LCDS with RTMP, BlazeDS with long request or LCDS 2.6 -
any technology that supports Subscription object
2. Modifty client-side end-point for Subscription object to scan for
particular type of the object you will use to push RPC from server -
containing destination, method and params. Make singleton entry to
register your destinations on the client. Check apply method to simulate
invoke.
3. Adopt sample code on the server that sends messages to pass RPC calls.

HTH,
Anatole Tartakovsky,
Farata Systems




On Mon, Jun 23, 2008 at 2:31 PM, Luciano Manerich Junior 
[EMAIL PROTECTED] wrote:

Hi there,

 It is possible with LCDS, BlazeDS or some similar DS to call flex client
 methods from the server? If not, this is only possible with FMS?

 Thanks in advance.