y****e 发帖数: 23939 | 1 请问怎么能include一个bundle,而这个bundle只有data modle的。其实就是这个
bundle有SOAP的contract bean的定义。我想要用这些contract bean,怎么能把它
include到我的project里面来呢?现在是我可以编译通过,但是因为deploy的时候没有
这个bundle,就会报dependency的错。而那个bundle的jar file根本就不在最后的包里
面。 |
b***i 发帖数: 3043 | 2 你什么工具?Eclipse?Export?
自己把bundle的jar放进去不行吗?
【在 y****e 的大作中提到】 : 请问怎么能include一个bundle,而这个bundle只有data modle的。其实就是这个 : bundle有SOAP的contract bean的定义。我想要用这些contract bean,怎么能把它 : include到我的project里面来呢?现在是我可以编译通过,但是因为deploy的时候没有 : 这个bundle,就会报dependency的错。而那个bundle的jar file根本就不在最后的包里 : 面。
|
x****d 发帖数: 1766 | 3 not sure what you are asking, are you saying your bundle can't be installed
into the container? what container you are using? |
y****e 发帖数: 23939 | 4 container用的Felix,用spring DM设置,我不知道怎么把这个只有data的jar加进去。
比如象这个在在bundle-context-osgi.xml中:
还有这个POM中的
org.springframework.aop
org.springframework.aop.framework
org.springframework.jdbc.core
都是做什么的啊?我想加的bundle因为只是contract data bean,不知道怎么配置才好。
installed
【在 x****d 的大作中提到】 : not sure what you are asking, are you saying your bundle can't be installed : into the container? what container you are using?
|
y****e 发帖数: 23939 | 5 我仔细检查了一下,还真的是你说的这个问题。我们用的是Felix,不过是用maven做了
个distribution的包,要把需要的jar file include进去。其实就是你说的把bundle的
jar放进去,只不多是让maven来做的。我对这个软件还不太熟,所以搞糊涂了。
谢谢楼上两位的热心回答。
【在 b***i 的大作中提到】 : 你什么工具?Eclipse?Export? : 自己把bundle的jar放进去不行吗?
|