Re: inconsistent proton library names?

2013-01-07 Thread Rob Godfrey
I've not looked at the branch lately (only just back from vacation), but I would very much hope that there would be nothing preventing having both the JNI and native-Java libraries in the classpath, and allowing for explicit creation of the desired implementation of Connection / Messenger /

Re: inconsistent proton library names?

2013-01-07 Thread Phil Harvey
Hi Rob, I believe we're thinking along the same lines. The ServiceLoader approach does indeed only affect which implementation you get by default. We will also allow the client to explicitly choose their implementation if they wish, and there will be no problem with both implmentations being

Re: inconsistent proton library names?

2013-01-07 Thread Darryl L. Pierce
On Fri, Jan 04, 2013 at 03:49:57PM -0500, Rafael Schloming wrote: Compared to the other bindings, it seems inconsistent for the former to state its Perl-ness in its name, and for the latter to state its Swig-ness. Thoughts? Negative on Perl. The raw Perl extension is named

inconsistent proton library names?

2013-01-04 Thread Phil Harvey
I've been working on the Java binding of proton-c and have a couple of questions about how we're naming our various libraries. On Linux, running make all produces the following: bindings/ruby/cproton.so bindings/python/_cproton.so bindings/perl/libcproton_perl.so bindings/libproton-swig.so (on

Re: inconsistent proton library names?

2013-01-04 Thread Ted Ross
Phil, The only shared-object in that list that is a proper library is libqpid-proton.so. The others are extension modules for their various scripting languages. I'm not 100% sure, but I believe that the naming conventions are dictated by the scripting language's extension mechanisms. -Ted

Re: inconsistent proton library names?

2013-01-04 Thread Rafael Schloming
On Fri, Jan 4, 2013 at 11:04 AM, Ted Ross tr...@redhat.com wrote: Phil, The only shared-object in that list that is a proper library is libqpid-proton.so. The others are extension modules for their various scripting languages. I'm not 100% sure, but I believe that the naming conventions

Re: inconsistent proton library names?

2013-01-04 Thread Phil Harvey
Thanks for the responses guys. That all makes sense. The only change that I'd propose is therefore that the Perl and Java bindings: bindings/perl/libcproton_perl.so bindings/java/libproton-swig.so ... should both be renamed to libcproton.so. Compared to the other bindings, it seems

Re: inconsistent proton library names?

2013-01-04 Thread Darryl L. Pierce
On Fri, Jan 04, 2013 at 07:58:10PM +, Phil Harvey wrote: Thanks for the responses guys. That all makes sense. The only change that I'd propose is therefore that the Perl and Java bindings: bindings/perl/libcproton_perl.so bindings/java/libproton-swig.so ... should both be renamed to

Re: inconsistent proton library names?

2013-01-04 Thread Rafael Schloming
On Fri, Jan 4, 2013 at 2:58 PM, Phil Harvey p...@philharveyonline.comwrote: Thanks for the responses guys. That all makes sense. The only change that I'd propose is therefore that the Perl and Java bindings: bindings/perl/libcproton_perl.so bindings/java/libproton-swig.so ... should both

Re: inconsistent proton library names?

2013-01-04 Thread Darryl L. Pierce
On Fri, Jan 04, 2013 at 03:32:44PM -0500, Rafael Schloming wrote: Given what little I know of loading JNI stuff, that seems to make sense for Java. FWIW, the python and ruby bindings don't ever actually expose the name of the C extension library since in both cases we have the so-called

Re: inconsistent proton library names?

2013-01-04 Thread Rafael Schloming
On Fri, Jan 4, 2013 at 3:15 PM, Darryl L. Pierce dpie...@redhat.com wrote: On Fri, Jan 04, 2013 at 07:58:10PM +, Phil Harvey wrote: Thanks for the responses guys. That all makes sense. The only change that I'd propose is therefore that the Perl and Java bindings:

Re: inconsistent proton library names?

2013-01-04 Thread Phil Harvey
Ditto for Java. From the developer's point of view, they'll simply be using the Java interfaces in proton-api such as Connection [1]. Our current intention is that the choice of whether to use the pure Java implementations or the proton-c-via-Swig-via-JNI one will be made using a factory

Re: inconsistent proton library names?

2013-01-04 Thread Rafael Schloming
Does that mean you won't be able to use both the C and Java implementation simultaneously within a single JVM? --Rafael On Fri, Jan 4, 2013 at 4:02 PM, Phil Harvey p...@philharveyonline.comwrote: Ditto for Java. From the developer's point of view, they'll simply be using the Java interfaces

Re: inconsistent proton library names?

2013-01-04 Thread Phil Harvey
The in-progress code on the jni branch does not currently allow this, although is no technical barrier to doing it. We just haven't yet decided on the nicest api for allowing the application to choose the implementation it wants. The ability to mix implementations within a jvm will certainly be