Re: Question

2010-08-11 Thread Charles Moulliard
Alternative is to create manually maven projects (or with the help of Eclipse GUI tool) and add the following plugin http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html to generate the manifest + jar when running the command : mvn install Kind regards, Charles Moulliard Seni

Re: Re : Installing a bundle

2010-08-11 Thread Charles Moulliard
Consider using this, you will simplify your life : http://karaf.apache.org/46-provisioning.html It use also the PAX url project of OPS4J. Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf - ServiceMix Committer ~~

Re: how to create a application specified logger in osgi?

2010-08-11 Thread Charles Moulliard
Hi Sinnema, If you work with Apache Karaf or Apache ServiceMix, PAX logging is used by default and the log4j.properties file located under /etc directory can be customised for your project needs. Kind regards, Charles Moulliard Senior Enterprise Architect (J2EE, .NET, SOA) Apache Camel - Karaf

Re: Deploying Felix as a Windows service

2010-08-11 Thread Guo Du
On Wed, Aug 11, 2010 at 6:50 PM, Stephen Brady wrote: > Can anyone suggest an alternative? You could launch felix as windows scheduled task to run when windows start. -Guo - To unsubscribe, e-mail: users-unsubscr...@felix.apache

Re: Question

2010-08-11 Thread Christopher Brind
Additionally for Eclipse users, these are worth looking at: (Apache) Sigil: http://felix.apache.org/site/apache-felix-sigil.html and Bndtools: http://njbartlett.github.com/bndtools.html Cheers, Chris On 11 August 2010 20:47, Rémon. Sinnema wrote: > - Original Message > > From: gha

Re: Re : Installing a bundle

2010-08-11 Thread Rémon . Sinnema
- Original Message From: Marcel Offermans To: users@felix.apache.org Sent: Wed, August 11, 2010 4:38:56 PM Subject: Re: Re : Installing a bundle > There is a very nice web console available, but no Swing based GUI. See [1], download from [2]. > There are many tools available, dependi

Re: Question

2010-08-11 Thread Rémon . Sinnema
- Original Message From: gharbi To: users@felix.apache.org Sent: Wed, August 11, 2010 1:41:15 PM Subject: Question > I encoutre the first and may be the simplest problem : how to create a bundle ? In addition to what Marcel said: if you're using Eclipse, then take a look at PDE

Re: how to create a application specified logger in osgi?

2010-08-11 Thread Rémon . Sinnema
- Original Message From: ext2 To: users@felix.apache.org Sent: Wed, August 11, 2010 9:15:12 AM Subject: how to create a application specified logger in osgi? > Does anyone has some ideas about how to create such a logger in > osgi? Or is there such a logger exists? Have a look at Pax L

Re: @requires with late-binding headaches

2010-08-11 Thread mhutton86
Richard, I am currently downloading the osgi book as I write this. But going back over what I did. I added the id's again to @Bind, and @Unbind, when I did this. it now adds a TidgetSaasmDevice, but only 1, then only until i close the GUI driving these binding functions do the rest get added bef

Re: @requires with late-binding headaches

2010-08-11 Thread mhutton86
Richard, I am currently downloading the osgi book as I write this. But going back over what I did. I added the id's again to @Bind, and @Unbind, when I did this. it now adds a TidgetSaasmDevice, but only 1, then only until i close the GUI driving these binding functions do the rest get added befo

Re: @requires with late-binding headaches

2010-08-11 Thread Richard S. Hall
On 8/11/10 14:53, Richard S. Hall wrote: On 8/11/10 14:46, mhutton86 wrote: http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@bind http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@requires Is where I was convin

Re: @requires with late-binding headaches

2010-08-11 Thread Richard S. Hall
On 8/11/10 14:46, mhutton86 wrote: http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@bind http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@requires Is where I was convinced about the mutual relationship between @Bind

Re: @requires with late-binding headaches

2010-08-11 Thread mhutton86
http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@bind http://felix.apache.org/site/how-to-use-ipojo-annotations.html#howtouseipojoannotatio...@requires Is where I was convinced about the mutual relationship between @Bind/Unbind, and @Requires. But if what y

Re: Deploying Felix as a Windows service

2010-08-11 Thread Christopher Brind
On 11 August 2010 18:50, Stephen Brady wrote: > I have been playing around with deploying Felix as a Windows service and > have had mixed success with various wrappers (Java Service Wrapper, YAJSW, > Apache Commons). These, however, create two processes, the "wrapper" and > the wrapped Felix, an

Re: @requires with late-binding headaches

2010-08-11 Thread Richard S. Hall
On 8/11/10 14:16, mhutton86 wrote: Thank you for the quick reply Richard, To be honest, I did not know this could be done without the @Requires. Although when I try without the @Requires, @Bind does not pickup any new tidgets at all. according to http://felix.apache.org/site/ipojo-reference-ca

Re: @requires with late-binding headaches

2010-08-11 Thread mhutton86
Thank you for the quick reply Richard, To be honest, I did not know this could be done without the @Requires. Although when I try without the @Requires, @Bind does not pickup any new tidgets at all. according to http://felix.apache.org/site/ipojo-reference-card.html @ "Configuring service depen

Re: @requires with late-binding headaches

2010-08-11 Thread Richard S. Hall
If you have @Bind/@Unbind and use them to maintain your own list, then why do you need @Requires at all? -> richard On 8/11/10 13:17, mhutton86 wrote: I have a service that I require @Requires(optional=true, id="tidget_devices", filter="(!(serviceName=file reader))") private TidgetSaasmDevic

Deploying Felix as a Windows service

2010-08-11 Thread Stephen Brady
I have been playing around with deploying Felix as a Windows service and have had mixed success with various wrappers (Java Service Wrapper, YAJSW, Apache Commons). These, however, create two processes, the "wrapper" and the wrapped Felix, and I'd prefer to avoid this messiness. Can anyone sugges

@requires with late-binding headaches

2010-08-11 Thread mhutton86
I have a service that I require @Requires(optional=true, id="tidget_devices", filter="(!(serviceName=file reader))") private TidgetSaasmDevice[] initialTidgets; but these TidgetSaasmDevices are not ready off the bat, and have to be added via late-binding @Bind(id="tidget_devices") private synchr

Re: Re : Installing a bundle

2010-08-11 Thread Steven Siebert
Netbeans also has some OSGi support (it uses Ant in the back end). I haven't yet tested the limits, as I am just starting out myself...but you might find this helpful/interesting: http://wiki.netbeans.org/OSGiAndNetBeans On Wed, Aug 11, 2010 at 10:38 AM, Marcel Offermans < marcel.offerm...@lu

Re: Felix usage problems

2010-08-11 Thread Richard S. Hall
On 8/11/10 11:16, Liudmila Mukhina wrote: Thanks a lot! It helps ... the only thing... after i've launched felix i've started one bundle. It didn't give me any errors. So, looks fine. Then i exited from the framework and launched it again. I assumed what everytime i have to start all the addidti

Re: Felix usage problems

2010-08-11 Thread Liudmila Mukhina
Thanks a lot! It helps ... the only thing... after i've launched felix i've started one bundle. It didn't give me any errors. So, looks fine. Then i exited from the framework and launched it again. I assumed what everytime i have to start all the addidtional bandles, but it looks like not? Because

Re: Re : Installing a bundle

2010-08-11 Thread Marcel Offermans
On 11 Aug 2010, at 16:33 , gharbi wrote: > It is the right command that I try > > start file:first/example1.jar > > > I have two questions : > > 1. Is there any graphical interface to handle bundles in felix as it is the > case > with Oscar ? There is a very nice web console availab

Re : Installing a bundle

2010-08-11 Thread gharbi jjjj
It is the right command that I try start file:first/example1.jar I have two questions : 1. Is there any graphical interface to handle bundles in felix as it is the case with Oscar ? 2. Is there any tool that simplifies the task for creating and generating bundles (I have found two intere

Re: Re : Installing a bundle

2010-08-11 Thread Marcel Offermans
On 11 Aug 2010, at 16:08 , gharbi wrote: > Yes, it is in the folder \first. I have tried to install this bundle using > this > command but it does not work > > install > C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first\example1.jar Last time I looked, i

Re : Installing a bundle

2010-08-11 Thread gharbi jjjj
Yes, it is in the folder \first. I have tried to install this bundle using this command but it does not work install C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first\example1.jar but we find the following message org.osgi.framework.BundleException: Unable t

Re: Installing a bundle

2010-08-11 Thread Richard S. Hall
On 8/11/10 10:00, Richard S. Hall wrote: You created bundle should be in C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first, no? Responding to myself yet again, if you did correctly create it in first/, then you should be able to install and start it with:

Re: Installing a bundle

2010-08-11 Thread Richard S. Hall
On 8/11/10 10:00, Richard S. Hall wrote: You created bundle should be in C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first, no? "YOUR created bundle should be in..." -> richard -> richard On 8/11/10 9:53, gharbi wrote: Good morning, I am trying to

Re: Installing a bundle

2010-08-11 Thread Richard S. Hall
You created bundle should be in C:\Users\atef\org.apache.felix.main.distribution-3.0.1\felix-framework-3.0.1\first, no? -> richard On 8/11/10 9:53, gharbi wrote: Good morning, I am trying to install for the first time a bundle using the OSGi technology. I have followed step by step t

Installing a bundle

2010-08-11 Thread gharbi jjjj
Good morning, I am trying to install for the first time a bundle using the OSGi technology. I have followed step by step the URL http://felix.apache.org/site/apache-felix-tutorial-example-1.html At the begin, I created a folder named first containing the Activator.java and manifest.mf files.

Re: Felix usage problems

2010-08-11 Thread Richard S. Hall
All you need to do is download the Felix Framework distribution, extract, go into the extracted directory, and type "java -jar bin/felix.jar". That's it. It looks like below you are trying to use it with an existing cache or at least you are copying some bundles into the "bundle" directory th

Re: Question

2010-08-11 Thread Marcel Offermans
To get you started, this is an example of how to build a bundle: http://felix.apache.org/site/apache-felix-tutorial-example-1.html Mind you, most OSGi project don't create their bundles like this (by hand) but use some Bnd based task that integrates with either Ant or Maven. For an example of t

Question

2010-08-11 Thread gharbi jjjj
Good morning, I am working with OSGi technology, but I am still at the begin. I encoutre the first and may be the simplest problem : how to create a bundle ? I am using felix, the platform is well installed, I use some commands on the promt such as ps, start, stop, install, ... But I do not

Felix usage problems

2010-08-11 Thread Liudmila Mukhina
*Hello,* *i'm new in the felix world, so i'm sorry if i'm asking some questions which seems obviuose for u but anyway...* ** *I was following the instruction to start the felix from the official site even thought there is not so much info for the begginers becouse following the instruction i was no

Re: ipojo EventAdminSubscriberHandler & m_subscribersByName

2010-08-11 Thread Clement Escoffier
Hi, On 06.08.2010, at 20:00, Joel Schuster wrote: > Is there a way to get to the m_subscribersByName within the > EventAdminSubscriberHandler? > > I'd like to modify the filter of an IPojo Event Handler based subscriber > after an instance is up and running programmatically. > > Is there any

how to create a application specified logger in osgi?

2010-08-11 Thread ext2
Hi: Typically , I will use the osgi as a server environment. And many applications will be deployed on a osgi server. Because a application may be consist of several bundles; {{ here, "application" is just a concept defined by software requirements. A application will be decoupled to seve