I added apache felix support to arq-osgi-2.0.0.CR4 The setup is documented on the landing
page. To provision the framework we support all properties that you can use with the felix
launch, which should also support URLs to remote (maven) artefacts - not sure if this can
also resolve mvn coordinates.
Please let me know if this works for you.
On Jun 5, 2013, at 4:49 PM, Brett Meyer <brmeyer(a)redhat.com> wrote:
Thomas, what Scott asks is essentially what I was getting at. I know
the jbosgi framework is possible as an embedded container within Arquillian, but I'm
not able to find documentation on the easiest way to do it. For a simple, standalone OSGi
unit test with Arquillian, what's the advised way to set up the embedded container and
environment? I noticed your reliance on the assembly-bundles.xml for testing -- I was
hoping to find a simpler way to setup jbosgi with maven artifacts.
Am I missing something trivial?
Red Hat Software Engineer, Hibernate
----- Original Message -----
From: "Scott Marlow" <smarlow(a)redhat.com>
To: "Thomas Diesler" <thomas.diesler(a)jboss.com>
Cc: "Brett Meyer" <brmeyer(a)redhat.com>, "Steve Ebersole"
Sent: Wednesday, June 5, 2013 10:41:38 AM
Subject: Re: [jboss-osgi-dev] Arquillian for Hibernate OSGi unit tests
On 06/05/2013 03:00 AM, Thomas Diesler wrote:
> Hi Brett,
> The primary target for the Arquillian OSGi Container
is our own
> OSGi Framework <https://github.com/jbosgi/jbosgi-framework>
;, which is a
> compliant R5 implementation. This also explains why I removed support
> for Felix because it is not (yet) R5 compliant AFAIK. Theoretically, it
> would probably be possible to change pom such that it uses an older
> version of the OSGi APIs when running with Felix.
> To be a good (corporate) citizen you run and talk about hibernate on the
> jbosgi framework. Do you have a specific reason not to?
I thought this is what people are already doing when they use the
Hibernate ORM on jbosgi (since Hibernate ORM is a component). I think
the Hibernate team is already contributing quite a bit and I see no
reason to accuse (insulting) them of not being good citizens of the world.
For standalone use though, what is the model for getting the jbosgi
framework as a single (maven artifact) component? I'm asking this for
my own information (not related to Hibernate native OSGi container
support which I think is what Brett is talking about). I have heard
talk about *embedded* (framework/platform) support in the past but not
sure if we have anything to show yet.
> ARQ OSGi tests run in the framework so they would have access any OSGi
> service including the LogService
> The Framework and very likely also Hibernate does not use that service
> for logging I suppose. AFAIK, ARQ stays out of the business of container
> logging. With all our OSGi stuff we use jboss-logging and everything
> running on the framework would be delegated to that. The logging from
> the hibernate bundle should show up in the configured framework log.
> On Jun 5, 2013, at 6:51 AM, Brett Meyer <brmeyer(a)redhat.com
> <mailto:firstname.lastname@example.org>> wrote:
>> Hello! We recently wrapped up initial support for Hibernate in OSGi.
>> I've been attempting to create unit tests with an embedded container,
>> but had a few questions for you. Up for it?
>> I've been using your arquillian-container-osgi fork's
>> "container-embedded" area as a reference. I have
>> arquillian-container-osgi-embedded on the classpath, as well as Felix,
>> but it wasn't resolving my test bundle. I noticed your comment on
>> 30124a93cd  and am guessing that's part of the problem, although I
>> know a few 3rd party bundles are missing from my deployment.
>> So, it's more of a general question. I'd like to be able to kick this
>> off as a part of Hibernate's standalone unit tests and was hoping the
>> embedded container would do the trick. What setup would you
>> recommend? What OSGi frameworks will work with
>> One secondary (and possibly elementary) question: does Arquillian have
>> a way to tap into the embedded container's logs? log4j bundle? Or,
>> are the container's logs still written out somewhere?
>> Thanks for any help available!
>> Brett Meyer
>> Red Hat Software Engineer, Hibernate
>> +1 260.349.5732
> Thomas Diesler
> JBoss OSGi Lead
> JBoss, a division of Red Hat
> jboss-osgi-dev mailing list
JBoss OSGi Lead
JBoss, a division of Red Hat