English 中文(简体)
JBoss ESB - 如何为文件系统提供者拥有多个输入文件夹
原标题:JBoss ESB - How to have multiple input folders for file system provider

I m using Jboss ESB for my application. I want to implement ESB that listen the input folders which are dynamically created and when the file comes do the business logic. I have paced a problem at creating the dynamic input folders for esb . I m using following codes for configure the file system provider.

<fs-message-filter
                directory="C:Project_RootProjectsFinESBuilddirsinput"
                input-suffix=".XML"
                work-suffix=".esbWorking"
                post-delete="true"
                post-directory="C:Project_RootProjectsFinESBuilddirsoutput"
                post-suffix=".ACK" 
                error-delete="false"
                error-directory="C:Project_RootProjectsFinESBuilddirserror"
                error-suffix=".IN_ERROR"
            />

如果你有什么想法,请回答我。

问题回答

配置文件中的目录属性实际上不会导致在您的文件系统中创建目录, 所以它不是“ 动态的 ” 。 JBoss ESB 假设该目录已经创建。 如果您试图部署一个目录不存在的 fs- 提供者, 您将会遇到部署错误 。

要配置有多个目录的 Fs 提供者, 只需在您的提供者配置中添加另一个

    <fs-provider name="MyFSProvider">
        <fs-bus busid="fileChannel1">
            <fs-message-filter directory="C:fileIngestion	est1"
                error-delete="false" error-directory="C:fileIngestionerror"
                input-suffix=".txt" post-delete="false" post-directory="C:fileIngestioncomplete" />

        </fs-bus>
        <fs-bus busid="fileChannel2">
            <fs-message-filter directory="C:fileIngestion	est2"
                error-delete="false" error-directory="C:fileIngestionerror"
                input-suffix=".txt" post-delete="false" post-directory="C:fileIngestioncomplete" />
        </fs-bus>
    </fs-provider>




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签