osgi

Wicket calling a lengthy operation and updating through ajax

非 Y 不嫁゛ 提交于 2019-12-06 05:11:55
问题 Based on this SO question, I've come to an understanding that Wicket queues subsequent AJAX requests. Now my page is ridden with several AJAX requests and I'd like to add one more that spawns a lengthy operation. public void populateItem(final Item item) { final MyObject object = (MyObject) item.getModelObject(); // ... a couple of fields Label statusLabel = new Label("status", new AbstractReadOnlyModel() { @Override public Object getObject() { return someService.doSomeLengthyOperation(); } }

Apache POI 3.17 in OSGi

旧城冷巷雨未停 提交于 2019-12-06 05:07:50
问题 Preamble: I've seen this question, but it's obviously about an older version of POI, and Apache went contra to every Java standard since then. Problem: My goal is to get POI to work with OSGi. As of now I'm pretty sure that's not possible, but maybe one of you guys has a good idea. What I tried so far: 1) Bundling the JARs The easiest would be to add bundle information directly to the POI jars (the other answer has details on how to do that). This cannot work, because the JARs export the same

Can't lookup OSGI services through JNDI

北城余情 提交于 2019-12-06 05:01:08
I'm working with JBossAS7. My application has some OSGI modules and big non-OSGI part. I tried lookup osgi services in non-osgi subsystem through JNDI but they are not present in JNDI context. I found similar problem at JBOSS 7 - Osgi Bundles not present in JNDI TREE but I dont found any solution there. If JBoss team didn't implement this functionality yet, how can I resolve this problem now? I tried adding my service to JNDI context manually but got an exception because JNDI context is read only(according to https://issues.jboss.org/browse/AS7-421 ) It's not fully integrated yet (monitor

Dependency chain conflicts for Hibernate and Apache Felix

倾然丶 夕夏残阳落幕 提交于 2019-12-06 04:48:54
I understand the concept of OSGi complaining about multiple dependency chains - a package is available more than once and when the importing bundle doesn't specify exactly which version it needs, so the OSGi container can run into the trouble of not knowing what to provide. Unfortunately I ran into such a problem this week, but both involved bundles are third party bundles, so I can't really influence their imports and exports. Here are the two error messages I get: org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision org.hibernate.core [28.0]

Where are the Configurations made in OSGi Console saved?

一笑奈何 提交于 2019-12-06 04:47:38
问题 When we update any configuration for a component in the Configurations tab in the Apache Felix Web OSGi Console, where are these configuration settings saved? This is with respect to AEM 6.0 or above. 回答1: The manually saved configuration settings are stored in the the crx-quickstart/launchpad/config directory (in your AEM installation folder in the local file system) and, on top of that, as .config files in the Content Respository at /apps/system/config . For example, if you're looking for

How do you implement a ManagedServiceFactory in OSGi?

房东的猫 提交于 2019-12-06 04:12:55
问题 Im currently trying to setup my own implementation of a ManagedServiceFactory . Here is what I'm trying to do: I need multiple instances of some service on a per-configuration base. With DS the components worked perfectly but now I found out that these services should handle there own lifecycle (i.e. (de)registration at the service registry) depending on the availability of some external resource, which is impossible with DS. Thus my idea was to create a ManagedServiceFactory , which then

How can OSGi and Akka benefit from each other? How is this structured?

夙愿已清 提交于 2019-12-06 04:01:07
问题 Following up my rather illogical question, asking to use OSGi or Akka, I was advised that the two can be used together, and that they each solve a different problem. I could use OSGi to provide modularity and updatability, and Akka to provide scalability and performance. As there hasn't been a lot of experimenting with combining OSGi and Akka, I still have a couple of questions. How can OSGi and Akka be used together and benefit from each other? How is this structured? Do all your actors

How can list elements be looped under <script> in sightly?

匆匆过客 提交于 2019-12-06 03:45:17
In my html page I would like to loop through the properties returned by my Java class but do it under <script> tag. Currently my html page has this: <div id="map_wrapper"> <div data-sly-use.ev="Foo" class="mapping" id="${ev.googleClass || ''" > </div> </div> <script> .... var markers = [ ['Bondi Beach', -33.890542, 151.274856], ['Coogee Beach', -33.923036, 151.259052], ['Cronulla Beach', -34.028249, 151.157507], ['Manly Beach', -33.80010128657071, 151.28747820854187], ['Maroubra Beach', -33.950198, 151.259302] ]; ..... </script> My Java Class has following getters: //returns [0] = "something,

Issues with GWT in OSGi+Pax-Web using Declarative Services

走远了吗. 提交于 2019-12-06 02:36:14
I'm migrating an existing GWT app running on OSGi (Equinox) and Pax-web to use Declarative Services instead of programmatic Service Tracker. I'm using Pax-Web in Equinox. A WAR-based GWT application is loaded with no problems by PAX-WEB War extender, but you cannot have Declarative Services in this modus operandis. I successfully refactored all servlets out of the war and converted them into declarative OSGi services ( <provide interface="javax.servlet.Servlet"/> ). That way I got rid of all the messy ServiceTracker code and specific OSGi dependencies in the servlets. I further replicated all

Bind order of OSGi declarative services

回眸只為那壹抹淺笑 提交于 2019-12-06 02:14:43
Assuming I use OSGi Declarative Services and I have a service that have a number references with policy = dynamic... A - Mandatory unary. B - Mandatory unary. C - Mandatory multiple. D - Optional unary. E - Optional multiple. All references are available when my service starts. Is there any way to control what order bind is called in? I'd like to have B bind first and do something to each E that comes in, but I have no way of ensuring that B is bound before E. Yes, the more logical approach would be to let the service that represents B also bind to E and do whatever it should do, but I can't