I'd think it should be enough to make the necessary changes to
the embedded server and osgi subsystem (if there are any).
The FrameworkFactory that uses the embedded server and stuff
related to the TCK setup should live in jbosgi.
cheers
--thomas
On 11/21/2012 10:45 AM, David
Bosschaert wrote:
As many know - AS7 is also an OSGi Framework meaning that it implements
the OSGi Core Specifications.
Additionally native JBoss support for more and more OSGi Enterprise
Specifications is being added. Examples are:
* The OSGi HttpService Specification (as7-5083)
* The OSGi WebApplication Specification (as7-5235)
* OSGi JPA support (as7-5476)
* other specs are also looked at
For everything that implements an OSGi spec there is also an OSGi TCK
testsuite. Over the past while I've been looking at getting AS7 to run
under the OSGi TCK. This is specifically needed when you want to check
that the above implementations are actually compliant with the specs.
To be able to run AS7 under the OSGi TCK 2 things had to be done:
* OSGi in AS7 had to be enhanced to support the OSGi Launcher API [1].
This is what the TCK uses to launch a framework.
* The TCK configuration files need to be tweaked so that it runs with
AS7 (instead of the RI).
I've implemented these two in
http://github.com/bosschaert/jboss-as/commit/8de4742e3f7bef059c2d12137c360ffb4d0a5780
I've added the TCK integration to the jboss-as/osgi/tck subtree. It's
fairly small as its mostly configuration and having it in jboss-as means
that we can easily kick off a tck run in hudson or from the commandline
for any AS build. It effectively gets us an additional bunch of system
tests for the (Enterprise) OSGi compliant components.
No changes to the product (build directory). The launcher API is not yet
included in the product, although we could decide to include it if we
think that makes sense.
I would like to file a pull request for this soon. Hope this works for
others. The associated JIRA is https://issues.jboss.org/browse/AS7-5639
Thanks,
David
[1]
http://www.osgi.org/javadoc/r4v42/org/osgi/framework/launch/package-summary.html
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx