adding the 4.3 core dependency to your felix test dependencies should do the same
On Jun 11, 2013, at 8:29 AM, Thomas Diesler <thomas.diesler(a)jboss.com> wrote:
It should be possible to run the ARQ functionality on 4.3 (i.e.
I'm not aware that this needs R5 features) - after all we did run this on the old 4.2
framework as well. The correct thing to do would be to define the dependency on
org.osgi.core together with the framework and not R5 for all. In this case 4.3 should be
on the class path for felix
On Jun 10, 2013, at 5:54 PM, Brett Meyer <brmeyer(a)redhat.com> wrote:
> Thomas, thanks much for this. I started working with it, but immediately got a
NoSuchMethodError for org.osgi.framework.wiring.BundleWire. Am I correct that Arquillian
solely targets OSGi R5, while Felix (and Hibernate) is still on R4.3? Is there a simple
solution for 4.3, or is a fork the only option?
> Thanks again
> Brett Meyer
> Red Hat Software Engineer, Hibernate
> +1 260.349.5732
> ----- Original Message -----
> From: "Thomas Diesler" <thomas.diesler(a)jboss.com>
> To: "Brett Meyer" <brmeyer(a)redhat.com>
> Cc: "Scott Marlow" <smarlow(a)redhat.com>, "Steve Ebersole"
> Sent: Monday, June 10, 2013 10:32:39 AM
> Subject: Re: [jboss-osgi-dev] Arquillian for Hibernate OSGi unit tests
> Hi Brett,
> 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?
>> Brett Meyer
>> Red Hat Software Engineer, Hibernate
>> +1 260.349.5732
>> ----- 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" <steve(a)hibernate.org>, jboss-osgi-dev(a)lists.jboss.org
>> 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
>>> 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
>>>> 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
>>>> 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
>>>> off as a part of Hibernate's standalone unit tests and was hoping
>>>> 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
> Thomas Diesler
> JBoss OSGi Lead
> JBoss, a division of Red Hat
JBoss OSGi Lead
JBoss, a division of Red Hat
JBoss OSGi Lead
JBoss, a division of Red Hat