You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Xavier Millieret <xa...@gmail.com> on 2013/05/10 13:29:17 UTC

Qpid in OSGI

Hi,

I am starting with Qpid, in OSGI.
when I try to have a connection through jndi like:

Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.PROVIDER_URL, "qpidConnection.properties");
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");

Context context = new InitialContext(env);
ConnectionFactory connectionFactory = (ConnectionFactory)
context.lookup("localhost");

I have the following error:

 javax.naming.NoInitialContextException: Cannot instantiate class:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root exception is
java.lang.ClassNotFoundException:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory]

I try to use following bundles:
org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar

depends on:
org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
org.apache.servicemix.bundles.mina-1.1.7_3.jar

someone could help me please.

Thank you

Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi,

Thanks a lot, I resolve my issue, with the following code:


PropertiesFileInitialContextFactory contextFactory = new
PropertiesFileInitialContextFactory();
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.PROVIDER_URL, "conf/qpidConnection.properties");
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
Context context = contextFactory.getInitialContext(env);
ConnectionFactory connectionFactory = (ConnectionFactory)
context.lookup("qpidConnectionfactory");


And now in the manifest, we do a link to this bundle.
Can I suggest you from the Qpid page (in the user guide or the wiki), with
information about the bundle to use for a client on a Qpid OSGI platform.

On my test, I use these bundles:

org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
org.apache.servicemix.bundles.mina-1.1.7_6.jar
org.apache.servicemix.bundles.qpid-0.12_2.jar
org.apache.servicemix.bundles.xstream-1.3_4.jar


Best regards


2013/5/12 Aleš Trček <Al...@halcom.si>

> Hi,
>
> Try it like this:
> ClassLoader origCL = Thread.currentThread().getContextClassLoader();
> try
> { // OSGi classloader mess hack
>
> Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
>     ctxJNDI = new InitialContext(props);
> } finally
> {
>     Thread.currentThread().setContextClassLoader(origCL);
> }
>
> Regards,
> Ales
>
> -----Original Message-----
> From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
> Sent: Friday, May 10, 2013 1:29 PM
> To: users@qpid.apache.org
> Subject: Qpid in OSGI
>
> Hi,
>
> I am starting with Qpid, in OSGI.
> when I try to have a connection through jndi like:
>
> Hashtable<String, String> env = new Hashtable<String, String>();
> env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
>
> Context context = new InitialContext(env); ConnectionFactory
> connectionFactory = (ConnectionFactory) context.lookup("localhost");
>
> I have the following error:
>
>  javax.naming.NoInitialContextException: Cannot instantiate class:
> org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root exception is
> java.lang.ClassNotFoundException:
> org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
>
> I try to use following bundles:
> org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
>
> depends on:
> org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> org.apache.servicemix.bundles.mina-1.1.7_3.jar
>
> someone could help me please.
>
> Thank you
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

RE: Qpid in OSGI

Posted by Aleš Trček <Al...@halcom.si>.
Hi,

Try it like this:
ClassLoader origCL = Thread.currentThread().getContextClassLoader();
try
{ // OSGi classloader mess hack
    Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
    ctxJNDI = new InitialContext(props);
} finally
{
    Thread.currentThread().setContextClassLoader(origCL);
}

Regards,
Ales

-----Original Message-----
From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com] 
Sent: Friday, May 10, 2013 1:29 PM
To: users@qpid.apache.org
Subject: Qpid in OSGI

Hi,

I am starting with Qpid, in OSGI.
when I try to have a connection through jndi like:

Hashtable<String, String> env = new Hashtable<String, String>(); env.put(Context.PROVIDER_URL, "qpidConnection.properties"); env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");

Context context = new InitialContext(env); ConnectionFactory connectionFactory = (ConnectionFactory) context.lookup("localhost");

I have the following error:

 javax.naming.NoInitialContextException: Cannot instantiate class:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root exception is
java.lang.ClassNotFoundException:
org.apache.qpid.jndi.PropertiesFileInitialContextFactory]

I try to use following bundles:
org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar

depends on:
org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
org.apache.servicemix.bundles.mina-1.1.7_3.jar

someone could help me please.

Thank you

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Gondon,

Thanks you for your precious help, I reuse your sample and did my
implementation based on it.

Thanks a lot.
Sugestion, it's could be interesting to put them in the sample, isn't it ?


2013/6/11 Gordon Sim <gs...@redhat.com>

> On 06/11/2013 05:58 PM, Xavier Millieret wrote:
>
>> Is it possible to use Messaging api to have the same behavior like JMS.
>> i.e.
>> I would like to set a message listener at my receiver (I don't see any
>> sample on this, with the messaging api)
>> and for the patern publish/subscribe, can we use the messaging api, or
>> client api (all sample for the pub/sub are done with client api, isn't it
>> ?)
>>
>
> I'm assuming you are talking about the c++ client APIs here. I would
> strongly recommend using qpid::messaging, not qpid::client.
>
> The pub/sub pattern is certainly possible with qpid::messaging. All you
> need to do is use an exchange as the node. E.g. for a simple pub-sub scheme
> where all subscribers receive all messages, you can use 'amq.fanout' as the
> address for senders and receivers. Try the messaging examples drain and
> spout passing that as the addres for example. (Also if you have not done
> so, its probably worth a quick read of http://qpid.apache.org/books/**
> 0.20/Programming-In-Apache-**Qpid/html/section-addresses.**html<http://qpid.apache.org/books/0.20/Programming-In-Apache-Qpid/html/section-addresses.html>
> ).
>
> If you need multiple distinct 'topics' you can either create a fanout
> exchange for each (my prefered approach generally) or you can use
> amq.direct/topic-name. If you need a hierarchical topic space with wildcard
> matching you can use a topic exchange.
>
> As for dispatching messages to a listener or callback, that can be easily
> built on top of the messaging API. Attached is an example that does what
> the old qpid::client API did.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>

Re: Qpid in OSGI

Posted by Gordon Sim <gs...@redhat.com>.
On 06/11/2013 05:58 PM, Xavier Millieret wrote:
> Is it possible to use Messaging api to have the same behavior like JMS.
> i.e.
> I would like to set a message listener at my receiver (I don't see any
> sample on this, with the messaging api)
> and for the patern publish/subscribe, can we use the messaging api, or
> client api (all sample for the pub/sub are done with client api, isn't it ?)

I'm assuming you are talking about the c++ client APIs here. I would 
strongly recommend using qpid::messaging, not qpid::client.

The pub/sub pattern is certainly possible with qpid::messaging. All you 
need to do is use an exchange as the node. E.g. for a simple pub-sub 
scheme where all subscribers receive all messages, you can use 
'amq.fanout' as the address for senders and receivers. Try the messaging 
examples drain and spout passing that as the addres for example. (Also 
if you have not done so, its probably worth a quick read of 
http://qpid.apache.org/books/0.20/Programming-In-Apache-Qpid/html/section-addresses.html).

If you need multiple distinct 'topics' you can either create a fanout 
exchange for each (my prefered approach generally) or you can use 
amq.direct/topic-name. If you need a hierarchical topic space with 
wildcard matching you can use a topic exchange.

As for dispatching messages to a listener or callback, that can be 
easily built on top of the messaging API. Attached is an example that 
does what the old qpid::client API did.

Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Steve,

Is it possible to use Messaging api to have the same behavior like JMS.
i.e.
I would like to set a message listener at my receiver (I don't see any
sample on this, with the messaging api)
and for the patern publish/subscribe, can we use the messaging api, or
client api (all sample for the pub/sub are done with client api, isn't it ?)


Thanks for your help

best regards


2013/6/10 Steve Huston <sh...@riverace.com>

> Ok great. Thanks for letting us know.
>
> Steve Huston
> (sent from my iPhone - please excuse brevity and typos)
>
> On Jun 10, 2013, at 6:35 AM, "Xavier Millieret" <
> xavier.millieret.info@gmail.com> wrote:
>
> > Hi Steve,
> >
> > I found the pb, I used the 3.3 python version instead of 2.5.2,.
> > it's work fine.
> >
> > Thanks
> >
> >
> > 2013/6/7 Steve Huston <sh...@riverace.com>
> >
> >> I believe Robbie is away for a time - what type of problem are you
> having
> >> on Windows?
> >>
> >> -Steve
> >>
> >>> -----Original Message-----
> >>> From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
> >>> Sent: Friday, June 07, 2013 9:09 AM
> >>> To: users@qpid.apache.org
> >>> Subject: Re: Qpid in OSGI
> >>>
> >>> Hi Robbie,
> >>>
> >>> I have some problem to generate qpid (c) library for windows, could you
> >> help
> >>> me please
> >>>
> >>>
> >>> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> >>>
> >>>> Hi Xavier,
> >>>>
> >>>> It isn't something I have familiarity with I'm afraid. That said,
> >>>> based on the things you have mentioned so far though I would note some
> >>>> points: there is a 0.20 based version of the servicemix qpid bundle
> >>>> you used, the client no longer depends on Mina or Commons Collections
> >>>> (snce 0.14 I think) , and I'm not sure it ever depended on xstream.
> >>>>
> >>>> Robbie
> >>>>
> >>>> On 14 May 2013 14:54, Xavier Millieret
> >>>> <xavier.millieret.info@gmail.com
> >>>>> wrote:
> >>>>
> >>>>> Hi Robbie,
> >>>>>
> >>>>> Thank you for your reply, but for a qpid client in java and in OSGI
> >>>>> platform, could you send me all bundles, that I can use.
> >>>>>
> >>>>>
> >>>>> regards
> >>>>>
> >>>>>
> >>>>> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> >>>>>
> >>>>>> Hi Xavier,
> >>>>>>
> >>>>>> I'm afraid I couldn't have been much help with your actual
> >>>>>> request,
> >>>>> though
> >>>>>> it seems like you have got something working, however I did note
> >>>>>> that
> >>>> the
> >>>>>> version of the client you referenced below is around 5 years old,
> >>>>>> being from the M2(/0.2) stream some time in 2008. I would
> >>>>>> recommend you
> >>>> upgrade
> >>>>>> to a newer release; the latest is currently 0.20 with 0.22 due out
> >>>>>> in
> >>>> the
> >>>>>> next couple of weeks.
> >>>>>>
> >>>>>> Robbie
> >>>>>>
> >>>>>> On 10 May 2013 12:29, Xavier Millieret <
> >>>> xavier.millieret.info@gmail.com
> >>>>>>> wrote:
> >>>>>>
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I am starting with Qpid, in OSGI.
> >>>>>>> when I try to have a connection through jndi like:
> >>>>>>>
> >>>>>>> Hashtable<String, String> env = new Hashtable<String, String>();
> >>>>>>> env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> >>> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.Properti
> >>>> esFileInitialContextFactory");
> >>>>>>>
> >>>>>>> Context context = new InitialContext(env); ConnectionFactory
> >>>>>>> connectionFactory = (ConnectionFactory)
> >>>>>>> context.lookup("localhost");
> >>>>>>>
> >>>>>>> I have the following error:
> >>>>>>>
> >>>>>>> javax.naming.NoInitialContextException: Cannot instantiate
> >> class:
> >>>>>>> org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> >>>>> exception
> >>>>>> is
> >>>>>>> java.lang.ClassNotFoundException:
> >>>>>>> org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> >>>>>>>
> >>>>>>> I try to use following bundles:
> >>>>>>> org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> >>>>>>>
> >>>>>>> depends on:
> >>>>>>> org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> >>>>>>> org.apache.servicemix.bundles.mina-1.1.7_3.jar
> >>>>>>>
> >>>>>>> someone could help me please.
> >>>>>>>
> >>>>>>> Thank you
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> >> For additional commands, e-mail: users-help@qpid.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: Qpid in OSGI

Posted by Steve Huston <sh...@riverace.com>.
Ok great. Thanks for letting us know. 

Steve Huston
(sent from my iPhone - please excuse brevity and typos)

On Jun 10, 2013, at 6:35 AM, "Xavier Millieret" <xa...@gmail.com> wrote:

> Hi Steve,
> 
> I found the pb, I used the 3.3 python version instead of 2.5.2,.
> it's work fine.
> 
> Thanks
> 
> 
> 2013/6/7 Steve Huston <sh...@riverace.com>
> 
>> I believe Robbie is away for a time - what type of problem are you having
>> on Windows?
>> 
>> -Steve
>> 
>>> -----Original Message-----
>>> From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
>>> Sent: Friday, June 07, 2013 9:09 AM
>>> To: users@qpid.apache.org
>>> Subject: Re: Qpid in OSGI
>>> 
>>> Hi Robbie,
>>> 
>>> I have some problem to generate qpid (c) library for windows, could you
>> help
>>> me please
>>> 
>>> 
>>> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
>>> 
>>>> Hi Xavier,
>>>> 
>>>> It isn't something I have familiarity with I'm afraid. That said,
>>>> based on the things you have mentioned so far though I would note some
>>>> points: there is a 0.20 based version of the servicemix qpid bundle
>>>> you used, the client no longer depends on Mina or Commons Collections
>>>> (snce 0.14 I think) , and I'm not sure it ever depended on xstream.
>>>> 
>>>> Robbie
>>>> 
>>>> On 14 May 2013 14:54, Xavier Millieret
>>>> <xavier.millieret.info@gmail.com
>>>>> wrote:
>>>> 
>>>>> Hi Robbie,
>>>>> 
>>>>> Thank you for your reply, but for a qpid client in java and in OSGI
>>>>> platform, could you send me all bundles, that I can use.
>>>>> 
>>>>> 
>>>>> regards
>>>>> 
>>>>> 
>>>>> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
>>>>> 
>>>>>> Hi Xavier,
>>>>>> 
>>>>>> I'm afraid I couldn't have been much help with your actual
>>>>>> request,
>>>>> though
>>>>>> it seems like you have got something working, however I did note
>>>>>> that
>>>> the
>>>>>> version of the client you referenced below is around 5 years old,
>>>>>> being from the M2(/0.2) stream some time in 2008. I would
>>>>>> recommend you
>>>> upgrade
>>>>>> to a newer release; the latest is currently 0.20 with 0.22 due out
>>>>>> in
>>>> the
>>>>>> next couple of weeks.
>>>>>> 
>>>>>> Robbie
>>>>>> 
>>>>>> On 10 May 2013 12:29, Xavier Millieret <
>>>> xavier.millieret.info@gmail.com
>>>>>>> wrote:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> I am starting with Qpid, in OSGI.
>>>>>>> when I try to have a connection through jndi like:
>>>>>>> 
>>>>>>> Hashtable<String, String> env = new Hashtable<String, String>();
>>>>>>> env.put(Context.PROVIDER_URL, "qpidConnection.properties");
>>> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.Properti
>>>> esFileInitialContextFactory");
>>>>>>> 
>>>>>>> Context context = new InitialContext(env); ConnectionFactory
>>>>>>> connectionFactory = (ConnectionFactory)
>>>>>>> context.lookup("localhost");
>>>>>>> 
>>>>>>> I have the following error:
>>>>>>> 
>>>>>>> javax.naming.NoInitialContextException: Cannot instantiate
>> class:
>>>>>>> org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
>>>>> exception
>>>>>> is
>>>>>>> java.lang.ClassNotFoundException:
>>>>>>> org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
>>>>>>> 
>>>>>>> I try to use following bundles:
>>>>>>> org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
>>>>>>> 
>>>>>>> depends on:
>>>>>>> org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
>>>>>>> org.apache.servicemix.bundles.mina-1.1.7_3.jar
>>>>>>> 
>>>>>>> someone could help me please.
>>>>>>> 
>>>>>>> Thank you
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: users-help@qpid.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Steve,

I found the pb, I used the 3.3 python version instead of 2.5.2,.
it's work fine.

Thanks


2013/6/7 Steve Huston <sh...@riverace.com>

> I believe Robbie is away for a time - what type of problem are you having
> on Windows?
>
> -Steve
>
> > -----Original Message-----
> > From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
> > Sent: Friday, June 07, 2013 9:09 AM
> > To: users@qpid.apache.org
> > Subject: Re: Qpid in OSGI
> >
> > Hi Robbie,
> >
> > I have some problem to generate qpid (c) library for windows, could you
> help
> > me please
> >
> >
> > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> >
> > > Hi Xavier,
> > >
> > > It isn't something I have familiarity with I'm afraid. That said,
> > > based on the things you have mentioned so far though I would note some
> > > points: there is a 0.20 based version of the servicemix qpid bundle
> > > you used, the client no longer depends on Mina or Commons Collections
> > > (snce 0.14 I think) , and I'm not sure it ever depended on xstream.
> > >
> > > Robbie
> > >
> > > On 14 May 2013 14:54, Xavier Millieret
> > > <xavier.millieret.info@gmail.com
> > > >wrote:
> > >
> > > > Hi Robbie,
> > > >
> > > > Thank you for your reply, but for a qpid client in java and in OSGI
> > > > platform, could you send me all bundles, that I can use.
> > > >
> > > >
> > > > regards
> > > >
> > > >
> > > > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> > > >
> > > > > Hi Xavier,
> > > > >
> > > > > I'm afraid I couldn't have been much help with your actual
> > > > > request,
> > > > though
> > > > > it seems like you have got something working, however I did note
> > > > > that
> > > the
> > > > > version of the client you referenced below is around 5 years old,
> > > > > being from the M2(/0.2) stream some time in 2008. I would
> > > > > recommend you
> > > upgrade
> > > > > to a newer release; the latest is currently 0.20 with 0.22 due out
> > > > > in
> > > the
> > > > > next couple of weeks.
> > > > >
> > > > > Robbie
> > > > >
> > > > > On 10 May 2013 12:29, Xavier Millieret <
> > > xavier.millieret.info@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am starting with Qpid, in OSGI.
> > > > > > when I try to have a connection through jndi like:
> > > > > >
> > > > > > Hashtable<String, String> env = new Hashtable<String, String>();
> > > > > > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.Properti
> > > esFileInitialContextFactory");
> > > > > >
> > > > > > Context context = new InitialContext(env); ConnectionFactory
> > > > > > connectionFactory = (ConnectionFactory)
> > > > > > context.lookup("localhost");
> > > > > >
> > > > > > I have the following error:
> > > > > >
> > > > > >  javax.naming.NoInitialContextException: Cannot instantiate
> class:
> > > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> > > > exception
> > > > > is
> > > > > > java.lang.ClassNotFoundException:
> > > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> > > > > >
> > > > > > I try to use following bundles:
> > > > > > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> > > > > >
> > > > > > depends on:
> > > > > > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > > > > > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> > > > > >
> > > > > > someone could help me please.
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > >
> > > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Steve,

 I try to building the qpid (c version). qpidc-0.20, I Use boost_1_53_0
(building for windows.

cmake (2.8.8). When I launch it I have the followinf error !
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)

Could NOT find Ruby (missing: RUBY_LIBRARY) (found version "2.0.0")

No need to generate AMQP protocol sources

C:/xav/boulot/eaton/qpidc-0.20-trunk/cpp/../specs/management-schema.xml is
newer

C:/xav/boulot/eaton/qpidc-0.20-trunk/cpp/src/qpid/acl/management-schema.xml
is newer

C:/xav/boulot/eaton/qpidc-0.20-trunk/cpp/src/qpid/ha/management-schema.xml
is newer

C:/xav/boulot/eaton/qpidc-0.20-trunk/cpp/src/qpid/legacystore/management-schema.xml
is newer

Regenerating Qpid Management Framework sources

CMake Error at src/CMakeLists.txt:231 (include):

include could not find load file:

C:/xav/boulot/eaton/qpidc-0.20-trunk/BuildQpidC/src/managementgen.cmake

Can't locate the help2man command; man pages will not be generated

Can't locate the valgrind command; no run-time error detection

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

Qpid proton not found, amqp 1.0 support not enabled

Legacystore is excluded from build.

Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR)

Could NOT find Ruby (missing: RUBY_LIBRARY) (found version "2.0.0")

Could NOT find PerlLibs (missing: PERL_LIBRARY PERL_INCLUDE_PATH) (found
version "5.14.2")

Configuring incomplete, errors occurred!

After lot of investigation, I believe, than the error is located at
cpp\src\CMakeLists.txt line 223, but I can not resolve it, could you help
me please ?


Thanks by advance


2013/6/7 Steve Huston <sh...@riverace.com>

> I believe Robbie is away for a time - what type of problem are you having
> on Windows?
>
> -Steve
>
> > -----Original Message-----
> > From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
> > Sent: Friday, June 07, 2013 9:09 AM
> > To: users@qpid.apache.org
> > Subject: Re: Qpid in OSGI
> >
> > Hi Robbie,
> >
> > I have some problem to generate qpid (c) library for windows, could you
> help
> > me please
> >
> >
> > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> >
> > > Hi Xavier,
> > >
> > > It isn't something I have familiarity with I'm afraid. That said,
> > > based on the things you have mentioned so far though I would note some
> > > points: there is a 0.20 based version of the servicemix qpid bundle
> > > you used, the client no longer depends on Mina or Commons Collections
> > > (snce 0.14 I think) , and I'm not sure it ever depended on xstream.
> > >
> > > Robbie
> > >
> > > On 14 May 2013 14:54, Xavier Millieret
> > > <xavier.millieret.info@gmail.com
> > > >wrote:
> > >
> > > > Hi Robbie,
> > > >
> > > > Thank you for your reply, but for a qpid client in java and in OSGI
> > > > platform, could you send me all bundles, that I can use.
> > > >
> > > >
> > > > regards
> > > >
> > > >
> > > > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> > > >
> > > > > Hi Xavier,
> > > > >
> > > > > I'm afraid I couldn't have been much help with your actual
> > > > > request,
> > > > though
> > > > > it seems like you have got something working, however I did note
> > > > > that
> > > the
> > > > > version of the client you referenced below is around 5 years old,
> > > > > being from the M2(/0.2) stream some time in 2008. I would
> > > > > recommend you
> > > upgrade
> > > > > to a newer release; the latest is currently 0.20 with 0.22 due out
> > > > > in
> > > the
> > > > > next couple of weeks.
> > > > >
> > > > > Robbie
> > > > >
> > > > > On 10 May 2013 12:29, Xavier Millieret <
> > > xavier.millieret.info@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am starting with Qpid, in OSGI.
> > > > > > when I try to have a connection through jndi like:
> > > > > >
> > > > > > Hashtable<String, String> env = new Hashtable<String, String>();
> > > > > > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.Properti
> > > esFileInitialContextFactory");
> > > > > >
> > > > > > Context context = new InitialContext(env); ConnectionFactory
> > > > > > connectionFactory = (ConnectionFactory)
> > > > > > context.lookup("localhost");
> > > > > >
> > > > > > I have the following error:
> > > > > >
> > > > > >  javax.naming.NoInitialContextException: Cannot instantiate
> class:
> > > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> > > > exception
> > > > > is
> > > > > > java.lang.ClassNotFoundException:
> > > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> > > > > >
> > > > > > I try to use following bundles:
> > > > > > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> > > > > >
> > > > > > depends on:
> > > > > > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > > > > > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> > > > > >
> > > > > > someone could help me please.
> > > > > >
> > > > > > Thank you
> > > > > >
> > > > >
> > > >
> > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
>

RE: Qpid in OSGI

Posted by Steve Huston <sh...@riverace.com>.
I believe Robbie is away for a time - what type of problem are you having on Windows?

-Steve

> -----Original Message-----
> From: Xavier Millieret [mailto:xavier.millieret.info@gmail.com]
> Sent: Friday, June 07, 2013 9:09 AM
> To: users@qpid.apache.org
> Subject: Re: Qpid in OSGI
> 
> Hi Robbie,
> 
> I have some problem to generate qpid (c) library for windows, could you help
> me please
> 
> 
> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> 
> > Hi Xavier,
> >
> > It isn't something I have familiarity with I'm afraid. That said,
> > based on the things you have mentioned so far though I would note some
> > points: there is a 0.20 based version of the servicemix qpid bundle
> > you used, the client no longer depends on Mina or Commons Collections
> > (snce 0.14 I think) , and I'm not sure it ever depended on xstream.
> >
> > Robbie
> >
> > On 14 May 2013 14:54, Xavier Millieret
> > <xavier.millieret.info@gmail.com
> > >wrote:
> >
> > > Hi Robbie,
> > >
> > > Thank you for your reply, but for a qpid client in java and in OSGI
> > > platform, could you send me all bundles, that I can use.
> > >
> > >
> > > regards
> > >
> > >
> > > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> > >
> > > > Hi Xavier,
> > > >
> > > > I'm afraid I couldn't have been much help with your actual
> > > > request,
> > > though
> > > > it seems like you have got something working, however I did note
> > > > that
> > the
> > > > version of the client you referenced below is around 5 years old,
> > > > being from the M2(/0.2) stream some time in 2008. I would
> > > > recommend you
> > upgrade
> > > > to a newer release; the latest is currently 0.20 with 0.22 due out
> > > > in
> > the
> > > > next couple of weeks.
> > > >
> > > > Robbie
> > > >
> > > > On 10 May 2013 12:29, Xavier Millieret <
> > xavier.millieret.info@gmail.com
> > > > >wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am starting with Qpid, in OSGI.
> > > > > when I try to have a connection through jndi like:
> > > > >
> > > > > Hashtable<String, String> env = new Hashtable<String, String>();
> > > > > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> > > > >
> > > > >
> > > >
> > >
> >
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.Properti
> > esFileInitialContextFactory");
> > > > >
> > > > > Context context = new InitialContext(env); ConnectionFactory
> > > > > connectionFactory = (ConnectionFactory)
> > > > > context.lookup("localhost");
> > > > >
> > > > > I have the following error:
> > > > >
> > > > >  javax.naming.NoInitialContextException: Cannot instantiate class:
> > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> > > exception
> > > > is
> > > > > java.lang.ClassNotFoundException:
> > > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> > > > >
> > > > > I try to use following bundles:
> > > > > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> > > > >
> > > > > depends on:
> > > > > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > > > > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> > > > >
> > > > > someone could help me please.
> > > > >
> > > > > Thank you
> > > > >
> > > >
> > >
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Robbie,

I have some problem to generate qpid (c) library for windows, could you
help me please


2013/5/14 Robbie Gemmell <ro...@gmail.com>

> Hi Xavier,
>
> It isn't something I have familiarity with I'm afraid. That said, based on
> the things you have mentioned so far though I would note some points: there
> is a 0.20 based version of the servicemix qpid bundle you used, the client
> no longer depends on Mina or Commons Collections (snce 0.14 I think) , and
> I'm not sure it ever depended on xstream.
>
> Robbie
>
> On 14 May 2013 14:54, Xavier Millieret <xavier.millieret.info@gmail.com
> >wrote:
>
> > Hi Robbie,
> >
> > Thank you for your reply, but for a qpid client in java and in OSGI
> > platform, could you send me all bundles, that I can use.
> >
> >
> > regards
> >
> >
> > 2013/5/14 Robbie Gemmell <ro...@gmail.com>
> >
> > > Hi Xavier,
> > >
> > > I'm afraid I couldn't have been much help with your actual request,
> > though
> > > it seems like you have got something working, however I did note that
> the
> > > version of the client you referenced below is around 5 years old, being
> > > from the M2(/0.2) stream some time in 2008. I would recommend you
> upgrade
> > > to a newer release; the latest is currently 0.20 with 0.22 due out in
> the
> > > next couple of weeks.
> > >
> > > Robbie
> > >
> > > On 10 May 2013 12:29, Xavier Millieret <
> xavier.millieret.info@gmail.com
> > > >wrote:
> > >
> > > > Hi,
> > > >
> > > > I am starting with Qpid, in OSGI.
> > > > when I try to have a connection through jndi like:
> > > >
> > > > Hashtable<String, String> env = new Hashtable<String, String>();
> > > > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> > > >
> > > >
> > >
> >
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
> > > >
> > > > Context context = new InitialContext(env);
> > > > ConnectionFactory connectionFactory = (ConnectionFactory)
> > > > context.lookup("localhost");
> > > >
> > > > I have the following error:
> > > >
> > > >  javax.naming.NoInitialContextException: Cannot instantiate class:
> > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> > exception
> > > is
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> > > >
> > > > I try to use following bundles:
> > > > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> > > >
> > > > depends on:
> > > > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > > > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> > > >
> > > > someone could help me please.
> > > >
> > > > Thank you
> > > >
> > >
> >
>

Re: Qpid in OSGI

Posted by Robbie Gemmell <ro...@gmail.com>.
Hi Xavier,

It isn't something I have familiarity with I'm afraid. That said, based on
the things you have mentioned so far though I would note some points: there
is a 0.20 based version of the servicemix qpid bundle you used, the client
no longer depends on Mina or Commons Collections (snce 0.14 I think) , and
I'm not sure it ever depended on xstream.

Robbie

On 14 May 2013 14:54, Xavier Millieret <xa...@gmail.com>wrote:

> Hi Robbie,
>
> Thank you for your reply, but for a qpid client in java and in OSGI
> platform, could you send me all bundles, that I can use.
>
>
> regards
>
>
> 2013/5/14 Robbie Gemmell <ro...@gmail.com>
>
> > Hi Xavier,
> >
> > I'm afraid I couldn't have been much help with your actual request,
> though
> > it seems like you have got something working, however I did note that the
> > version of the client you referenced below is around 5 years old, being
> > from the M2(/0.2) stream some time in 2008. I would recommend you upgrade
> > to a newer release; the latest is currently 0.20 with 0.22 due out in the
> > next couple of weeks.
> >
> > Robbie
> >
> > On 10 May 2013 12:29, Xavier Millieret <xavier.millieret.info@gmail.com
> > >wrote:
> >
> > > Hi,
> > >
> > > I am starting with Qpid, in OSGI.
> > > when I try to have a connection through jndi like:
> > >
> > > Hashtable<String, String> env = new Hashtable<String, String>();
> > > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> > >
> > >
> >
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
> > >
> > > Context context = new InitialContext(env);
> > > ConnectionFactory connectionFactory = (ConnectionFactory)
> > > context.lookup("localhost");
> > >
> > > I have the following error:
> > >
> > >  javax.naming.NoInitialContextException: Cannot instantiate class:
> > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root
> exception
> > is
> > > java.lang.ClassNotFoundException:
> > > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> > >
> > > I try to use following bundles:
> > > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> > >
> > > depends on:
> > > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> > >
> > > someone could help me please.
> > >
> > > Thank you
> > >
> >
>

Re: Qpid in OSGI

Posted by Xavier Millieret <xa...@gmail.com>.
Hi Robbie,

Thank you for your reply, but for a qpid client in java and in OSGI
platform, could you send me all bundles, that I can use.


regards


2013/5/14 Robbie Gemmell <ro...@gmail.com>

> Hi Xavier,
>
> I'm afraid I couldn't have been much help with your actual request, though
> it seems like you have got something working, however I did note that the
> version of the client you referenced below is around 5 years old, being
> from the M2(/0.2) stream some time in 2008. I would recommend you upgrade
> to a newer release; the latest is currently 0.20 with 0.22 due out in the
> next couple of weeks.
>
> Robbie
>
> On 10 May 2013 12:29, Xavier Millieret <xavier.millieret.info@gmail.com
> >wrote:
>
> > Hi,
> >
> > I am starting with Qpid, in OSGI.
> > when I try to have a connection through jndi like:
> >
> > Hashtable<String, String> env = new Hashtable<String, String>();
> > env.put(Context.PROVIDER_URL, "qpidConnection.properties");
> >
> >
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
> >
> > Context context = new InitialContext(env);
> > ConnectionFactory connectionFactory = (ConnectionFactory)
> > context.lookup("localhost");
> >
> > I have the following error:
> >
> >  javax.naming.NoInitialContextException: Cannot instantiate class:
> > org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root exception
> is
> > java.lang.ClassNotFoundException:
> > org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
> >
> > I try to use following bundles:
> > org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
> >
> > depends on:
> > org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> > org.apache.servicemix.bundles.mina-1.1.7_3.jar
> >
> > someone could help me please.
> >
> > Thank you
> >
>

Re: Qpid in OSGI

Posted by Robbie Gemmell <ro...@gmail.com>.
Hi Xavier,

I'm afraid I couldn't have been much help with your actual request, though
it seems like you have got something working, however I did note that the
version of the client you referenced below is around 5 years old, being
from the M2(/0.2) stream some time in 2008. I would recommend you upgrade
to a newer release; the latest is currently 0.20 with 0.22 due out in the
next couple of weeks.

Robbie

On 10 May 2013 12:29, Xavier Millieret <xa...@gmail.com>wrote:

> Hi,
>
> I am starting with Qpid, in OSGI.
> when I try to have a connection through jndi like:
>
> Hashtable<String, String> env = new Hashtable<String, String>();
> env.put(Context.PROVIDER_URL, "qpidConnection.properties");
>
> env.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.qpid.jndi.PropertiesFileInitialContextFactory");
>
> Context context = new InitialContext(env);
> ConnectionFactory connectionFactory = (ConnectionFactory)
> context.lookup("localhost");
>
> I have the following error:
>
>  javax.naming.NoInitialContextException: Cannot instantiate class:
> org.apache.qpid.jndi.PropertiesFileInitialContextFactory [Root exception is
> java.lang.ClassNotFoundException:
> org.apache.qpid.jndi.PropertiesFileInitialContextFactory]
>
> I try to use following bundles:
> org.apache.servicemix.bundles.qpid-1.0-incubating-M2.1_1.jar
>
> depends on:
> org.apache.servicemix.bundles.commons-collections-3.2.1_1.jar
> org.apache.servicemix.bundles.mina-1.1.7_3.jar
>
> someone could help me please.
>
> Thank you
>