Re: Swig java bindings proton0.7
On Thu, Jun 12, 2014 at 2:50 PM, Jimmy Campbell wrote: > All you have to do to replicate my problem is try to send a message to a > queue hosted on the service bus. If you can get the message to send then > you've done what I can't. I would like to give you an endpoint but that's > out of my reach. I can try to ask someone about the logistics of creating a > public endpoint for testing purposes. > Right now I'm stuck on this step. I tried to sign up for the free one month trial in order to test it, but either I'm missing something, or the web form seems to be broken on firefox and chrome. It won't let me get past the signup page because it claims I need to enter a credit card number, however there is no place to actually enter the number. It would be great if you could ask about the possibility of getting something set up for testing purposes. Even if it's not fully public, something that qpid developers can have access to that would last more than a month and not require a credit card would still be quite useful. > > > In any case, here is the method I am using to send a message. I include > bcpkix-jdk15on-1.47.jar and bcprov-jdk15on-1.47.jar as well as > proton-j-0.7.jar in my buildpath. > > public static void send() { > String address = "amqps://X:X@[namespace]. > windows.servicebus.net/[entity]"; > Messenger msgr = Proton.messenger(); > try{ > System.out.println("starting the messenger."); > msgr.start(); > System.out.println("setting outgoing window."); > msgr.setOutgoingWindow(1); > System.out.println("creating a message."); > Message msg = Proton.message(); > System.out.println("setting the message address to > : "+address+"."); > msg.setAddress(address); > UUID id = UUID.randomUUID(); > System.out.println("setting message id to: > "+id+"."); > msg.setMessageId(id); > System.out.println("setting the body to 'Hello > world'."); > msg.setBody(new AmqpValue("Hello world")); > System.out.println("putting the message."); > msgr.put(msg); > System.out.println("getting outgoing tracker."); > Tracker tracker = msgr.outgoingTracker(); > System.out.println("sending the message."); > msgr.send(); > System.out.println("send status is > "+msgr.getStatus(tracker)+"."); > System.out.println("stopping the messenger."); > msgr.stop(); > } > catch(Exception e) { > e.printStackTrace(); > } > }// end method send > > I use the same code for the swig bindings and it works. > Did you get a stack trace or did it just hang? You could try re-running with the PN_TRACE_FRM environment variable set to 1. That might give us a clue as to where the interop issue is. --Rafael
RE: Swig java bindings proton0.7
All you have to do to replicate my problem is try to send a message to a queue hosted on the service bus. If you can get the message to send then you've done what I can't. I would like to give you an endpoint but that's out of my reach. I can try to ask someone about the logistics of creating a public endpoint for testing purposes. In any case, here is the method I am using to send a message. I include bcpkix-jdk15on-1.47.jar and bcprov-jdk15on-1.47.jar as well as proton-j-0.7.jar in my buildpath. public static void send() { String address = "amqps://X:X@[namespace].windows.servicebus.net/[entity]"; Messenger msgr = Proton.messenger(); try{ System.out.println("starting the messenger."); msgr.start(); System.out.println("setting outgoing window."); msgr.setOutgoingWindow(1); System.out.println("creating a message."); Message msg = Proton.message(); System.out.println("setting the message address to : "+address+"."); msg.setAddress(address); UUID id = UUID.randomUUID(); System.out.println("setting message id to: "+id+"."); msg.setMessageId(id); System.out.println("setting the body to 'Hello world'."); msg.setBody(new AmqpValue("Hello world")); System.out.println("putting the message."); msgr.put(msg); System.out.println("getting outgoing tracker."); Tracker tracker = msgr.outgoingTracker(); System.out.println("sending the message."); msgr.send(); System.out.println("send status is "+msgr.getStatus(tracker)+"."); System.out.println("stopping the messenger."); msgr.stop(); } catch(Exception e) { e.printStackTrace(); } }// end method send I use the same code for the swig bindings and it works. -Jimmy -Original Message- From: Rafael Schloming [mailto:r...@alum.mit.edu] Sent: Thursday, June 12, 2014 11:19 AM To: proton@qpid.apache.org Subject: Re: Swig java bindings proton0.7 I'd like to take a look at the proton-j issue that is preventing interop with service bus. Do you know if it would be possible for me to reproduce the proton-j issue myself? Ideally it would be nice to have a publicly accessible amqp endpoint for service bus that we could use to pro-actively verify interop prior to each release. --Rafael On Thu, Jun 12, 2014 at 1:39 PM, Jimmy Campbell wrote: > I haven't been able to talk to the Microsoft Azure Service Bus with > proton-j but I can do it with proton-c. So I have been using proton-c > with the swig bindings on android. > > -Jimmy > > -Original Message- > From: Rafael Schloming [mailto:r...@alum.mit.edu] > Sent: Thursday, June 12, 2014 10:38 AM > To: proton@qpid.apache.org > Subject: Re: Swig java bindings proton0.7 > > Yeah, there was a discussion on the list a while back. They were > originally created for testing purposes, and were proving to be > difficult to maintain. > We opted to remove them and have more resources to focus on bringing > the pure Java implementation up to parity with C. As far as I know you > are the only one who has attempted actually using them outside of our > testing framework. Is there a particular reason you were using it > instead of the pure Java impl? > > --Rafael > > > On Wed, Jun 11, 2014 at 5:20 PM, Jimmy Campbell > > wrote: > > > I've been using proton0.6 for a while now and I am using swig java > > bindings. I downloaded version 0.7 today and can't find the java > bindings. > > They were removed? > > > > -Jimmy > > >
Re: Swig java bindings proton0.7
I'd like to take a look at the proton-j issue that is preventing interop with service bus. Do you know if it would be possible for me to reproduce the proton-j issue myself? Ideally it would be nice to have a publicly accessible amqp endpoint for service bus that we could use to pro-actively verify interop prior to each release. --Rafael On Thu, Jun 12, 2014 at 1:39 PM, Jimmy Campbell wrote: > I haven't been able to talk to the Microsoft Azure Service Bus with > proton-j but I can do it with proton-c. So I have been using proton-c with > the swig bindings on android. > > -Jimmy > > -Original Message- > From: Rafael Schloming [mailto:r...@alum.mit.edu] > Sent: Thursday, June 12, 2014 10:38 AM > To: proton@qpid.apache.org > Subject: Re: Swig java bindings proton0.7 > > Yeah, there was a discussion on the list a while back. They were > originally created for testing purposes, and were proving to be difficult > to maintain. > We opted to remove them and have more resources to focus on bringing the > pure Java implementation up to parity with C. As far as I know you are the > only one who has attempted actually using them outside of our testing > framework. Is there a particular reason you were using it instead of the > pure Java impl? > > --Rafael > > > On Wed, Jun 11, 2014 at 5:20 PM, Jimmy Campbell > wrote: > > > I've been using proton0.6 for a while now and I am using swig java > > bindings. I downloaded version 0.7 today and can't find the java > bindings. > > They were removed? > > > > -Jimmy > > >
RE: Swig java bindings proton0.7
I haven't been able to talk to the Microsoft Azure Service Bus with proton-j but I can do it with proton-c. So I have been using proton-c with the swig bindings on android. -Jimmy -Original Message- From: Rafael Schloming [mailto:r...@alum.mit.edu] Sent: Thursday, June 12, 2014 10:38 AM To: proton@qpid.apache.org Subject: Re: Swig java bindings proton0.7 Yeah, there was a discussion on the list a while back. They were originally created for testing purposes, and were proving to be difficult to maintain. We opted to remove them and have more resources to focus on bringing the pure Java implementation up to parity with C. As far as I know you are the only one who has attempted actually using them outside of our testing framework. Is there a particular reason you were using it instead of the pure Java impl? --Rafael On Wed, Jun 11, 2014 at 5:20 PM, Jimmy Campbell wrote: > I've been using proton0.6 for a while now and I am using swig java > bindings. I downloaded version 0.7 today and can't find the java bindings. > They were removed? > > -Jimmy >
Re: Swig java bindings proton0.7
Yeah, there was a discussion on the list a while back. They were originally created for testing purposes, and were proving to be difficult to maintain. We opted to remove them and have more resources to focus on bringing the pure Java implementation up to parity with C. As far as I know you are the only one who has attempted actually using them outside of our testing framework. Is there a particular reason you were using it instead of the pure Java impl? --Rafael On Wed, Jun 11, 2014 at 5:20 PM, Jimmy Campbell wrote: > I've been using proton0.6 for a while now and I am using swig java > bindings. I downloaded version 0.7 today and can't find the java bindings. > They were removed? > > -Jimmy >