0

At the moment I am invoking the equinox OSGi system using:

java -jar org.eclipse.osgi_3.2.0.jar -console

Framework shutdowns immediately when I can exit from it which is normal.
However, I want to keep the Framework run indefinitely.
What can be the best way for doing so? and I know I can start equinox framework programmatically.

Shreyos Adikari
  • 12,348
  • 19
  • 73
  • 82
Exploring
  • 2,493
  • 11
  • 56
  • 97

3 Answers3

2

Use "java -jar org.eclipse.osgi_3.2.0.jar -console -Dosgi.noShutdown=true".

Not sure if it works with your version but I works with 3.7.2 for sure.

Balazs Zsoldos
  • 6,036
  • 2
  • 23
  • 31
1

Just make sure the framework has something thing to do ... the framework only exists when there is no non-daemon thread running. If all your bundles are just waiting for callbacks ... noting can ever happen. So you need at least one bundle that is waiting on the UI thread, a web server, etc.

Peter Kriens
  • 15,196
  • 1
  • 37
  • 55
0

you can use Java Service Wrapper to run a Java application as a Windows/Linux service

Dmytro Pishchukhin
  • 2,369
  • 1
  • 14
  • 19