我开发了一个在karaf中使用camel smpp路由的项目。
在开始的时候,我使用spring来编写我的骆驼路线。这样做效果很好。
后来,我尝试使用java DSL来编写camel smpp路由,但我所做的一切都导致了以下结果。
org.apache.camel.FailedToCreateRouteException: Failed to create route route1: Route(route1)[[From[smpp://username@localhost:2775?pa... because of Failed to resolve endpoint: smpp://use
我最近在合并了一个不相关的更改后遇到了Camel的情况,这导致了堆栈跟踪:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingM
我想用Camel发送一条消息到JMS队列中。主体是字节数组,我希望Camel将其转换为javax.jms.BytesMessage并发送它,没有问题,但我得到以下警告。
Warning
[org.apache.camel.component.jms.JmsBinding] (Camel (camel) thread #0 -
JmsConsumer[devrechTransactionsQueue@z4smq_4001)
Cannot determine specific JmsMessage type to use from body class.
Will use generic Jm
我正试着用KARAF来构建驼峰式dsl,但这种大摇大摆似乎行不通。 javax.xml.bind.JAXBException: "org.apache.camel.model.cloud" doesnt contain ObjectFactory.class or jaxb.index
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:260) ~[jaxb-runtime-2.3.3.jar:2.3.3]
at com.sun.xml.bind.v2.JAXBCon
我正在尝试将CXF restful web服务与Apache Camel集成。当我向我的web服务发送请求时,我得到了以下异常:
Caused by: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.cxf.message.MessageContentsList to the required type: java.io.InputStream with value [null]
at org.apache.
我正在尝试访问Camel上的REST端点,并将数据转换为类(为了简化和测试,将该类转换为JSON字符串),并将其发送到本地服务器。我可以让它做所有的事情,除了最后的帖子,似乎只是悬着。
应用程序:
@SpringBootApplication
public class App {
/**
* A main method to start this application.
*/
public static void main(String[] args) {
SpringApplication.run(App.class, args);
我想结合Akka,Apache,Spring,并且不知道如何在同一个项目中利用这三种东西。
我成功地
1. write some working code with akka, akka-camel extension and camel routes(Java DSL)
2. use camel and spring (use java DSL but spring for transactions and etc..)
现在我需要把1和2结合起来。有人能建议我实现这一点的最简单的方法吗?
编辑有人说AKKA不再支持,因为下面的链接中的对象实例化存在冲突
此外,也有一个类似的问题,没有适当的
我已经查过这个了,还没有找到一个问题。我正在创建一个骆驼路径,它监视shapefiles文件夹(.shp)。下面的代码是实现骆驼路线的代码。
final String filePath = settings.getSetting(GMTI_VOCAB.SHAPEFILE_PATH);
logger.debug("filePath={}", filePath);
final File file = new File(filePath);
if (file.mkdir())
{
logger.warn("Shapefile path did not exist. Cre