Hi Shashika, I think this is related to the discussion in the mail thread with the subject "[Dev] [BAM] Location of the stream definitions XML file in BAM?" in @Dev group.
Hope this information will be useful! Copying @Documentation in case if there are any updates to be done in the docs. On Thu, Oct 9, 2014 at 11:34 AM, Shashika Karunatilaka <shashi...@wso2.com> wrote: > Hi, > I'm in a process of running a sample using [1], > in the samples there are pre-defined event streams, i found that those > stream definitions can be found at <CEP_HOME> > /samples/artifacts/sample-id/stream-definitions.xml. > If i tried to edit and add another attribute to > stream-definitions.xml's payloadData it gives me a error if i re run the > sample using [1]. > > {DataBridgeDS} Error redefining event stream of carbon.super: > > { > > "name": "UserLoginInputStream", > > "version": "1.0.0", > > "nickName": "login", > > "description": "Handles event stream related to user login life > cycle.", > > "payloadData": [ > > {"name": "user_id", > > "type": "STRING" > > }, > > {"name": "newly_added", > > "type": "STRING" > > } > > ] > > } > > > > org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException: > Cannot define Stream definition:{ > > "streamId": "UserLoginInputStream:1.0.0", > > "name": "UserLoginInputStream", > > "version": "1.0.0", > > "nickName": "login", > > "description": "Handles event stream related to user login life cycle.", > > "payloadData": [ > > { > > "name": "user_id", > > "type": "STRING" > > } > > ] > > }, Another Stream with same name and version exist :{ > > "streamId": "UserLoginInputStream:1.0.0", > > "name": "UserLoginInputStream", > > "version": "1.0.0", > > "nickName": "login", > > "description": "Handles event stream related to user login life cycle.", > > "payloadData": [ > > { > > "name": "user_id", > > "type": "STRING" > > } > > ] > > } > and if i add the same data, save it using management console and re run > the product using [1], it gives a similar kind of error with regard to that > newly added data. then this can be fixed by adding the same data which > added using management console to <CEP_HOME> > /samples/artifacts/sample-id/stream-definitions.xml. > I found that there is another stream definition file in > <CEP_HOME>/repository/conf/data-bridge > which updates the stream-definition when runnig the samples. > > My question is there any other way, file which stores the stream > definition other than above mentioned locations? > > [1] > https://docs.wso2.com/display/CEP310/Setting+up+CEP+Samples#SettingupCEPSamples-Prerequisites > -- > Shashika Prabath Karunatilaka, > Software Engineer, > WSO2, Inc: http://wso2.com/ > mobile : +94 77 7487792 > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Thanks & Best Regards, *Praneesha Chandrasiri* *Technical Writer* *WSO2 Inc. * *Mobile: +(94) 718156888* *E-mail: pranee...@wso2.com <pranee...@wso2.com>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev