Re: Instantiating Manipulated Class without IPojo

2011-10-19 Thread Karl Pauls
iirc, all you need to do is to have iPOJO on the classpath. regards, Karl On Wed, Oct 19, 2011 at 5:21 AM, Göktürk Gezer gokturk.ge...@gmail.com wrote: Hi Everyone, We're in the middle of moving our codebase to OSGI using IPojo. Problem is, I can not instantiate the manipulated classes

Re: Instantiating Manipulated Class without IPojo

2011-10-19 Thread Göktürk Gezer
Hi Karl, On Wed, Oct 19, 2011 at 9:38 AM, Karl Pauls karlpa...@gmail.com wrote: iirc, all you need to do is to have iPOJO on the classpath. That was the first thing i tried, but unfortunately it didn't save me . regards, Karl On Wed, Oct 19, 2011 at 5:21 AM, Göktürk Gezer

Scripting felix

2011-10-19 Thread Sam Spycher
Hi I am currently writing a small shell script which is supposed to run felix, install the necessary bundles with gogo, then quit and package felix for deployment on our integration servers. Unfortunately, felix seems to undeploy the deployed bundles when shutting down. If I do this manually,

RE : Scripting felix

2011-10-19 Thread DEBROUX Lionel
Hello, I am currently writing a small shell script which is supposed to run felix, install the necessary bundles with gogo, then quit and package felix for deployment on our integration servers. [snip] If you are using Maven, and your bundles are deployed in Maven repositories (besides being

Re: Instantiating Manipulated Class without IPojo

2011-10-19 Thread Karl Pauls
Can you show your maven pom maybe? regards, Karl On Wed, Oct 19, 2011 at 9:24 AM, Göktürk Gezer gokturk.ge...@gmail.com wrote: Hi Karl, On Wed, Oct 19, 2011 at 9:38 AM, Karl Pauls karlpa...@gmail.com wrote: iirc, all you need to do is to have iPOJO on the classpath. That was the first

RE: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Barbara Rosi-Schwartz
Good morning, I am back!... ;-) I am trying out Neil's large bundle option as an interim solution. I am using the Embed-Dependency*;scope=compile|runtime/Embed-Dependency Instruction. When I deploy my fat bundle, it falls over with a transitive dependency used in one of the embedded jars not

RE: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Barbara Rosi-Schwartz
Hi Stuart, Found my (ridiculous) problem, sorry I have bothered you. Simply forgot to set the packaging element as bundle. Thanks, B. -Original Message- From: Stuart McCulloch [mailto:mccu...@gmail.com] Sent: 17 October 2011 17:19 To: users@felix.apache.org Subject: Re: Hot to

Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Pierre Henry Perret
Goord morning all, Barbara, I would suggest using a common bundle repo, OBR is its name for as OSGi bundles arre concerned, and use that OBR repo to mutualize all your software maven related bundles which should then split in two categories, knowing: COMMONS libs - apache, eclipse... - and LEGACY

RE: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Barbara Rosi-Schwartz
Thanks Pierre. I am already using an OBR!... :-( -Original Message- From: Pierre Henry Perret [mailto:phper...@gmail.com] Sent: 19 October 2011 09:33 To: users@felix.apache.org Subject: Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies Goord

Re: RE : Scripting felix

2011-10-19 Thread Sam Spycher
Hi Lionel felix users, Thanks for the example given, you are right, we are using Maven. I am currently adding base depencies by using copy-dependencies as you describe. But I am not using some of the additional maven niceties you are demonstrating, so thanks for the pointers. What I like about

Re: Instantiating Manipulated Class without IPojo

2011-10-19 Thread Göktürk Gezer
On Wed, Oct 19, 2011 at 11:02 AM, Karl Pauls karlpa...@gmail.com wrote: Can you show your maven pom maybe? regards, Karl This pom belongs to project which exposes some of its classes using @Component@Provides .. ..

RE : RE : Scripting felix

2011-10-19 Thread DEBROUX Lionel
Hi again, Thanks for the example given, you are right, we are using Maven. I am currently adding base depencies by using copy-dependencies as you describe. But I am not using some of the additional maven niceties you are demonstrating, so thanks for the pointers. You're welcome. What I like

Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Dileepa Jayakody
Hi, I'm also working on something in-line to what's discussed here, so I would like to share my experience thinking it might be relevant to the topic discussed here. My project uses 3rd party jars wrapped as osgi bundles since the project is on top of an OSGI runtime. I'm trying to reduce the

Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi andnon OSGi dependencies

2011-10-19 Thread thiebault
Hi Dileepa, I am a little off-topic regarding your question about removing unsued jars, but about converting third party jars to OSGi, the eclipse orbit project already provides a number of OSGified jar files here: http://download.eclipse.org/tools/orbit/downloads/ and the latest release:

Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi andnon OSGi dependencies

2011-10-19 Thread Dileepa Jayakody
Thanks Ben. I will sure give a look :-) On Wed, Oct 19, 2011 at 4:19 PM, thieba...@artenum.com wrote: Hi Dileepa, I am a little off-topic regarding your question about removing unsued jars, but about converting third party jars to OSGi, the eclipse orbit project already provides a number of

Newbie - OSGi startup advice please

2011-10-19 Thread David Griffin
Hi all, I am new to Java and even newer to OSGi, though I have been experimenting and reading up on both for the past few weeks. I have posted specific questions previously regarding the project I have been tasked with (writing a graphical, wizard based, configuration tool with pluggable

Re: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Stuart McCulloch
On 19 Oct 2011, at 09:15, Barbara Rosi-Schwartz wrote: Good morning, I am back!... ;-) I am trying out Neil's large bundle option as an interim solution. I am using the Embed-Dependency*;scope=compile|runtime/Embed-Dependency Instruction. When I deploy my fat bundle, it falls over

RE: Hot to configure Maven Bundle plug-in for a mixture of OSGi and non OSGi dependencies

2011-10-19 Thread Barbara Rosi-Schwartz
Thanks Stuart. Turns out I do not need to embed all transitive dependencies, which is a relief as I was concerned about my bundle blowing up out of all proportions. I just managed without the transitive dependencies by a slow and careful balance of dependency elements in the pom and

Re: Newbie - OSGi startup advice please

2011-10-19 Thread Richard S. Hall
On 10/19/11 07:24 , David Griffin wrote: Hi all, I am new to Java and even newer to OSGi, though I have been experimenting and reading up on both for the past few weeks. I have posted specific questions previously regarding the project I have been tasked with (writing a graphical, wizard

RE: Newbie - OSGi startup advice please

2011-10-19 Thread David Griffin
Thanks Richard. In that case, I'll modify my steps to: 1. As before. 2. Convert entire app. to an OSGi bundle. 3. Split the Mega Application bundle up into multiple bundles as per my required modularity. Dave -Original Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent:

java scripting inside a bundle

2011-10-19 Thread Lance Frohman
Does anyone have experience using the javax.script scripting inside a bundle? Normally you can add the jar(s) for any script language (ruby, python, ...) to the class path, and the scripting is available from new ScriptEngineManager().getEngineByExtension(extension) (extension is rb for ruby, py

Re: java scripting inside a bundle

2011-10-19 Thread Andrei Pozolotin
Lance: the underlying problem is that http://download.oracle.com/javase/6/docs/api/javax/script/ScriptEngineManager.html is using spi http://download.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Service%20Provider which is to be supported soon in osgi (page 145):

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 03:24 , Sam Spycher wrote: Hi I am currently writing a small shell script which is supposed to run felix, install the necessary bundles with gogo, then quit and package felix for deployment on our integration servers. Unfortunately, felix seems to undeploy the deployed bundles when

Re: Newbie - OSGi startup advice please

2011-10-19 Thread Richard S. Hall
On 10/19/11 11:02 , David Griffin wrote: Thanks Richard. In that case, I'll modify my steps to: 1. As before. 2. Convert entire app. to an OSGi bundle. 3. Split the Mega Application bundle up into multiple bundles as per my required modularity. Basically, that's what I'd recommend. - richard

Re: Scripting felix

2011-10-19 Thread Karl Pauls
On Wed, Oct 19, 2011 at 5:23 PM, Richard S. Hall he...@ungoverned.org wrote: On 10/19/11 03:24 , Sam Spycher wrote: Hi I am currently writing a small shell script which is supposed to run felix, install the necessary bundles with gogo, then quit and package felix for deployment on our

Re: java scripting inside a bundle

2011-10-19 Thread Justin Edelson
Lance: You might also want to look at Apache Sling's scripting support. After installing a few bundles (I'd need to test to be sure, but my guess is its probably 3 or 4), you can get a ScriptEngineManager from the OSGi service registry. If you have questions about this approach, probably better

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi Richard, I am running a bash script which sends some gogo deployment commands to install some bundles in felix. I then list the bundles I just deployed with gogo with the command 'lb'. These bundles are all correctly displayed and have their state set to active. At the end of the script Felix

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 11:39 , Sam Spycher wrote: Hi Richard, I am running a bash script which sends some gogo deployment commands to install some bundles in felix. I then list the bundles I just deployed with gogo with the command 'lb'. These bundles are all correctly displayed and have their state set

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi Karl It is true that I haven't done anything cache-wise at all! Do I need to configure this in some special way? The cache location is at default. In fact, I haven't changed anything at all in config.properties. The working directory of the script is the felix root directory. Best regards,

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hmm, that is interesting. When I deploy felix via script, I can observe the creation of a directory called '-' in the working directory while the script is executing. Looking at the contents of '-', I find bundleX subdirectories just as is to be expected from the felix cache. Indeed if i cat the

Re: Scripting felix

2011-10-19 Thread Sam Spycher
P.S. Just wanted to mention also that there is no urgency to this issue, at least not to me personally. Since I have proceeded in the meantime by adding our project bundles with maven copy-dependencies per Lionel's recommendations, and test-running felix afterwards, the only disadvantage I have

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 12:09 , Sam Spycher wrote: Hmm, that is interesting. When I deploy felix via script, I can observe the creation of a directory called '-' in the working directory while the script is executing. Looking at the contents of '-', I find bundleX subdirectories just as is to be expected

Re: Instantiating Manipulated Class without IPojo

2011-10-19 Thread Göktürk Gezer
Hi Clement, On Wed, Oct 19, 2011 at 5:06 PM, Clement Escoffier clement.escoff...@gmail.com wrote: Hi, On 19.10.2011, at 05:21, Göktürk Gezer wrote: Hi Everyone, We're in the middle of moving our codebase to OSGI using IPojo. Problem is, I can not instantiate the manipulated classes

Re: Scripting felix

2011-10-19 Thread Sam Spycher
Hi everybody I'm sorry, this has really been much ado about something very small :( My mistake was a typo. I oversaw a small dash right in front of the heredoc marker in the script: java -verbose -jar bin/felix.jar - -END_GOGO_SCRIPT_STARTUP Thanks to Richard and Karl for bringing up the

Re: Scripting felix

2011-10-19 Thread Richard S. Hall
On 10/19/11 13:38 , Sam Spycher wrote: Hi everybody I'm sorry, this has really been much ado about something very small :( My mistake was a typo. I oversaw a small dash right in front of the heredoc marker in the script: java -verbose -jar bin/felix.jar --END_GOGO_SCRIPT_STARTUP Makes

Re: Add GlassFish mode to Karaf?

2011-10-19 Thread Sahoo
Let me understand better. GF already has OSGi Gogo shell and Felix Web console. It has its security layer using which user can define their security realms, jaas providers, etc (these are all required as per Java EE spec anyway). What kind of provisioning does karaf provide? GlassFish uses