Hi Toni, I'm fairly new to pax-runner, so it is entirely possible that there is a misunderstanding on my side regarding its use. So I will try to rephrase my question by first describing my current project setup and then what I'm trying to achieve by using pax-drone.
I have * a bunch of maven modules that eventually produce a JCA connector rar which embeds equinox into a JEE container * some custom OSGi bundles to be deployed inside the embedded equinox runtime, some of which need certain framework properties to be defined upon startup * a fully automated build system based on maven I want to use pax-drone to * use the maven-surefire-plugin in order to have integration tests for my custom OSGi bundles being executed as part of my regular continuous integration builds * properly configure my custom OSGi bundles when starting the embedded equinox platform during integration tests * achieve all this by properly setting up my maven pom Is it possible to achieve this, and if yes, how? I hope this clarifies my requirements a bit. Cheers, Olaf > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] [mailto:general- > [EMAIL PROTECTED] Im Auftrag von Toni Menzel > Gesendet: Montag, 28. Juli 2008 23:47 > An: General OPS4J > Betreff: Re: [pax-drone] How to configure OSGi runtime? > > Hi Olaf, > > Well, first of all: pax runner is a starter for arbitrary osgi frameworks > including equinox. > Knowing this you are correct that there is no obvious way to add > implementation specific configuration to the platform using the current > paxrunner connector. > > i am still not sure if i understood your set up correctly but i will try > to narrow down this one first: "How can I pass framework properties into > the embedded OSGi platform?": > can you try to setup your environment using paxrunner standalone ? See the > wiki for details (http://wiki.ops4j.org/confluence/x/AgBN) about many > options like --vmOptions="-Dosgi.instance.area=/myfolder" which might help > here. > > If you succeed here (we hope ;-) it is very easy to add paxdrone support > for your usecase. > > If you don't want/need paxdrone but a real embedded framework (Hardcoded): > Yyou can implement your own connector (just an interface that receives > calls during test -so you have to embedd your framework here) > 1. now > 2. after 0.2.0 is released. > of cause, i would recommend (2) because support for custom connectors will > drastically simplified thanks to qi4j. (though, you have to learn that, > watch www.qi4j.org) > > Please keep us in touch! > > Toni > > --- > Toni Menzel > Software Developer > > > -------- Original-Nachricht -------- > > Datum: Mon, 28 Jul 2008 22:19:53 +0200 > > Von: "Olaf Bergner" <[EMAIL PROTECTED]> > > An: "\'General OPS4J\'" <[email protected]> > > Betreff: [pax-drone] How to configure OSGi runtime? > > > I'm currently trying to use pax-drone as my integration testing > framework > > while implementing a JCA resource adapter that embeds equinox into a JEE > > container. I'm not using pax-runner as a runtime environment, nor do I > see > > any use in doing so, given my application's rather special nature. > > > > > > > > While implementing a first, simple test went rather smoothly, for a more > > elaborate integration test I now need to configure the embedded OSGi > > runtime > > (equinox in my case). To be more specific, I need to set > > "osgi.instance.area" to point to a directory suitable for my tests. I > > tried > > using system properties in my maven-surefire-plugin configuration, yet > > these > > are obviously not being picked up. > > > > > > > > How can I pass framework properties into the embedded OSGi platform? > > > > > > > > Cheers, > > > > Olaf > > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
