osgi

Access resources in another osgi bundle?

I have created two OSGI bundles A and B using the eclipse Plug-in project wizard (using eclipse Helios). In the manifest file of bundle B I have added bundle A as a dependency. Further I have exported the packages in A so they are visible for B. I also have a .properties file in bundle A that I would like to make visible for bundle B. ...

Query parser and optimizer for OSGi/LDAP filters/queries?

I'm looking for a query parser and optimizer that can work with OSGi filter conditions, which are based on LDAP query syntax. Preferably something implemented in Java, but a different implementation (even web based) would be good too. My main use case is to feed it queries that maybe can be simplified. ...

OSGi Specs and RFCs

I can only find and download OSGi Specs(e.g. core-spec, enterprise-spec) from its website. What about so-called OSGi RFCs? Are they publicly accessable, and how related to the Specs? Thanks! ...

Checkout timeout on C3P0 under OSGi

Hi. I'm trying to wrap C3P0 under OSGi, but it throws the following error: An attempt by a client to checkout a Connection has timed out Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5d0e2c9 -- timeout at...

ServiceMix 4.2: Dynamically create BCs, add them, let them message over SM?

I would like to use ServiceMix for the following scenario: I'll deploy a WebService on it, where other WebServices can register and ask which other Webservices have registered When a WebService (I know the interfaces) registers, I want to activate / dynamically deploy a suitable BC (I built beforehand) to let it communicate with other ...

How to create Swing OSGi bundles on AWT EventQueue with Spring DM

I have an OSGi target platform consisting of Equinox, the Spring Framework, Spring DM, and several custom bundles for my application. All of my bundles contain Spring application contexts and so are automatically loaded by the Spring OSGi extender. Some of my bundles contain Swing ui components. The problem is that the Spring OSGi Exten...

OSGi vs Spring vs Struts vs EJB vs. Hibernate -- a totally newbie's question

I am not familiar with these "framework" "components" at all, but can someone give me a 101 introduction about what the relationship they are to each other? Basically, I want to know roughly about: what and what are counterparts to each other what and what are complementary technology (e.g., A as a framework can be used with B as a com...

c3p0 loop and OSGi

I wrap my project in OSGi bundle(just call my first start method from Activator.start()). In my project I use ORM ActiveObjects and c3p0 pool. All of project dependencies (jar librarys) are in class path. If I run my project with c3p0 it is takes about 5 minutes to 1 query to DB. Without c3p0 it is works correctly. In what is a problem? ...

Who framed the org.osgi.framework.* interfaces?

I understand that OSGI is just a specification and they don't event mandate that implementation be in Java. Then who/which guys have framed the "org.osgi.framework.x" packages. For e.g. where does the BundleContext.java class come from? Has this API provided by OSGIALliance itself? Note that I understand that the implementation of thes...

How to create OSGi bundle from jar library?

How to create OSGi bundle from jar library? ...

Run osgi bundle from command line

I developed an OSGi bundle, which I usually test from Eclipse. Aftrer exporting the bundle, I get a bundle.jar file. I would like to be able to run the generated file from the command line. Something like: C:\java -jar bundle.jar osgi_framework path But, how to include the osgi framework in it? and also, how can I start the bundle imme...

Find out dependencies for a any .jar bundle

I am developing OSGi bundles using Eclipse. I test the code, using an Eclipse OSGi runtime configuration. The code works fine there, but when I export the bundles as jars and try to use them in another environment (pax-runner, for instance) I get ClassNotFound exceptions at runtime. The bundles are installed fine, with no errors. I exec...

Are Blueprint Services Implemented as OSGI Bundle Services?

I'm slightly confused and intrigued as to how blueprint bundles perform dependency injection with an OSGI container. I'm aware that plain old OSGI incorporates a service registry and bundle headings/interfaces to allow objects to be exposed to other bundles as services. Is blueprint merely an extension to this behaviour? I.e. does the...

Creating a Android OSGI bundle with Eclipse

Hello, I have a issue with Android, Eclipse and OSGI. On a Android 2.1 device is a OSGI container running successfully, but for the bundle i need to use the android API so there are no imports missing. In my opinion the android.jar is already available by the system, so he doesn't need to be imported. I'm not familiar with configure ...

Overwriting generated target in local maven repository with Maven-Eclipse?

Maven won't overwrite the built version of an eclipse project in my local repository. I only changed a META-INF/MANIFEST.MF file, but Maven doesn't seem to recognize that and therefore doesn't overwrite the artifacts in the local repository. How can I force it to overwrite? This is the maven log: [INFO] [INFO] --- maven-jar-plugin:2.2:...

OSGI runtime inside traditional J2EE server

I understand it should probably be other way round (OSGI runtime hosting J2EE servers), as it is apparently already possible with glassfish. However, our clients have extensive experience in administering traditional J2EE servers and significant investment (licenses, training etc.) Our architecture would benefit from OSGI modular archit...

What is my Eclipse-RCP application storing in $HOME/.eclipse, and how do I prevent it?

When I run my Eclipse RCP application, it creates a whole lot of directories in my $HOME/.eclipse directory. What is this? I don't want the files there, how can I hinder them from getting there? The rational for this: the application must run very clean and only leave files at one specific location (not $HOME/.eclipse). I'd figured it ...

cxf interceptor problem in osgi exec environment

Dear all, Let me briefly introduce my environment: OSGi exec environment - equinox implementation, version org.eclipse.osgi_3.5.2.R35x_v20100126 Apache CXF - version 2.2.10 I'm trying to enable CXF interceptors to address security issues in my web services but I cannot get these in/out interceptors be called. Her...

Enterprise OSGi vs. EJB

Hello, i have an application server (JBoss) with some EJBs deployed. Now i must develop an OSGi application which i would like to reuse with my application server. I know that new application servers allows to deploy OSGi bundles in the application server itself. These are my questions: Could i simple deploy my OSGi bundles into the a...

how to write a portable build.xml?

I am using an OSGi framework to do my development, and my develop machine's jar lib path is different from my production machine's. How can a write my build.xml so that it can make my development easy yet I can ship the software to the production without too much headache? (note: the production people do not know ant and etc very much)...