Re: Java interop: dealing with Java implementation instances vs interfaces

2016-10-17 Thread Aaron Cohen
My guess is that you're getting a message related to there being no overload of the Producer.send method that accepts a String. In your Java code, you're calling String.getBytes you need to do the same in you Clojure code. --Aaron On Sun, Oct 16, 2016 at 2:42 AM, hiskennyness

Re: Java interop: dealing with Java implementation instances vs interfaces

2016-10-16 Thread hiskennyness
On Sunday, October 16, 2016 at 3:35:30 AM UTC-4, Erik Assum wrote: > > I think the method you're looking for is sendAsync. > Thx, yeah, I did that then ran into the same issue (I thought) trying to deal with the MessageBuilder mechanism so I thought I should come to grips with the general

Re: Java interop: dealing with Java implementation instances vs interfaces

2016-10-16 Thread Erik Assum
I think the method you're looking for is sendAsync. As for binding yourself to the implementation, you should stick to whatever interface getProducer says it returns, and you'll be ok. Erik. -- i farta > Den 16. okt. 2016 kl. 08.42 skrev hiskennyness : > > Not sure if

Java interop: dealing with Java implementation instances vs interfaces

2016-10-16 Thread hiskennyness
Not sure if this is a Java question or Clojure question, but I think it is the latter. I am trying to use the Yahoo pulsar library https://mvnrepository.com/artifact/com.yahoo.pulsar/pulsar-client/1.14 from Clojure. It is going OK in general, but a couple times now trying to replicate Java