<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Brett,<div><br></div><div>I added apache felix support to&nbsp;<a href="https://github.com/arquillian/arquillian-container-osgi/tree/2.0.0.CR4">arq-osgi-2.0.0.CR4</a>&nbsp;The setup is documented on the landing page. To provision the framework we support all&nbsp;<a href="http://felix.apache.org/site/apache-felix-framework-configuration-properties.html#ApacheFelixFrameworkConfigurationProperties-launcher">properties</a>&nbsp;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.</div><div><br></div><div>Please let me know if this works for you.</div><div><br></div><div>cheers</div><div>--thomas</div><div><br><div><div>On Jun 5, 2013, at 4:49 PM, Brett Meyer &lt;<a href="mailto:brmeyer@redhat.com">brmeyer@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Thomas, what Scott asks is essentially what I was getting at. &nbsp;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. &nbsp;For a simple, standalone OSGi unit test with Arquillian, what's the advised way to set up the embedded container and environment? &nbsp;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.<br><br>Am I missing something trivial?<br><br>Brett Meyer<br>Red Hat Software Engineer, Hibernate<br>+1 260.349.5732<br><br>----- Original Message -----<br>From: "Scott Marlow" &lt;<a href="mailto:smarlow@redhat.com">smarlow@redhat.com</a>&gt;<br>To: "Thomas Diesler" &lt;<a href="mailto:thomas.diesler@jboss.com">thomas.diesler@jboss.com</a>&gt;<br>Cc: "Brett Meyer" &lt;<a href="mailto:brmeyer@redhat.com">brmeyer@redhat.com</a>&gt;, "Steve Ebersole" &lt;<a href="mailto:steve@hibernate.org">steve@hibernate.org</a>&gt;, <a href="mailto:jboss-osgi-dev@lists.jboss.org">jboss-osgi-dev@lists.jboss.org</a><br>Sent: Wednesday, June 5, 2013 10:41:38 AM<br>Subject: Re: [jboss-osgi-dev] Arquillian for Hibernate OSGi unit tests<br><br>On 06/05/2013 03:00 AM, Thomas Diesler wrote:<br><blockquote type="cite">Hi Brett,<br><br>The primary target for the Arquillian OSGi Container<br>&lt;<a href="https://github.com/arquillian/arquillian-container-osgi">https://github.com/arquillian/arquillian-container-osgi</a>&gt; is our own<br>OSGi Framework &lt;<a href="https://github.com/jbosgi/jbosgi-framework">https://github.com/jbosgi/jbosgi-framework</a>&gt;, which is a<br>compliant R5 implementation. This also explains why I removed support<br>for Felix because it is not (yet) R5 compliant AFAIK. Theoretically, it<br>would probably be possible to change pom such that it uses an older<br>version of the OSGi APIs when running with Felix.<br><br>To be a good (corporate) citizen you run and talk about hibernate on the<br>jbosgi framework. Do you have a specific reason not to?<br></blockquote><br>I thought this is what people are already doing when they use the <br>Hibernate ORM on jbosgi (since Hibernate ORM is a component). &nbsp;I think <br>the Hibernate team is already contributing quite a bit and I see no <br>reason to accuse (insulting) them of not being good citizens of the world.<br><br>For standalone use though, what is the model for getting the jbosgi <br>framework as a single (maven artifact) component? &nbsp;I'm asking this for <br>my own information (not related to Hibernate native OSGi container <br>support which I think is what Brett is talking about). &nbsp;I have heard <br>talk about *embedded* (framework/platform) support in the past but not <br>sure if we have anything to show yet.<br><br><blockquote type="cite"><br>ARQ OSGi tests run in the framework so they would have access any OSGi<br>service including the LogService<br>&lt;<a href="http://www.osgi.org/javadoc/r5/enterprise/org/osgi/service/log/package-summary.html">http://www.osgi.org/javadoc/r5/enterprise/org/osgi/service/log/package-summary.html</a>&gt;.<br>The Framework and very likely also Hibernate does not use that service<br>for logging I suppose. AFAIK, ARQ stays out of the business of container<br>logging. With all our OSGi stuff we use jboss-logging and everything<br>running on the framework would be delegated to that. The logging from<br>the hibernate bundle should show up in the configured framework log.<br><br>cheers<br>--thomas<br><br>On Jun 5, 2013, at 6:51 AM, Brett Meyer &lt;<a href="mailto:brmeyer@redhat.com">brmeyer@redhat.com</a><br>&lt;<a href="mailto:brmeyer@redhat.com">mailto:brmeyer@redhat.com</a>&gt;&gt; wrote:<br><br><blockquote type="cite">Thomas,<br><br>Hello! &nbsp;We recently wrapped up initial support for Hibernate in OSGi.<br> I've been attempting to create unit tests with an embedded container,<br>but had a few questions for you. &nbsp;Up for it?<br><br>I've been using your arquillian-container-osgi fork's<br>"container-embedded" area as a reference. &nbsp;I have<br>arquillian-container-osgi-embedded on the classpath, as well as Felix,<br>but it wasn't resolving my test bundle. &nbsp;I noticed your comment on<br>30124a93cd [1] and am guessing that's part of the problem, although I<br>know a few 3rd party bundles are missing from my deployment.<br><br>So, it's more of a general question. &nbsp;I'd like to be able to kick this<br>off as a part of Hibernate's standalone unit tests and was hoping the<br>embedded container would do the trick. &nbsp;What setup would you<br>recommend? &nbsp;What OSGi frameworks will work with<br>arquillian-container-osgi-embedded?<br><br>One secondary (and possibly elementary) question: does Arquillian have<br>a way to tap into the embedded container's logs? &nbsp;log4j bundle? &nbsp;Or,<br>are the container's logs still written out somewhere?<br><br>Thanks for any help available!<br><br>[1]<br><a href="https://github.com/tdiesler/arquillian-container-osgi/commit/30124a93cdd69b2d791c041cbe9ae89ac6cabee4">https://github.com/tdiesler/arquillian-container-osgi/commit/30124a93cdd69b2d791c041cbe9ae89ac6cabee4</a><br><br>Brett Meyer<br>Red Hat Software Engineer, Hibernate<br>+1 260.349.5732<br><br></blockquote><br>xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br>Thomas Diesler<br>JBoss OSGi Lead<br>JBoss, a division of Red Hat<br>xxxxxxxxxxxxxxxxxxxxxxxxxxxx<br><br><br><br><br><br><br>_______________________________________________<br>jboss-osgi-dev mailing list<br><a href="mailto:jboss-osgi-dev@lists.jboss.org">jboss-osgi-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/jboss-osgi-dev<br><br></blockquote><br></blockquote></div><br><div>
<div><pre class="moz-signature" cols="72">xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx </pre><div><br></div></div><br class="Apple-interchange-newline">

</div>
<br></div></body></html>