Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 84540 invoked from network); 7 Aug 2006 07:06:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 07:06:02 -0000 Received: (qmail 28339 invoked by uid 500); 7 Aug 2006 07:06:01 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 28318 invoked by uid 500); 7 Aug 2006 07:06:01 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 28309 invoked by uid 99); 7 Aug 2006 07:06:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 00:06:01 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 00:06:01 -0700 Received: by nf-out-0910.google.com with SMTP id l36so2226943nfa for ; Mon, 07 Aug 2006 00:05:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m5HpZFCM25qLM7JVy2kKWhzLIfA6eN+l/YHMb8taGeCWvf3phd6moEuMq5TChfapAvjqSDoFg0gOMzzAJ3LYv/FzHgtQT6sFnFpNf6kE6BaIQmTs2j2vEm5ojiVAvtYSKVbCt389e4evRWnTvkoTPl0ord2isXlQdDgJeXZVaiI= Received: by 10.78.183.8 with SMTP id g8mr2296424huf; Mon, 07 Aug 2006 00:05:39 -0700 (PDT) Received: by 10.78.173.20 with HTTP; Mon, 7 Aug 2006 00:05:39 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2006 08:05:39 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Problem from open wire dotnet send float properties message to java In-Reply-To: <5679943.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5679943.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It sounds like this could be a bug. Could you raise a JIRA for it please. I wonder does anyone know how to write a Java-style float to a stream in .Net? :) On 8/7/06, Matthew Xie wrote: > > 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 > -- > View this message in context: http://www.nabble.com/Problem-from-open-wire-dotnet-send-float-properties-message-to-java-tf2061832.html#a5679943 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- James ------- http://radio.weblogs.com/0112098/