Title:
Bug 80083:[JFERNANDES] Streaming AMF isn't working with shipped version of BlazeDS
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): João Fernandes / João Fernandes (Joao Fernandes)
Created: 09/19/2009
Components: Flex/Flash, Flex remoting
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Platforms All
Vote Count: 4
Problem:
[JFERNANDES] Streaming AMF isn't working with shipped version of BlazeDS. Clients don't get the Acknowledge message from the server
Method:
Create a messaging client for ColdFusionGateway Destination
Create a streaming channel
<channel-definition id="my-cf-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel"> <endpoint url="http://{server.name}:{server.port}/{context.root}/flex2gateway/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/> <properties> <max-streaming-clients>10</max-streaming-clients> </properties> </channel-definition>
Change the channel in the ColdFusionGateway to use the new channel
Launch the client and check both server and client logs
Result:
Server Log (debug mode)[BlazeDS]FlexSession created with id '5e30f97101caa1773da12d55677d56281f6b' for an Http-based client connection.[BlazeDS]Channel endpoint my-cf-streaming-amf received request.[BlazeDS]Deserializing AMF/HTTP requestVersion: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') operation = 5 correlationId = "" destination = "" clientId = null body = (Object #1) timeToLive = 0 headers = (Object #2) DSMessagingVersion = 1 DSId = "nil" messageId = "BD7332C4-A3AE-A18D-A676-D4A7108CE6CB" timestamp = 0[BlazeDS]Executed command: (default service) commandMessage: Flex Message (flex.messaging.messages.CommandMessage) operation = client_ping clientId = 7A2BE088-530D-F63F-25AB-CC72640CBFA8 correlationId = destination = messageId = BD7332C4-A3AE-A18D-A676-D4A7108CE6CB timestamp = 1253403201795 timeToLive = 0 body = {} hdr(DSMessagingVersion) = 1 hdr(DSId) = nil hdr(DSEndpoint) = my-cf-streaming-amf replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 7A2BE088-530D-F63F-25AB-CC72640CBFA8 correlationId = BD7332C4-A3AE-A18D-A676-D4A7108CE6CB destination = null messageId = 7A2BE088-531E-495F-F9AD-715101AC47DC timestamp = 1253403201795 timeToLive = 0 body = null hdr(DSMessagingVersion) = 1.0 hdr(DSId) = 7A2BE081-000C-2C2A-AB91-AC23E4395BB9[BlazeDS]Serializing AMF/HTTP responseVersion: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Externalizable Object #0 'DSK') (Object #1) DSMessagingVersion = 1.0 DSId = "7A2BE081-000C-2C2A-AB91-AC23E4395BB9"1.253403201795E12(Byte Array #2, Length 16)(Byte Array #3, Length 16)(Byte Array #4, Length 16)[BlazeDS]Channel endpoint my-cf-streaming-amf received request.[BlazeDS]Endpoint with id 'my-cf-streaming-amf' is streaming message: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = null correlationId = open destination = null messageId = 7A2BE16B-601D-3FB1-3591-EEAA6C79513F timestamp = 1253403201888 timeToLive = 0 body = 7A2BE16B-600B-7DAF-DA5D-F9A8A4982B7C[BlazeDS]Number of streaming clients for FlexSession with id '5e30f97101caa1773da12d55677d56281f6b' is 1.[BlazeDS]Number of streaming clients for endpoint with id 'my-cf-streaming-amf' is 1.Client log [SWF] /eleicao.swf - 1,443,631 bytes after decompression'7BE96465-463C-F050-D125-D4A70E88B4DD' consumer set destination to 'ColdFusionGateway'.'gtw' consumer subscribe.'my-cf-streaming-amf' channel endpoint set to http://eleicao.localhost/flex2gateway/streamingamf'my-cf-streaming-amf' channel settings are:<channel id="my-cf-streaming-amf" type="mx.messaging.channels.StreamingAMFChannel"> <endpoint uri="http://{server.name}:{server.port}/flex2gateway/streamingamf"/> <properties/></channel>'my-cf-streaming-amf' pinging endpoint.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040182
External Customer Info:
External Company:
External Customer Name: João Fernandes
External Customer Email: 4E9A42C244586146992015D5
External Test Config: 09/19/2009
Attachments:
Comments: