apache-felix

Trouble understanding the whole OSGi web eco system

一世执手 提交于 2019-11-28 17:03:15
I am pretty new to the whole Java and OSGi world and I have trouble understanding the eco system of a OSGi web application. To be more precise I am at the moment trying to understand how all the parts of the eco system are related to each other: OSGi Framework (e.g. Apache Felix, Equinox, Knoplerfish) OSGi Runtime (e.g. Spring DM Server, Pax Runner, Apache Karaf) Web Extender (e.g. Pax Web Extender, Spring Web Extender) Web Container (e.g. Apache Tomcat, Jetty) To give you a visual representation of my actual understanding of their relationship check out this image: As far as I know the OSGi

Why can't JAXB find my jaxb.index when running inside Apache Felix?

本秂侑毒 提交于 2019-11-28 16:25:44
问题 It's right there, in the package that it should be indexing. Still, when I call JAXBContext jc = JAXBContext.newInstance("my.package.name"); I get a JAXBException saying that "my.package.name" doesnt contain ObjectFactory.class or jaxb.index although it does contain both. What does work, but isn't quite what I want, is JAXBContext jc = JAXBContext.newInstance(my.package.name.SomeClass.class); This question from various other people appears on quite some mailing lists and forums but seemingly

Test Apache Felix with Java 8 and JavaFX

血红的双手。 提交于 2019-11-28 11:40:30
I'm working on example with JavaFX 2.2 and Java 8. I created this simple Apache Felix Activator: Activator: import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { Stage stage; @Override public void start(BundleContext context) throws Exception { Platform.runLater(new Runnable() { @Override public void run() { stage = new Stage(); BorderPane pane = new

How to start and use Apache Felix from code?

半腔热情 提交于 2019-11-28 10:23:56
I can't find information about starting and using Apache Felix from code. I want do things which I am able (or unable ;) ) to do with Apache Felix's Shell. For example, how do I start a module? Please help. So, after trying around a lot of time, here's a possible solution . We will have two projects: OsgiModuleA , which contains a module-to-be-started OsgiUsage , which will use the "Module A" Project OsgiModuleA File module/a/Activator.java package module.a; import org.osgi.framework.*; public class Activator implements BundleActivator, ServiceListener { @Override public void start

Apache Felix shell with SSH

时光怂恿深爱的人放手 提交于 2019-11-28 03:39:59
问题 I'm interested how I can use Apache Felix with SSH? I want to access Felix shell from remote computer using SSH. I know that there is a telnet support but it's too unsafe. Is there any solution? 回答1: Yes, there is one, as described here (the guide is relative to eclipse's equinox but it doesn't matter) using a combination of gogo shell, apache mina sshd server and three equinox console bundles (core+ssh plugin+jaas plugin for ssh authentication) you will be able to connect to mina's ssh

Trouble understanding the whole OSGi web eco system

ぃ、小莉子 提交于 2019-11-27 10:08:41
问题 I am pretty new to the whole Java and OSGi world and I have trouble understanding the eco system of a OSGi web application. To be more precise I am at the moment trying to understand how all the parts of the eco system are related to each other: OSGi Framework (e.g. Apache Felix, Equinox, Knoplerfish) OSGi Runtime (e.g. Spring DM Server, Pax Runner, Apache Karaf) Web Extender (e.g. Pax Web Extender, Spring Web Extender) Web Container (e.g. Apache Tomcat, Jetty) To give you a visual

Test Apache Felix with Java 8 and JavaFX

末鹿安然 提交于 2019-11-27 06:33:12
问题 I'm working on example with JavaFX 2.2 and Java 8. I created this simple Apache Felix Activator: Activator: import javafx.application.Platform; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.BorderPane; import javafx.stage.Stage; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { Stage stage; @Override public void start(BundleContext context) throws Exception {

How to start and use Apache Felix from code?

帅比萌擦擦* 提交于 2019-11-27 03:34:15
问题 I can't find information about starting and using Apache Felix from code. I want do things which I am able (or unable ;) ) to do with Apache Felix's Shell. For example, how do I start a module? Please help. 回答1: So, after trying around a lot of time, here's a possible solution . We will have two projects: OsgiModuleA , which contains a module-to-be-started OsgiUsage , which will use the "Module A" Project OsgiModuleA File module/a/Activator.java package module.a; import org.osgi.framework.*;

Reading my own Jar's Manifest

天涯浪子 提交于 2019-11-26 00:32:41
问题 I need to read the Manifest file, which delivered my class, but when I use: getClass().getClassLoader().getResources(...) I get the MANIFEST from the first .jar loaded into the Java Runtime. My app will be running from an applet or a webstart, so I will not have access to my own .jar file, I guess. I actually want to read the Export-package attribute from the .jar which started the Felix OSGi, so I can expose those packages to Felix. Any ideas? 回答1: You can do one of two things: Call