问题标签 [apache-servicemix]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1644 浏览

esb - 如何使用 ws-security 在 cxf-se 中访问用户名原则?

我终于让 Ws-Security 与 CXF-BC 和 CXF-SE 组合一起工作。我现在正在尝试从 SE 中的 soap 标头访问用户名,以检查调用操作的用户的权限和所有权,但似乎没有办法做到这一点。我知道一旦消息从 BC 传递到 SE,它只需要 SOAP 主体并包装在 JBI msg 中。无论如何要在 JBI 消息中填充肥皂标题,或者让 BC 在收到 SOAP 消息时真正转发它。我尝试在 BC 和 SE 上禁用 JBIwrapper,虽然它以 SOAP 形式发送消息,但它只发送原始 msg san 标头的正文。

我不确定为什么在 BC/SE 上这样做如此困难和复杂,因为使用 JAXWS 相对容易。

谢谢

0 投票
4 回答
9140 浏览

java - ServiceMix 4.2 教程

我尝试从 Apache ServiceMix 4.2 开始

可悲的是,主页上的教程似乎已经过时了……在 4.2 中,这些服务似乎是开箱即用的,并且配置了 karaf,而教程则谈到了将文件复制到不再存在的“hotdeploy”文件夹中在 4.2 ...

有人可以指出对 ServiceMix 4.2 有效的教程吗?我正在尝试测试两个简单的 HelloWorld Web 服务的通信,或者查看如何配置 BC 以连接 Web 服务或类似的东西,只是为了开始。将不胜感激任何帮助或指示。

0 投票
3 回答
1560 浏览

eclipse - 使用 Maven-Eclipse 覆盖本地 Maven 存储库中生成的目标?

Maven 不会覆盖我本地存储库中构建的 Eclipse 项目版本。我只更改了 META-INF/MANIFEST.MF 文件,但 Maven 似乎没有认识到这一点,因此不会覆盖本地存储库中的工件。我怎样才能强制它覆盖?这是 Maven 日志:

0 投票
2 回答
2280 浏览

activemq - 无法在 Fuse 服务组合中安装 activemq-web-console

“执行命令时出错:无法解析 URL [mvn:org.apache.activemq/activemq-web-console/5.4.0/war]。”

当我做功能时抛出:安装activemq-web-console 我正在使用fuse 4.3

0 投票
2 回答
2662 浏览

osgi - maven2 生成的在 ServiceMix 中运行的 osgi-bundle 中的 Package-Resolution (Import-Export) 问题

我在 pom.xml 中有一个使用以下配置的包:

当我将它部署到 ServiceMix(我的 OSGi 容器)时,它会起作用并被激活。在我的另一个 OSGi 包中,我尝试使用在上层包中定义的类。配置如下所示:

当我尝试激活第二个捆绑包时,我在来自 ServiceMix 的 Karaf 控制台上收到以下错误:

我还尝试使用 de.samba.common 作为导入和导出,以及每个单独的包声明。我没有得到什么?如何让第二个捆绑包看到第一个捆绑包中的类?

0 投票
1 回答
5914 浏览

spring - 在 OSGi 包中访问 Spring 上下文

我有一个 OSGi 包,它使用 bundle-context.xml 文件来初始化一个 bean。

我有一个需要获取 bean 实例的工厂类。在非 OSGI 世界中,我总是只做以下初始化上下文并获取 bean 的句柄......

但是,在 OSGI(FuseESB 4.2,Servicemix4)中,容器会自动加载 bundle-context.xml 文件并初始化 spring 上下文。如果我显式加载上下文(使用上面的代码),则会创建 2 个上下文(这很糟糕)。那么,获取相同上下文/bean 句柄的正确方法是什么?

0 投票
1 回答
2346 浏览

spring - Has anyone succesfully got Tomcat running via Spring OSGi Web in ServiceMix4?

We've been using Fuse's Apache ServiceMix version 4.2.0-fuse-02-00 for a while now for standard OSGi applications and have been fairly successful. We've also been leveraging CXF for making web services available.

Now we'd like to deploy our webapps to servicemix4 and leverage the OSGi layer for dependencies and services. However it seems that the packed in PAX Web does not support taglibs, which we've used heavily: Richfaces, facelets, etc. It seems that the springDM solution which allows for working taglibs outlined here: http://static.springsource.org/osgi/docs/current/reference/html/web.html should work, however I've had a hard time starting up the webserver, i currently get this error.

I've created 2 Fragments as the Spring documentation suggests. but they will not resolve, they remain as Installed

1) the webserver config fragment has the following fragment host defined:

and has a file META-INF/spring/extender/tomcat-deployer.xml containing

2) and a Catalina Config fragment with the following host:

and a conf/server.xml defined which is mostly a copy of a generic windows install of tomcat 6 server.xml file.

I've also been messing with the dependencies for a few days now, it has been difficult. but here are the features I've been messing with to get this far. I've also been installing the fuse-servicemix default "jpa-hibernate" feature.

I've considered switching to SpringDM but it seems like the project has been moved to Virgo which is only in incubator right now. Plus we've been mostly happy with Sericemix, including it's maven install feature.

Any insight or resources would be appreciated, thanks, Jeremy

0 投票
7 回答
46532 浏览

apache-camel - Apache Camel 和其他 ESB 产品

嘿,
如果我们有 Apache Camel,为什么还要使用 Apache ServiceMix 和 Mule 等其他解决方案?
与这些产品相比,Apache Camel 有什么不能做的吗?
何时使用 Mule/ServiceMix 以及何时使用 Camel?

0 投票
2 回答
1059 浏览

apache-camel - Apache Camel:保持路由信息完全独立于 Java 代码

首先感谢目前参与 Camel 开发的人们,感谢他们付出的所有辛勤工作。

我正在寻找一些设计建议。

架构是这样的:我有一堆 Java 类,在实例化时需要它们相互连接并使用 Apache Camel 发送消息。设计约束要求我创建一个框架,以便所有路由信息、生产者、消费者、端点等都应该成为 camel-context.xml 的一部分。

个人应该有能力修改这样的文件并完全改变现有的路线,而无需提供 Java 代码。(不会提供 Java 代码,只会提供编译后的 Jar)

例如在一个设置中, Bean A -> Bean B-> Bean C-> 文件-> 电子邮件。 在另一个 Bean B->Bean A->Bean C->ftp->file->email 我们尝试了各种方法,但是如果原始 bean 没有实现为 Java DSL,消息率非常高,因为骆驼不断调用第一个示例中的 Bean A 和第二个示例中的 Bean B(它们是源)。

Bean A 和 Bean B 发起消息并且是事件驱动的。如果发生所需的事件,bean 会发出通知消息。

我的转换非常简单,根本不需要 Java DSL 的强大功能。总而言之,我有以下问题:

1)考虑到上述限制,我是否确保所有路由信息,包括目标地址,都是骆驼上下文文件的一部分?

2)有没有我可以看的例子来保持路由信息完全独立于java代码?

3)如何确保 Camel 不会不断调用原始 bean?

4) Camel 是否不断调用原始 bean 或它发送和消息的任何 bean,而不管 bean 在整个消息队列中的位置?

我已经用尽了尝试各种方法来设置它的选项。任何帮助,将不胜感激。

0 投票
0 回答
2404 浏览

spring - 布尔返回类型不适用于 RestTemplate

我正在使用 Spring 3.0.3 RestTemplate 对部署在 servicemix ESB 中的服务进行 RESTfull 调用。服务方法返回布尔值,我无法在 RestTemplate 响应中接收到这个值。

并且正在低于错误

任何帮助是极大的赞赏。谢谢!