Flamingo Javafx server push

  • chuaky
Posted: Fri, 10/01/2010 - 01:46

hi,

i was using this code snippet at my javafx client to try to do server push:

var listener = MessageListener {};
var broker: FXClientSideBroker;
var destination: FlamingoDestination;
broker = FXClientSideBroker {
pollingServletURL: ApplicationFacade.POLLING_SERVLET_URL
messagesPollPeriod: ApplicationFacade.POLLING_PERIOD;
};
destination = FlamingoObjectsFactory.getFactory().createDestination("localhost");
broker.subscribe(destination, listener);
:
:
class MessageListener extends FlamingoListener {

override function onMessage(message: FlamingoMessage) {
println("onMessage");
}

override function onException(exception: FlamingoException) {
Alert.inform(exception.getLocalizedMessage());
}

}

At the Jboss seam server, i could see jms messages being inserted from my sample server code and also the flamingo poll servlet being called.

However, i don't see anything at the client side Listener.

I used wireshark to capture the ethereal trace and notice that the periodic http call (the one with maximumResponseTime) to the polling servlet didn't contain any information on the destination.

How can i troubleshoot whats wrong with my client setup or codings?
Many thanks.

I think the cause is due to i

  • chuaky
  • 07/18/10
  • Mon, 10/04/2010 - 18:50

I think the cause could be due to EAR packaging for the SEAM project.

I try to guess which of the flamingo jars to be loaded in application.xml and which to be used in the WAR (webinf/lib). However was not successful.

Here is what i tried out:

If i include these jars in application.xml, server push by serialization transport works. Of course i use the same transport at the javafx client.

flamingo-service-2.2.0.jar
flamingo-services-common-2.2.0.jar
flamingo-push-common-2.2.0.jar
flamingo-push-server-common-2.2.0.jar
flamingo-push-server-seam-2.2.0.jar
flamingo-push-transport-serialization-2.2.0.jar
hessian-4.0.6.jar
commons-lang.jar

When i did another testing, using the hessian transport, i didn't receive any messages on the javafx client side.

Would appreciate advice on this issue, is it due to EAR packaging or other things?

Many thanks.

Your code looks right. Could

  • dkorotych
  • 04/15/10
  • Thu, 10/07/2010 - 14:13

Your code looks right. Could you send all your project, something we'd studied it in more detail?

hi, I had upload 2 set of

  • chuaky
  • 07/18/10
  • Thu, 10/07/2010 - 23:39

hi,

I had upload 2 set of files, for seam and netbeans. They are in http://drop.io/erfdej7
Currently i use serialization. To switch to hessian:

1. netbeans: change the lib to use the hessian transport (u can see the lib used in netbeanstest2.zip ... \test2\dist\lib)

2. seam: change the build.xml and application.xml to use hessian transport.

Many thanks.

Translation.xml not exist?

  • dkorotych
  • 04/15/10
  • Mon, 10/18/2010 - 05:08

I apologize for being so long in reply.
The server side code is not build (I'm talking about Seam-part), but on the server side, I'm not found file "translation.xml" (namely it is responsible for compliance with queues and messages).

hi, It should be

  • chuaky
  • 07/18/10
  • Wed, 10/20/2010 - 17:21

hi,

It should be here:

\test2\resources\lib

Best regards.

life insurance hyalin

  • leroymil5
  • 02/16/11
  • Mon, 03/07/2011 - 05:36

life insurance hyalin malrotation penis enlargement numerologist historian Penis Enlargement eperythrozoa whinchat penis enlargement pills Goth popularize Sex Toys ketoheptose Beam bra occupant impulse