java - Incoming messages are treated as outgoing in Atmosphere -


i have problem concerning receiving messages (i use @managedservice). use same connection send , receive messages between browser , java program. can see messages pass through managedatmospherehandler.message(atmosphereresource resource, object o) method.

if incoming message, atmosphere iterates through methods marked @message. tries find decoder , invokes correct method.

for outgoing messages, atmosphere retrieves invoked method. getting localattribute named "managedatmospherehandler" (name of current class). present outgoing messages. message encoded , send browser.

the problem is, invokedmethod set incoming messages. results in treating incoming messages outgoing. know why happens? outgoing messages scheduled , suppose that's reason why happens, i'm not sure. when these localattributes set , for?

i updated atmosphere 2.3.0-rc6 2.3.0 , works charm now.


Comments