Questions tagged [equinox]

Use this tag for questions about Equinox which is an implementation of the OSGi R4 core framework specification, a set of bundles that implement various optional OSGi services and other infrastructure for running OSGi-based systems.

Eclipse Equinox provides a certified implementation of the OSGi R4.x core framework specification. It is a modular runtime that allows developers to implement an application as a set of "bundles" using the common services and infrastructure.

603 questions
0
votes
1 answer

Getting an object out of Equinox/Eclipse

I am facing a problem that is a combination of "plain" Java, Equinox, and the communication between the two. I have read other related questions (here, here, and there as well as other Web sites, such as this one and that one) but could not find a…
0
votes
2 answers

How to automatically update OSGi framework bundles list at runtime?

Here is the context: I have 2 osgi products running, one which is the main software (lets call it 'software') and the other which manages updates/installs/uninstalls of the first one, using p2. (lets call the second one 'updater') I managed to make…
Kevin
  • 1
  • 1
0
votes
2 answers

Configure Jetty OSGi bundle for max number of connection

How do we configure an embedded Jetty OSGi Bundle to have a limited number of HTTP Connections. i.e. I want to limit the number of connections that clients can make with Jetty Server. once the limit is reached, it should reject the connection…
0
votes
1 answer

Access a pom property in OSGi bundle at run time

I don't know if what I am doing is the OSGi and Maven way, so first some background: I have two bundles web and client. In the client bundle, I want to access a service that the web bundle registers. I have already checked that I can implement…
Miserable Variable
  • 28,432
  • 15
  • 72
  • 133
0
votes
1 answer

Enable weaving in an Eclipse RCP application

I use EclipseLink 2.4.1 in an RCP application. When starting the application I get warning messages like Reverting the lazy setting on the OneToOne or ManyToOne attribute [...] for the entity class [class ...] since weaving was not enabled or did…
Claude
  • 1,724
  • 3
  • 17
  • 46
0
votes
2 answers

Running the OSGi Equinox console on an hostile environment

Let's say I have this OSGI Equinox application and that I'd like to know bundles are loaded, as well as their state. To do that, I thought about running the console, but I am not sure how to do that. The application has the following folder…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
0
votes
1 answer

how to load class from jar inside equinox server side application in jboss 7

I'm face a problem since few days and I can't get solution. below is my app structure: I have ejbapp.jar inside MyearDeployedOnJboss7.ear at the same level of equinox-server-side-app.war (built using warproduct) and I want to load class from…
abk
  • 35
  • 6
0
votes
1 answer

A bundle required by my plugin is not active

This post covers Eclipse Early start: How to ensure eclipse plugin has required bundles available? This post covers configuring your plugin for "early start" after installed via p2 update: Require-Bundle and Import-Package versus feature.xml…
harschware
  • 13,006
  • 17
  • 55
  • 87
0
votes
1 answer

Can't run OSGi wrapper bundle in Eclipse; .jar is building okay, but how do I also copy files into target/classes?

First of all, I know a number of questions have been asked before about wrapping existing Maven dependencies as OSGi bundles, but I have a problem which I don't see directly addressed in any of those answers... The bundle jar for the problematic…
Elias Vasylenko
  • 1,524
  • 11
  • 21
0
votes
1 answer

How to call start method of an osgi application after all the bundles are started?

I have an osgi application which runs on equinox. This is how the bundles are started in the bootstrap class. String[] equinoxArgs = new String[]{"-console"}; EclipseStarter.setInitialProperties(getInitialProperties()); BundleContext context =…
Jeewantha
  • 965
  • 1
  • 11
  • 28
0
votes
2 answers

Eclipse RCP & SWT Widgets & NLS

Does anyone know if its possible to do NLS to some SWT Widgets in SWT\RCP application? remark: With JFace components its possible if you create own equinox fragment to plugin org.eclipse.jface, (contains messages.properties), so let me say if I want…
To Kra
  • 3,344
  • 3
  • 38
  • 45
0
votes
1 answer

Global variable in unbind method of OSGi service is null

My application is based on OSGi (Equinox). A OSGi service binds another service by defining a Component XML and bind / unbind methods in the appropriate class. In the unbind method the value of a global String variable (same class like unbind…
user1056903
  • 921
  • 9
  • 26
0
votes
3 answers

headless OSGi framework from command line

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…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
2 answers

Executing code before OSGI

We have a software based on the eclipse platform, that logs many important messages. To get these messages, we have a tool, that collects these logs, saves them in a zip-file and deletes the old logs. Now we want, that our tool is executed when the…
looper
  • 1,929
  • 23
  • 42
0
votes
2 answers

Java SWT Spinner with text inside?

I have JAVA SWT/RCP application (Equinox OSGi), I am just creating Wizard which should look like one the picture: The problem I just caught that standard SWT class Spinner, does not offer this kind of option to have some text inside of Spinner. I…
To Kra
  • 3,344
  • 3
  • 38
  • 45