Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Running an empty equinox container without console port
Running an empty equinox container without console port [message #110823] Wed, 28 May 2008 18:09 Go to next message
Ivaylo Mihov is currently offline Ivaylo MihovFriend
Messages: 1
Registered: July 2009
Junior Member
Hello,

I have been struggling with getting just a plain vanilla Equinox container
up and running without enabling the console. We are trying to explore Server
Side Equinox as an OSGi container and need to start with just the basics.
Here is what I can get to work:

java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
-noExit -console 8888

As one could imagine the process stays alive and when I telnet to
localhost:8888 I get to the console.

telnet localhost 8888
Trying ::1...
Connected to localhost.
Escape character is '^]'.

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105

osgi> exit

Now, as you can imagine having the console on a port is not very practical
for server-side usage, especially if you have multiple Equinox instances on
the same server (requires multiple ports).

I have not been able to get Equinox to stay running if I just do:

java -jar plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.ja r
-noExit

The process starts and exits leaving a configuration directory with an entry
in the log that it could not start Eclipse. I can get rid of the message if
I create a basic config.ini file with the following entries:

eclipse.ignoreApp=true
osgi.noShutdown=true

When I repeat the above command produces the same behavior - equinox starts
and exists right away without trying to start Eclipse.

I wonder if I am missing a minor detail or the entire point here by what I
am trying to do.

Thanks,
--ivo
Re: Running an empty equinox container without console port [message #110854 is a reply to message #110823] Wed, 28 May 2008 21:12 Go to previous message
Eclipse UserFriend
Originally posted by: oleg.subscriptions.gmail.com

And this has nothing to do with JVM handling of threads as somebody
suggested. I tried to leave a bundle running in the container, which just
posted a message every 5 seconds - clear user thread. And that container
still died within a minute ..
Previous Topic:How to use Hibernate/JPA with OSGi
Next Topic:Accessing local entity beans from within OSGI bundles in JBoss
Goto Forum:
  


Current Time: Thu Mar 28 16:04:07 GMT 2024

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

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

Back to the top