WSO2 ESB和CEP作为BAM配置文件 - 根本没有集成

时间:2014-07-12 10:19:44

标签: integration wso2esb wso2bam wso2cep

我在CEP中使用WSO2Event Adapter配置了一个Stream:

<?xml version="1.0" encoding="UTF-8"?>
<inputEventAdaptor name="CEP_test_input_adapter" statistics="disable" trace="disable" type="wso2event" xmlns="http://wso2.org/carbon/eventadaptormanager"/>

with Event builder:

<?xml version="1.0" encoding="UTF-8"?>
<eventBuilder name="CEP_test_builder" statistics="enable" trace="enable" xmlns="http://wso2.org/carbon/eventbuilder">
<from eventAdaptorName="CEP_test_input_adapter" eventAdaptorType="wso2event">
    <property name="stream">CEP_test_stream2</property>
    <property name="version">1.0.0</property>
</from>
<mapping customMapping="disable" type="wso2event"/>
<to streamName="CEP_test_stream2" version="1.0.0"/>
</eventBuilder>

使用Stream def:

{
  "name": "CEP_test_stream2",
  "version": "1.0.0",
  "nickName": "CEP_test2",
  "description": "CEP_test2",
  "metaData": [
    {
      "name": "tenant_id",
      "type": "INT"
    },
    {
      "name": "http_method",
      "type": "STRING"
    },
    {
      "name": "character_set_encoding",
      "type": "STRING"
    },
    {
      "name": "remote_address",
      "type": "STRING"
    },
    {
      "name": "transport_in_url",
      "type": "STRING"
    },
    {
      "name": "message_type",
      "type": "STRING"
    },
    {
      "name": "remote_host",
      "type": "STRING"
    },
    {
      "name": "service_prefix",
      "type": "STRING"
    },
    {
      "name": "host",
      "type": "STRING"
    }
  ],
  "correlationData": [
    {
      "name": "activity_id",
      "type": "STRING"
    }
  ],
  "payloadData": [
    {
      "name": "message_direction",
      "type": "STRING"
    },
    {
      "name": "service_name",
      "type": "STRING"
    },
    {
      "name": "operation_name",
      "type": "STRING"
    },
    {
      "name": "message_id",
      "type": "STRING"
    },
    {
      "name": "timestamp",
      "type": "LONG"
    },
    {
      "name": "t1",
      "type": "STRING"
    },
    {
      "name": "t2",
      "type": "STRING"
    },
    {
      "name": "t3",
      "type": "STRING"
    }
  ]
}

当我通过&#34;事件模拟器&#34;它通过CEP确定但是当我尝试通过ESB发送事件时,CEP上没有任何事情发生:

我为我的CEP配置了ESB BAM配置文件,转储头转储主体和属性t1,t2,t3(与CEP中的def相同)。连接正常,因为当我克服&#34;测试服务器&#34;弹出窗口&#34;已成功连接到BAM服务器。&#34;

我已在代理人代理中添加了我的序列:

<bam>
    <serverProfile name="CEP_test">
        <streamConfig name="CEP_test_stream2" version="1.0.0"/>
    </serverProfile>
</bam>

尝试代理后,我在日志结果中:

TID: [0] [ESB] [2014-07-12 11:47:24,126]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  CEP: = BEFORE BAM PROFILE {org.apache.synapse.mediators.builtin.LogMediator}
TID: [0] [ESB] [2014-07-12 11:47:24,136]  INFO {org.wso2.carbon.mediator.bam.Stream} -  Data Publisher Created. {org.wso2.carbon.mediator.bam.Stream}
TID: [0] [ESB] [2014-07-12 11:47:24,255]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  CEP: = AFTER BAM PROFILE {org.apache.synapse.mediators.builtin.LogMediator}

但是在CEP没有事件,为什么?有任何想法吗?我做错了什么?谢谢你的帮助!:)

0 个答案:

没有答案