[jboss-osgi-dev] Arquillian for Hibernate OSGi unit tests
Thomas Diesler
thomas.diesler at jboss.com
Wed Jun 5 03:00:24 EDT 2013
Hi Brett,
The primary target for the Arquillian OSGi Container is our own OSGi 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?
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.
cheers
--thomas
On Jun 5, 2013, at 6:51 AM, Brett Meyer <brmeyer at redhat.com> wrote:
> Thomas,
>
> 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 [1] 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 arquillian-container-osgi-embedded?
>
> 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!
>
> [1] https://github.com/tdiesler/arquillian-container-osgi/commit/30124a93cdd69b2d791c041cbe9ae89ac6cabee4
>
> Brett Meyer
> Red Hat Software Engineer, Hibernate
> +1 260.349.5732
>
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-osgi-dev/attachments/20130605/21b4457c/attachment.html
More information about the jboss-osgi-dev
mailing list