在我的camel RouteConfig.java中,我无法连接到mongo数据库。我得到以下异常:原因: org.apache.camel.NoSuchBeanException:在注册表中找不到类型为: myDb的bean : com.mongodb.Mongo at org.apache.camel.util.CamelContextHelper.mandatoryLookup(CamelContextHelper.java:130) at org.apache.camel.component.mongodb.MongoDbComponent.createEndpoint(MongoDb
我有一个标准路由,使用ftp作为使用者端点,定义了pollStrategy并将其添加到注册表中。但是,我得到了以下错误:
Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: pollStrategy as there isn't a setter method with same type: java.lang.String nor type conversion possible: No type converter available to con
我有一种注射IFoo的类型
class MainThing
{
public MainThing(IFoo foo)
{
Console.WriteLine(foo.Name);
}
}
..。这个界面:
interface IFoo
{
string Name { get; }
}
..。IFoo的这两种实现
class Foo1 : IFoo
{
public string Name { get { return @"Foo1"; } }
}
class Foo2 : IFoo
{
public string
我是apache Camel和netty的新手。我有一个要求,如果连接到netty服务器的套接字断开,我需要记录下来。在apache camel路由构建器中,我没有任何方法来恢复这些异常,比如IOException,对等重置连接。我尝试了这些链接中的建议 https://stackoverflow.com/questions/41940482/how-can-i-detect-network-disconnection-in-apache-camel Is it possible to catch netty exception in Camel? 但没能完成这件事。如果有一些方法可以在ca
追踪:
org.apache.camel.FailedToStartRouteException: Failed to start route FromSAA because of null
at org.apache.camel.impl.engine.RouteService.setUp(RouteService.java:132)
at org.apache.camel.impl.engine.InternalRouteStartupManager.doInitRoutes(InternalRouteStartupManager.java:92)
at org.a
下面是camle示例中的一个片段。我可以获得camel上下文,但是如何获得原始的spring应用程序上下文?或者我怎么才能得到"mybean“的引用呢?
MyRouteBuilder.java:
public class MyRouteBuilder extends RouteBuilder {
public static void main(String[] args) throws Exception{
new Main().run(args);
}
public void configure() {
// set up the transform b
Apache Camel似乎不支持在其注册表中使用的任何bean。我目前正在尝试将AWS S3客户端对象/bean添加到spring配置中,但没有任何成功。bean本身被添加到注册表中,但是当camel使用客户端对象时,它会抛出一个类似以下内容的错误:
Caused by: java.lang.IllegalArgumentException: Could not find a
suitable setter for property: amazonS3Client as there isn't a setter method
with same type: java.lang.
我正在尝试连接到Azure blob容器,并在目录中创建新文件后立即上传该文件。我创建了一个blob客户端,并将URL和凭据添加到camel注册表中。但是,我没有得到豆子创造的问题。有人能帮我吗?
@Component
public class CamelConfig extends RouteBuilder {
StorageSharedKeyCredential credential = new StorageSharedKeyCredential(
"accName",
"accesskey"
);
String u
我正在尝试使用该组件连接到Corda,并使用Apache的Corda组件再次向Apache发送数据。
科达跑得很好。特别是,cardapp应用程序示例正在运行,公证- PartyA - PartyB和PartyC还活着.我可以用他们的终端查询。ActiveMQ工作正常,我用另一个输入源测试它。我还尝试连接所有四个节点的不同本地主机端口,以及Camel的corda组件网页中显示的示例。
public class CordaConnector {
public void ConnectToCorda() throws Exception {
CamelContext con