Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Combining Equinox and JBoss Runtimes
Combining Equinox and JBoss Runtimes [message #113396] Mon, 07 July 2008 16:47 Go to next message
Eclipse UserFriend
Originally posted by: rbbnjmn.yahoo.com

Hello,

I have developed a proof of concept allowing me to start Equinox within
JBoss
and deploy services (with extensions) that are callable from ordinary JBoss
Web and EJB container objects.

I start Equinox either from an MBean or EJB packaged together with a large
Enterprise Application. Approximately 1/2 of the application will
eventually be implemented within the Equinox Framework.

I am using a hook (implements HookConfigurator, ClassLoadingHook) to
return a Classloader adapter (extends DefaultClassLoader implements
BaseClassLoader) such that the JBoss UCL classloader for the bean is
called for loadClass(String name, boolean resolve). The hook returns the
UCL's parent when called to return the parent.

I've written a series of increasingly complicated tests which all pass.

My questions are:

1) Have I overlooked something important ?

2) Is there a cleaner or more natural way to implement ?

Thanks

Roy
Re: Combining Equinox and JBoss Runtimes [message #113412 is a reply to message #113396] Mon, 07 July 2008 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ekkehard.gentz-software.de

hi roy,

good to see that more and more enterprise applications now are going the
OSGI (equinox) road :-)

wish you luck with your project.

I'm going a reverse way for a lage and complex ERP solution
trying to develope all in OSGI (equinox)

- EasyBeans/OSGI as EJB3 container and Hibernate /JPA
- Eclipse Riena for remote OSGI Services used from my RCP-client

at the moment only rich clients, later also Web

in some weeks I'll know if all works as expected

ekke
Roy Benjamin schrieb:
> Hello,
>
> I have developed a proof of concept allowing me to start Equinox within
> JBoss
> and deploy services (with extensions) that are callable from ordinary JBoss
> Web and EJB container objects.
>
> I start Equinox either from an MBean or EJB packaged together with a
> large Enterprise Application. Approximately 1/2 of the application will
> eventually be implemented within the Equinox Framework.
>
> I am using a hook (implements HookConfigurator, ClassLoadingHook) to
> return a Classloader adapter (extends DefaultClassLoader implements
> BaseClassLoader) such that the JBoss UCL classloader for the bean is
> called for loadClass(String name, boolean resolve). The hook returns
> the UCL's parent when called to return the parent.
>
> I've written a series of increasingly complicated tests which all pass.
>
> My questions are:
>
> 1) Have I overlooked something important ?
>
> 2) Is there a cleaner or more natural way to implement ?
>
> Thanks
>
> Roy
>
>
>
Re: Combining Equinox and JBoss Runtimes [message #113425 is a reply to message #113412] Mon, 07 July 2008 17:40 Go to previous message
Eclipse UserFriend
Originally posted by: rbbnjmn.yahoo.com

It makes too much sense to use Equinox this way. At my last job we did
something similar with Felix.

In our case the application has no UI components but does expose
WebServices
and REST services. So we are very purely server side only.

I forgot to mention that the service lookup API I am providing actually
returns
Proxy (java.lang.reflect) wrapped ServiceTracker instances.

Good luck,

Roy
Previous Topic:equinox.security question: Splash as callbackhandler
Next Topic:Equinox vrs maven or '-' vrs '_'
Goto Forum:
  


Current Time: Thu Apr 18 11:04:56 GMT 2024

Powered by FUDForum. Page generated in 0.02021 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top