equinox

How to change value of 'Read timeout' of Eclipse's Update Manager?

拥有回忆 提交于 2019-12-03 06:47:04
How to change value of 'Read timeout' of Eclipse's Update Manager? I have slow internet connection and I cannot install any plugin, because Eclipse's Update manager throws me exception: Transfer Exception java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170) at java.io.FilterInputStream.read

CQRS+ES项目解析-Equinox

我的未来我决定 提交于 2019-12-03 00:37:21
今天我们来分析另一个开源的CQRS+ES项目:Equinox。该项目可以在github上下载并直接本地运行,项目地址: https://github.com/EduardoPires/EquinoxProject ,该项目是基于 .net core 2.2的,开发语言、编码方式比Diary.CQRS更加新潮( CQRS+ES项目解析-Diary.CQRS ),也更符合我们现在的开发习惯。 项目概览 首先通过github获取到项目源代码,打开项目文件,你会看到如下分层: Presentation:展示层,UI在该层实现 Services:WebApi在该层实现,同样隶属于UI Application:应用程序服务层,提供了对Domain层接口的封装,注重数据交换,DTO对象在该层定义 Domain:领域层,项目的核心部分,领域对象、领域服务在该层实现 Infra:基础设施层,项目的公共部分(数据访问)、切片(身份认证、消息发布、依赖注入)部分在该层实现 通过项目分层,我们已经对该项目有了一个大致的轮廓,当从Presentation、Services层接收到来自客户端的请求后,将会调用Application层的应用程序服务,应用程序服务将数据进行封装和转换,然后交给Domain层进行处理,Domain层则调用Infra相关的方法完成持久化、消息发布等功能。 Domain层

How do I attach the sources for a library bundle in OSGi/Equinox/Eclipse?

和自甴很熟 提交于 2019-12-01 06:57:31
I created a library bundle for commons-lang3 and this works well. I can build the bundle, add a dependency and then use all the classes in this bundle in my plugins. But I don't see the sources in the debugger. What is the simplest way to create a source bundle for this library bundle? PS: A library bundle is a plugin which contains the original JAR file; Eclipse doesn't compile the source again, it just adds the existing JAR to the classpath. If you add the source files to their own jar then create a META-INF/MANIFEST.MF file with an 'Eclipse-SourceBundle' entry which specifies the symbolic

How do I attach the sources for a library bundle in OSGi/Equinox/Eclipse?

[亡魂溺海] 提交于 2019-12-01 05:12:04
问题 I created a library bundle for commons-lang3 and this works well. I can build the bundle, add a dependency and then use all the classes in this bundle in my plugins. But I don't see the sources in the debugger. What is the simplest way to create a source bundle for this library bundle? PS: A library bundle is a plugin which contains the original JAR file; Eclipse doesn't compile the source again, it just adds the existing JAR to the classpath. 回答1: If you add the source files to their own jar

Equinox (OSGi) and JPA/Hibernate - Finding Entities

六眼飞鱼酱① 提交于 2019-11-30 23:42:59
I am trying to use Hibernate/Spring in an OSGi (Equinox) environment. It works great if I explicitly point it to the Entity classes in the Persistence.xml: <class>com.es.t.eee.domain.StuffSource</class> <class>com.es.t.eee.domain.PostalAddress</class> What I want is for Hibernate to "find" all of the Entity classes just as it does outside of the OSGi environment. Hibernate is looking in the correct bundle for the @Entities: Searching mapped entities in jar/par: bundleresource://34/ WARN 27-07 15:30:24,235 (InputStreamZippedJarVisitor.java:doProcessElements:41): Unable to find file (ignored):

Integrating Equinox OSGi into Apache Tomcat web app

戏子无情 提交于 2019-11-30 20:48:11
Is it possible to introduce osgi-equinox into existing java Apache Tomcat project? From my understanding OSGI must run inside some kind of "container". How would I integrate it? I am also using Jersey for RESTful resources. sjlee You may want to look at this question: OSGI runtime inside traditional Java EE server . In this bridge model, a special servlet is installed and Tomcat invokes this servlet to handle the request. An OSGi runtime is spawned from within this servlet, but the OSGi runtime itself (e.g. equinox) is agnostic of things like HTTP. An OSGi HTTP service bundle is also installed

Can Eclipse 3.5 discover all bundles in the plugins dir?

ぃ、小莉子 提交于 2019-11-30 19:29:42
Simple usecase : assemble an Eclipse product using simple scripts, just dumping bundles into the plugins dir . This used to work with 3.3 - with 3.5 it's broken: my application doesn't start as the app plugin is not found. Question : what's the easiest way to fix that? This seems to be the only pain in the whole upgrade process for me. Attempts : I guess this is a no-no for P2: it maintains the bundles.info file instead, which is probably very smart.. a bit too smart for me. Some ideas I had: can I just skip P2 altogether and get back to plain old, simple -dirty- discovery mechanism? can I set

Equinox (OSGi) and JPA/Hibernate - Finding Entities

六眼飞鱼酱① 提交于 2019-11-30 17:43:34
问题 I am trying to use Hibernate/Spring in an OSGi (Equinox) environment. It works great if I explicitly point it to the Entity classes in the Persistence.xml: <class>com.es.t.eee.domain.StuffSource</class> <class>com.es.t.eee.domain.PostalAddress</class> What I want is for Hibernate to "find" all of the Entity classes just as it does outside of the OSGi environment. Hibernate is looking in the correct bundle for the @Entities: Searching mapped entities in jar/par: bundleresource://34/ WARN 27-07

Including additional resources with OSGi bundles

淺唱寂寞╮ 提交于 2019-11-30 14:45:47
I'm working on an OSGi bundle which implements a service as a wrapper around a native executable. That is, the service runs the executable with ProcessBuilder , feeds it some data, and retrieves the result. My question is about the best way to package this bundle. The native executable includes a number of dependent data files which all must be present on disk for the tool to run. I've found plenty of references on dealing with native DLLs in OSGi, but none that address files associated with a bundle that must be present on disk rather than just retrievable through the classpath. I was

How to get classloader for a bundle in equinox?

和自甴很熟 提交于 2019-11-30 07:08:18
问题 I have read a lot of equinox code for this, but still can't figure out a non-hacky way of getting the classloader for a osgi bundle in eclipse equinox setup. Is there one? 回答1: The short answer (certainly for OSGi 4.1, not sure of 4.2) is you can't get a bundle's classloader. However the Bundle interface exposes a loadClass() method and this would allow you to write a classloader that wraps the bundle API and delegates to that loadClass() method. Or you can save some time and use Spring DM's