Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » nice to have: an Equinox "Generic" Bridge
nice to have: an Equinox "Generic" Bridge [message #106264] Wed, 12 March 2008 20:24 Go to next message
Eclipse UserFriend
Originally posted by: amottadelli_remove.tele2.it

Equinox has a very nice "servlet bridge" to allow the inclusion of an
Equinox framework in a Servlet environment.

I believe that I would be very nice and useful to have an equivalent
"Equinox" solution for embedding an Equinox framework in a generic java
environment.
It also would be very nice to have a "standard" mechanism to allow the
plugins to communicate with the "external" environment.

Best regards,
Sandro
Re: nice to have: an Equinox "Generic" Bridge [message #106292 is a reply to message #106264] Thu, 13 March 2008 10:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Boyan.Yurukov.softwareag.com

Exactly what I need right now to be honest. Now in order to allow external
programs to access and run the services in the framework, I have to use a
bundle that listens to a port, through which I send all the commands in
text. Very uncomfortable and slow.

Greetings,
Boyan.


"Alessandro Mottadelli" <amottadelli_remove@tele2.it> wrote in message
news:fr9e61$4n8$1@build.eclipse.org...
> Equinox has a very nice "servlet bridge" to allow the inclusion of an
> Equinox framework in a Servlet environment.
>
> I believe that I would be very nice and useful to have an equivalent
> "Equinox" solution for embedding an Equinox framework in a generic java
> environment.
> It also would be very nice to have a "standard" mechanism to allow the
> plugins to communicate with the "external" environment.
>
> Best regards,
> Sandro
>
Re: nice to have: an Equinox "Generic" Bridge [message #106359 is a reply to message #106292] Fri, 14 March 2008 08:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amottadelli_NO_SPAM.it.ibm.com

Yes.
In this days I have been thinking on what kind of "general" model could
be used to communicate with an ambedded framework.

My first idea is that "isolates" could be a nice solutions...
http://bitser.net/isolate-interest/

wdyt?

Regards,
Sandro




Boyan Yurukov ha scritto:
> Exactly what I need right now to be honest. Now in order to allow external
> programs to access and run the services in the framework, I have to use a
> bundle that listens to a port, through which I send all the commands in
> text. Very uncomfortable and slow.
>
> Greetings,
> Boyan.
>
>
Re: nice to have: an Equinox "Generic" Bridge [message #107599 is a reply to message #106292] Mon, 07 April 2008 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pillii.gmx.de

Boyan Yurukov schrieb:
> Exactly what I need right now to be honest. Now in order to allow external
> programs to access and run the services in the framework, I have to use a
> bundle that listens to a port, through which I send all the commands in
> text. Very uncomfortable and slow.
>
> Greetings,
> Boyan.


Hello,

do you have any idea how to communicate with the framework besides using
a network connection?
I dont want to use one.
Is it possible to change the Classloaders somehow for example?

Regards,
Gordian
Re: nice to have: an Equinox "Generic" Bridge [message #107861 is a reply to message #107599] Thu, 10 April 2008 09:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Boyan.Yurukov.softwareag.com

The only way I know is to build a bundle that provides a hook and then
to start the Framework from a java application and exploit the hook.
Essentially there is no other way to get access to the internal classes
and services, because of the strong restrictions. Also that is how
Equinox is started in Tomcat - there is a servlet that gets all the http
requests and then forwards them to a bundle that has defined a hook.

What I would suggest is that you build your application as a bundle. I
is easier to do and you have to deal with less classloader issues.

Greetings,
Boyan.

gordian wrote:
>
> Hello,
>
> do you have any idea how to communicate with the framework besides using
> a network connection?
> I dont want to use one.
> Is it possible to change the Classloaders somehow for example?
>
> Regards,
> Gordian
Re: nice to have: an Equinox "Generic" Bridge [message #107900 is a reply to message #107599] Thu, 10 April 2008 17:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amottadelli_remove.tele2.it

gordian wrote:
>
> Hello,
>
> do you have any idea how to communicate with the framework besides using
> a network connection?
> I dont want to use one.
> Is it possible to change the Classloaders somehow for example?
>
> Regards,
> Gordian

Gordian,
we use as a "bridge" a "known" static variable in a class that can be
accessed from the framework loader.

This is fast and convenient but maybe not very clean.
It maybe would be better to implement an "isolate" link (??)

Regards,
Sandro
Re: nice to have: an Equinox "Generic" Bridge [message #107914 is a reply to message #107599] Thu, 10 April 2008 18:47 Go to previous message
Eclipse UserFriend
Originally posted by: pillii.gmx.de

Thank you both.

I made a fragment to the system.bundle that exported the class i needed
to be shared.

Regards,
Gordian

gordian schrieb:
> Boyan Yurukov schrieb:
>> Exactly what I need right now to be honest. Now in order to allow
>> external programs to access and run the services in the framework, I
>> have to use a bundle that listens to a port, through which I send all
>> the commands in text. Very uncomfortable and slow.
>>
>> Greetings,
>> Boyan.
>
>
> Hello,
>
> do you have any idea how to communicate with the framework besides using
> a network connection?
> I dont want to use one.
> Is it possible to change the Classloaders somehow for example?
>
> Regards,
> Gordian
Previous Topic:P2 and installing DeltaPack?
Next Topic:Specifying welcome file list through Equinox Http Service
Goto Forum:
  


Current Time: Fri Apr 19 03:18:30 GMT 2024

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

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

Back to the top