You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2007/02/27 11:39:04 UTC

[jira] Moved: (AMQNET-9) Problem from open wire dotnet send float properties message to java

     [ https://issues.apache.org/activemq/browse/AMQNET-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

james strachan moved AMQ-866 to AMQNET-9:
-----------------------------------------

    Fix Version/s: 1.0
      Component/s:     (was: NMS (C# client))
              Key: AMQNET-9  (was: AMQ-866)
          Project: ActiveMQ .Net  (was: ActiveMQ)

> Problem from open wire dotnet send float properties message to java
> -------------------------------------------------------------------
>
>                 Key: AMQNET-9
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-9
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>            Reporter: Denis Abramov
>             Fix For: 1.0
>
>         Attachments: double_patch.rtf
>
>
> Am also interested in this issue (from Discussion forum):
> I found a problem while i using open wire dotnet api to send float property message to java platform, the value i recieved that is deffrent with the value setting in dotnet platform. 
> here is send value(dotnet) is:  float floatvalue = 2.1F 
> recieved value(java) is value is: 1.757237E-26 
> is this a bug or i make some mistake in my test? 
> follow is my test code: 
> dotnet: 
>             float value= 2.12F; 
>             Uri uri = new Uri("tcp://" + ip + ":61616?jms.useAsyncSend=true"); 
>             factory = new ConnectionFactory(uri); 
>             using (IConnection connection = factory.CreateConnection()) 
>             { 
>                 ISession session = connection.CreateSession(acknowledgementMode); 
>                 IDestination destination = session.GetQueue(queueName); 
>                 IMessageProducer producer = session.CreateProducer(destination); 
>                 producer.Persistent = true; 
>                 // lets send a message 
>                 String text = "text"; 
>                 ITextMessage request = session.CreateTextMessage(text); 
>                 request.NMSPersistent = true; 
>                 request.NMSCorrelationID = "abc"; 
>     
>                 request.Properties["custom8"] = custom8; 
>                 producer.Send(request); 
>             } 
> java: 
> public void onMessage(Message message) { 
>            System.out.println(message.getFloatProperty("custom8")); 
> } 
> could someone do me a favor? 
> Thx! 
> Matt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.