Hi Harald,

On 29 August 2011 18:57, Harald Wellmann <[email protected]> wrote:
> Hi David,
>
> I don't know much about JBoss AS 7 but I understand it is now fully based on
> OSGi, much like Glassfish 3.x which runs on either Felix or Equinox, whereas
> JBoss AS 7 comes with its own OSGi framework implementation.
>
> But "JBoss AS runs on an OSGi framework of its own" is not equivalent to
> "JBoss AS _is_ an OSGi framework".

The above is actually not true. AS7 does not run on an OSGi Framework
- it internally runs on a proprietary module system. AS7 *is* an OSGi
framework in the sense that end users can deploy OSGi bundles in it
and use it as any OSGi Framework, in a way similar to Equinox and
Felix. Granted, AS7 contains more stuff that's not OSGi-related, but
we can ignore that in this thread I think :)

> So if there is another framework to be supported by Pax Runner (and Pax Exam
> or any other Pax projects), it should be JBoss OSGi but not JBoss AS.

JBoss OSGi is the subcomponent that adds the OSGi functionality to AS7
but the main distribution channel for this OSGi functionality is
through AS7. Because AS7 is lightweight and starts up quickly there is
generally no need to use the base subcomponent on its own...

> From what I read here
> https://docs.jboss.org/author/display/JBOSGI/Getting+Started
> the project is only distributed in the form of an installer bundle.

AS7 is distributed as a .zip file: http://www.jboss.org/jbossas/downloads/

> Pax Runner and Pax Exam would require a direct URL to an executable JAR
> which launches the framework.
>
> This URL should preferably be a Maven artifact, and saying Maven I mean
> Maven Central, though a plain HTTP URL would also be acceptable (this is
> what we use for Knopflerfish and earlier Equinox versions, before Sonatype
> started publishing Maven artifacts).

Hmm, probably the easiest way to get this would be to download the jar
from the above URL, unzip it and then launch /jboss-modules.jar which
is an executable jar file.

> (BTW, I never understood why JBoss stopped publishing their artifacts on
> Maven Central. It just make everyone else's lives harder....)

I don't know the answer to this question ;)

> Next question: JBoss AS has its own launcher scripts, and I guess most
> people don't even notice that there is now OSGi under the hood. So why would
> anyone want to use Pax Runner to launch JBoss AS?

So as mentioned earlier, it's not really OSGi under the hood - OSGi is
actually a user feature which is built on top of an internal module
system called JBoss Modules/MSC. The main reason why I was thinking of
suggesting it for inclusion is for people who want to run or test
their OSGi app in various Frameworks. Having AS7 supported in
pax-runner will allow people to switch from Equinox, Felix, etc to
AS7.
I was also looking at the Eclipse integration that's mentioned here:
http://eclipsesource.com/blogs/2009/08/14/eclipse-osgi-and-pax-runner/
is that still supported with pax-runner?

> If you just want to launch the JBoss OSGi framework and provision some
> additional bundles to it, you can use Pax Exam (Native Container or Server
> Mode). This should work out of the box for any OSGi 4.2 compliant
> implementation with a FrameworkFactory.
>
> To support JBoss OSGi in Pax Runner, we'd have to write an adapter to
> generate config file(s) (i.e. the equivalent of an Equinox config.ini).

Ok, this might also be an interesting option to look at...

> Regarding downloads: yes, most of the OPS4J download links are somewhat out
> of date I'm afraid, due to the fact that Maven is the main distribution
> channel and no one really expects people to use old school download links
> anymore ;-)
>
> Having said that, Pax Runner 1.7.5 is bound to be released within the next
> few days, and I'll make a note to update the download info in the Wiki along
> with the release notes.

Yeah, I know you can also use it through mvn pax:run - I guess I just
looked at the quickstart and there it talks about installing
pax-runner...

Thanks,

David

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to