[esb-issues] [JBoss JIRA] Closed: (JBESB-2877) improve POSTHttpMethodFactory so it handles byte[] messages

Kevin Conner (JIRA) jira-events at lists.jboss.org
Mon Oct 19 09:45:20 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBESB-2877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Conner closed JBESB-2877.
-------------------------------

    Resolution: Done


Updated in revision 29661.

> improve POSTHttpMethodFactory so it handles byte[] messages
> -----------------------------------------------------------
>
>                 Key: JBESB-2877
>                 URL: https://jira.jboss.org/jira/browse/JBESB-2877
>             Project: JBoss ESB
>          Issue Type: Patch
>      Security Level: Public(Everyone can see) 
>          Components: Rosetta
>    Affects Versions: 4.4
>         Environment: n/a
>            Reporter: toby cabot
>            Assignee: Kevin Conner
>             Fix For: 4.7
>
>         Attachments: postfac.patch
>
>
> I tried to use the HttpRouter to push messages to an external consumer (per http://www.jboss.org/community/wiki/HttpRouter).  It almost worked but the messages had been converted to byte[] somewhere inside the ESB so when they got on the wire they looked like:
> 	0x0000:  4500 00d9 213c 4000 4006 0000 7f00 0001  E...!<@. at .......
> 	0x0010:  7f00 0001 f4d4 0050 85f6 5922 0afe 80de  .......P..Y"....
> 	0x0020:  8018 9f7e fecd 0000 0101 080a 2ea9 9208  ...~............
> 	0x0030:  2ea9 9208 504f 5354 202f 6d65 6469 6361  ....POST./medica
> 	0x0040:  6c20 4854 5450 2f31 2e31 0d0a 436f 6e74  l.HTTP/1.1..Cont
> 	0x0050:  656e 742d 5479 7065 3a20 7465 7874 2f78  ent-Type:.text/x
> 	0x0060:  6d6c 3b63 6861 7273 6574 3d55 5446 2d38  ml;charset=UTF-8
> 	0x0070:  0d0a 5573 6572 2d41 6765 6e74 3a20 4a61  ..User-Agent:.Ja
> 	0x0080:  6b61 7274 6120 436f 6d6d 6f6e 732d 4874  karta.Commons-Ht
> 	0x0090:  7470 436c 6965 6e74 2f33 2e30 2e31 0d0a  tpClient/3.0.1..
> 	0x00a0:  486f 7374 3a20 6c6f 6361 6c68 6f73 742e  Host:.localhost.
> 	0x00b0:  7365 726d 6f2e 636f 6d0d 0a43 6f6e 7465  sermo.com..Conte
> 	0x00c0:  6e74 2d4c 656e 6774 683a 2039 0d0a 0d0a  nt-Length:.9....
> 	0x00d0:  5b42 4066 6438 3936 63                   [B at fd896c
> I'll attach a patch to make POSTHttpMethodFactory handle byte[] as a special case (in the same spirit as JMSRouter#createJMSMessageWithObjectType() which also does this).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the esb-issues mailing list