osgi

OSGi: Blueprint vs. Spring DM

混江龙づ霸主 提交于 2019-12-03 03:37:48
问题 I am a little bit confused about Blueprint and Spring DM: From what I think is true: Spring DM is a framework defined by Spring Source Blueprint is a framework defined by the OSGi Alliance Blueprint has "taken" many of it's ideas from Spring DM No? Can we expect that those two frameworks become one in the future (merge)? If not, which one will be the most future-proof? 回答1: OSGi 4.2 introduces the Blueprint Service specification based on Spring Dynamic Modules project for which Spring DM (2.x

Can't get SWT Display on Mac OS X

青春壹個敷衍的年華 提交于 2019-12-03 03:35:56
I'm running Mac OS X Snow Leopard and wan't to access the Display from the activator in an OSGi bundle. Below is the start method for my activator: @Override public void start(BundleContext context) throws Exception { ExecutorService service = Executors.newSingleThreadExecutor(); service.execute(new Runnable() { @Override public void run() { Display display = Display.getDefault(); Shell shell = new Shell(display); Text helloText = new Text(shell, SWT.CENTER); helloText.setText("Hello SWT!"); helloText.pack(); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display

Why are uses constraints violated when both chains end in the same bundle?

我们两清 提交于 2019-12-03 03:23:34
问题 I have four bundles, each containing only a manifest. The bundles are app which imports com.example.foo.fragment and com.example.bar foo which exports com.example.foo;uses:=com.example.foo.cfg foo.fragment which is a fragment attached to foo that exports com.example.foo.fragment and com.example.foo.fragment.cfg;uses:=com.example.foo.fragment bar which exports com.example.bar and imports com.example.foo Bundle-level dependency graph : app -> bar | | | v | foo | | v v foo.fragment When I

What is the underlying theme in OSGi?

▼魔方 西西 提交于 2019-12-03 03:21:44
问题 OSGi is a dynamic modular system for Java. Ok, but what is the base line theme, why was OSGi developed? What are the benifits of using OSGi? What is the main story of developing OSGi? Why does it exist? 回答1: If you look closer, the concept of classpath in Java really sucks. You distribute your classes in JAR files, but during runtime Java will (almost) blindly throw all the classes from all the JAR files into one big bag where classes with the same name overshadow each other and then interact

Existing implementations of OSGi Configuration Admin Service?

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are considering to use Configuration Admin Service as a primary API for configuring components in our OSGi-based application. It would be nice if we could reuse some existing implementation so I'm trying to investigate and evaluate the most popular ones. I know there is: Apache Felix Config Admin (org.apache.felix.cm) Equinox Config Admin (org.eclipse.equinox.cm) Are there any other implementations to be considered? Also I was not able to find any good documentation for these implementations. I would be mainly interested in the

How to analyze low-level OSGi problems during tycho test execution?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When executing JUnit test with tycho-surefire-plugin , tycho forks an equinox runtime. In rare cases it may happen that some bundles in the OSGi test runtime cannot be resolved/started (e.g. package uses conflicts). If you read the debug log (maven CLI option -X ), you will find something like !ENTRY org.eclipse.osgi 2 0 2012-10-08 16:41:31.635 !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: !SUBENTRY 1 org.eclipse.osgi 2 0 2012-10-08 16:41:31.635 An error

How to deploy OSGi apps and dependencies?

余生长醉 提交于 2019-12-03 02:48:34
问题 OSGi seems to have an excellent benefit of having small deployable artifacts by not wrapping dozens of JAR dependencies into a lib directory. However, I can't find anything that tells me an easy, reliable way to deploy dependencies to a container. For instance, I have an application that uses CXF and several Spring subprojects. If I need to deploy this application to a new Glassfish server, what would be the best way to do so, ensuring that all dependencies get installed? I'm using Maven, and

Dependency Injection in OSGI environments

别来无恙 提交于 2019-12-03 02:37:20
问题 First some background: I'm working on some webapp prototype code based on Apache Sling which is OSGI based and runs on Apache Felix. I'm still relatively new to OSGI even though I think I've grasped most concepts by now. However, what puzzles me is that I haven't been able to find a "full" dependency injection (DI) framework. I've successfully employed rudimentary DI using Declarative Services (DS). But my understanding is that DS are used to reference -- how do I put this? -- OSGI registered

Large Enterprise Java Application - Modularization

女生的网名这么多〃 提交于 2019-12-03 02:32:50
I work for a country-wide company, so the software we develop is large scale. Our core system is Web based including webservices . We are currently redesigning the entire project and is moment to start the project structure. We have like 7 web modules including for the web project based on Struts2 and Spring 3.1 . A Webservice core based on JAX-WS and Spring 3.1 My question is what are the best practices to design the project structure and modularization for a project like this: We'll definitely use Maven and OSGi if needed. I'm thinking in something like WebProject.war |---Web.xml |--- Libs |

Start an osgi bundle failed with Require-Bundle: org.eclipse.core.runtime; bundle-version=“0.0.0”

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to install and load an external bundle to a simple equinox application. The targeted bundle is coming from a set of plugins for eclipse available here: http://sourceforge.net/projects/rodin-b-sharp/files/Core_Rodin_Platform/2.4/ ( rodin-2.4-dev.zip ). When I start equinox: $ java - jar org . eclipse . osgi_3 . 7.1 . R37x_v20110808 - 1106.jar - console I can install it osgi > install file : ///path_to/rodin-2.4-dev/org.eventb.core_2.4.0.r14093.jar Bundle id is 1 But I have an exception when I start it: osgi > start 1 org