Re: [Dev] [Siddhi-file-io] Consuming multiple files in a directory with tailing enabled.

2017-06-28 Thread Dilini Muthumala
Hi,

If the user wants to find out which file the event came from (if there is a
use case as such), then he can create separate sources for each file.

Some problems with above approach would be:
- if the user does not know the file names before hand, above is not a
solution
- when there are many files, user will have to create many streams

Another option I can think of is introducing a transport property to
contain the file name; something like *trp:file-name.*

IMO, introducing a transport property would be better if we really have
this use case that user wants to know which the event came from.

Thank you,
Dilini


On Thu, Jun 29, 2017 at 11:44 AM, Minudika Malshan 
wrote:

> Hi all,
>
> In proposed Sindhi-io-file : source,  the user will be providing a uri of
> a directory mentioning that tailing enabled or not.
> If tailing is enabled, all the files will be consumed and the connection
> will be kept alive in order to check whether a new record added to the file
> later.
>
> In this case, files in the directory will have to be consumed in parallel
> and events will be created for each added record accordingly. Issue is,
> will it be OK to create events without a way for the user to know what file
> is related to that event?
>
> Thanks and regards!
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <+94%2071%20565%209887>
> Web :  http://wso2.com 
>



-- 
*Dilini Muthumala*
Senior Software Engineer,
WSO2 Inc.

*E-mail :* dil...@wso2.com
*Mobile: *+94 713-400-029
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple DataBases

2017-06-28 Thread Vinod Kavinda
Hi Lipsa,
Is it you need to fetch data from several DBs in your integration logic? If
that is the case, you can use data services in EI. Refer [1].

[1] - https://docs.wso2.com/display/EI600/Data+Integration+Tutorials

Regards,
Vinod

On Thu, Jun 29, 2017 at 11:43 AM, Danushka Fernando 
wrote:

> I think you are looking for [1]. You can configure multiple secondary
> userstores.
>
> [1] https://docs.wso2.com/display/ADMIN44x/Configuring+
> Secondary+User+Stores
>
> Thanks & Regards
> Danushka Fernando
> Associate Tech Lead
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
> On Thu, Jun 29, 2017 at 11:39 AM, Lipsa Pradhan  adnatesolutions.com> wrote:
>
>> User related data..
>>
>> On Thu, Jun 29, 2017 at 11:23 AM, Danushka Fernando 
>> wrote:
>>
>>> Hi Lipsa
>>> What kind of data you want to fetch from those dbs? Do you want to
>>> expose data as service or do you want to fetch some user related data from
>>> those dbs?
>>>
>>> Thanks & Regards
>>> Danushka Fernando
>>> Associate Tech Lead
>>> WSO2 inc. http://wso2.com/
>>> Mobile : +94716332729 <+94%2071%20633%202729>
>>>
>>> On Thu, Jun 29, 2017 at 11:15 AM, Lipsa Pradhan <
>>> lipsa.prad...@adnatesolutions.com> wrote:
>>>
 Hello All,

 Can we connect different databases to EI server?

 Actually, I want to fetch data from different DB such as some from
 MySQL, some from Oracle and so on.

 And one more thing, I don't want to change the default DB i.e, the H2
 DB and want to fetch data from different DBs (maybe as external DB , if
 possible).

 Regards
 Lipsa Pradhan

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware .*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Siddhi-file-io] Consuming multiple files in a directory with tailing enabled.

2017-06-28 Thread Minudika Malshan
Hi all,

In proposed Sindhi-io-file : source,  the user will be providing a uri of a
directory mentioning that tailing enabled or not.
If tailing is enabled, all the files will be consumed and the connection
will be kept alive in order to check whether a new record added to the file
later.

In this case, files in the directory will have to be consumed in parallel
and events will be created for each added record accordingly. Issue is,
will it be OK to create events without a way for the user to know what file
is related to that event?

Thanks and regards!
-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple DataBases

2017-06-28 Thread Danushka Fernando
I think you are looking for [1]. You can configure multiple secondary
userstores.

[1] https://docs.wso2.com/display/ADMIN44x/Configuring+Secondary+User+Stores

Thanks & Regards
Danushka Fernando
Associate Tech Lead
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Jun 29, 2017 at 11:39 AM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> User related data..
>
> On Thu, Jun 29, 2017 at 11:23 AM, Danushka Fernando 
> wrote:
>
>> Hi Lipsa
>> What kind of data you want to fetch from those dbs? Do you want to expose
>> data as service or do you want to fetch some user related data from those
>> dbs?
>>
>> Thanks & Regards
>> Danushka Fernando
>> Associate Tech Lead
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>> On Thu, Jun 29, 2017 at 11:15 AM, Lipsa Pradhan <
>> lipsa.prad...@adnatesolutions.com> wrote:
>>
>>> Hello All,
>>>
>>> Can we connect different databases to EI server?
>>>
>>> Actually, I want to fetch data from different DB such as some from
>>> MySQL, some from Oracle and so on.
>>>
>>> And one more thing, I don't want to change the default DB i.e, the H2 DB
>>> and want to fetch data from different DBs (maybe as external DB , if
>>> possible).
>>>
>>> Regards
>>> Lipsa Pradhan
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Multiple DataBases

2017-06-28 Thread Danushka Fernando
Hi Lipsa
What kind of data you want to fetch from those dbs? Do you want to expose
data as service or do you want to fetch some user related data from those
dbs?

Thanks & Regards
Danushka Fernando
Associate Tech Lead
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Thu, Jun 29, 2017 at 11:15 AM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> Hello All,
>
> Can we connect different databases to EI server?
>
> Actually, I want to fetch data from different DB such as some from MySQL,
> some from Oracle and so on.
>
> And one more thing, I don't want to change the default DB i.e, the H2 DB
> and want to fetch data from different DBs (maybe as external DB , if
> possible).
>
> Regards
> Lipsa Pradhan
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.1.1 - Dev studio mediator project issues

2017-06-28 Thread Sohani Weerasinghe
Thanks,
Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Thu, Jun 29, 2017 at 11:00 AM, Isuru Udana  wrote:

> Hi Sohani,
>
> We also need to include axis2 kernel (this is to get access to axis2
> message context)
>

Thanks Isuru, will test and add that as well.

>
> Thanks.
>
> On Thu, Jun 29, 2017 at 10:45 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi All,
>>
>> Based on the offline discussion had with Vijitha, shall we only have 
>> synapse-core
>> (the latest version 2.1.7-wso2v15) and commons-logging?
>>
>>   
>>   commons-logging
>>   commons-logging
>>   1.1.1
>> 
>> 
>>   org.apache.synapse
>>   synapse-core
>>   2.1.7-wso2v15
>> 
>>
>> Please confirm.
>>
>>
>> Thanks,
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774 <071%20643%209774>
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Jun 28, 2017 at 8:31 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Reported the issue at [1] and will work on fixing it
>>>
>>> [1] https://wso2.org/jira/browse/DEVTOOLEI-1117
>>>
>>> Thanks,
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774 <071%20643%209774>
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Jun 28, 2017 at 8:15 AM, Sohani Weerasinghe 
>>> wrote:
>>>
 Hi Kasun,

 Sure. will have a look


 Thanks,
 Sohani Weerasinghe
 Senior Software Engineer
 WSO2, Inc: http://wso2.com

 Mobile  : +94 716439774 <071%20643%209774>
 Blog :http://christinetechtips.blogspot.com/
 Twitter  : https://twitter.com/sohanichristine

 On Wed, Jun 28, 2017 at 12:04 AM, Kasun Indrasiri 
 wrote:

> Hi,
>
> When creating the mediator project, there are a bunch of unnecessary
> dependencies added to pom and most of the dependencies are way too old. 
> Can
> we please review this and fix, please.
>
>
>
>   
> 
>   commons-codec.wso2
>   commons-codec
>   1.4.0.wso2v1
> 
> 
>   org.apache.httpcomponents.wso2
>   httpcore
>   4.3.3.wso2v1
> 
> 
>   org.apache.woden.wso2
>   woden
>   1.0.0.M9-wso2v1
> 
> 
>   org.wso2.orbit.commons-httpclient
>   commons-httpclient
>   3.1.0.wso2v3
> 
> 
>   wsdl4j.wso2
>   wsdl4j
>   1.6.2.wso2v4
> 
> 
>   commons-logging
>   commons-logging
>   1.1.1
> 
> 
>   commons-io.wso2
>   commons-io
>   2.4.0.wso2v1
> 
> 
>   org.apache.synapse
>   synapse-core
>   2.1.7-wso2v7
> 
> 
>   org.apache.ws.commons.schema.wso2
>   XmlSchema
>   1.4.7.wso2v3
> 
> 
>   org.apache.geronimo.specs.wso2
>   geronimo-stax-api_1.0_spec
>   1.0.1.wso2v2
> 
> 
>   org.wso2.orbit.org.apache.neethi
>   neethi
>   2.0.4.wso2v5
> 
>   
>
> --
> Kasun Indrasiri
> Director - Integration Architecture
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +1 650 450 2293 <+1%20650-450-2293>
> Blog : http://kasunpanorama.blogspot.com/
>


>>>
>>
>
>
> --
> *Isuru Udana*
> Senior Technical Lead
> WSO2 Inc.; http://wso2.com
> email: isu...@wso2.com cell: +94 77 3791887 <077%20379%201887>
> blog: http://mytecheye.blogspot.com/
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Multiple DataBases

2017-06-28 Thread Lipsa Pradhan
Hello All,

Can we connect different databases to EI server?

Actually, I want to fetch data from different DB such as some from MySQL,
some from Oracle and so on.

And one more thing, I don't want to change the default DB i.e, the H2 DB
and want to fetch data from different DBs (maybe as external DB , if
possible).

Regards
Lipsa Pradhan
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbon-file-transport] What is the order of consuming files in a directory?

2017-06-28 Thread Minudika Malshan
Hi Amjadh,

Got it. Thanks..

BR


On Thu, Jun 29, 2017 at 8:47 AM, Amjadh Ifthikar  wrote:

> Hi Minudika,
>
> In the file system transport, the following properties can be configured.
>
> "fileSortAttribute" -> "name", "size", "lastModifiedTimestamp"
> "fileSortAscending" -> "true", "false"
>
> Using these properties, you can configure sorting of the files. Please
> note when using the file system transport, do not make the property
> "parallel" -> "true" because when processing files in a parallel manner,
> the order may change.
>
> Thanks,
> Amjadh Ifthikar.
>
> On Wed, Jun 28, 2017 at 6:16 PM, Minudika Malshan 
> wrote:
>
>> Hi,
>>
>> In carbon file transport, consuming files in a directory, how will it
>> determine the order of files in transport level? For example, sorted by
>> name, date of creation etc..
>>
>> Thanks and regards!
>>
>> --
>> *Minudika Gammanpila*
>> Software Engineer - WSO2
>>
>> Email   :  minud...@wso2.com
>> Mobile :  +94715659887 <+94%2071%20565%209887>
>> Web :  http://wso2.com 
>>
>
>
>
> --
> Amjadh Ifthikar
> Trainee Software Engineer
> WSO2 Inc.
> Mobile: +94777459181 <+94%2077%20745%209181>
>



-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.1.1 - Dev studio mediator project issues

2017-06-28 Thread Isuru Udana
Hi Sohani,

We also need to include axis2 kernel (this is to get access to axis2
message context)

Thanks.

On Thu, Jun 29, 2017 at 10:45 AM, Sohani Weerasinghe 
wrote:

> Hi All,
>
> Based on the offline discussion had with Vijitha, shall we only have 
> synapse-core
> (the latest version 2.1.7-wso2v15) and commons-logging?
>
>   
>   commons-logging
>   commons-logging
>   1.1.1
> 
> 
>   org.apache.synapse
>   synapse-core
>   2.1.7-wso2v15
> 
>
> Please confirm.
>
>
> Thanks,
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774 <071%20643%209774>
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Jun 28, 2017 at 8:31 AM, Sohani Weerasinghe 
> wrote:
>
>> Reported the issue at [1] and will work on fixing it
>>
>> [1] https://wso2.org/jira/browse/DEVTOOLEI-1117
>>
>> Thanks,
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774 <071%20643%209774>
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Jun 28, 2017 at 8:15 AM, Sohani Weerasinghe 
>> wrote:
>>
>>> Hi Kasun,
>>>
>>> Sure. will have a look
>>>
>>>
>>> Thanks,
>>> Sohani Weerasinghe
>>> Senior Software Engineer
>>> WSO2, Inc: http://wso2.com
>>>
>>> Mobile  : +94 716439774 <071%20643%209774>
>>> Blog :http://christinetechtips.blogspot.com/
>>> Twitter  : https://twitter.com/sohanichristine
>>>
>>> On Wed, Jun 28, 2017 at 12:04 AM, Kasun Indrasiri 
>>> wrote:
>>>
 Hi,

 When creating the mediator project, there are a bunch of unnecessary
 dependencies added to pom and most of the dependencies are way too old. Can
 we please review this and fix, please.



   
 
   commons-codec.wso2
   commons-codec
   1.4.0.wso2v1
 
 
   org.apache.httpcomponents.wso2
   httpcore
   4.3.3.wso2v1
 
 
   org.apache.woden.wso2
   woden
   1.0.0.M9-wso2v1
 
 
   org.wso2.orbit.commons-httpclient
   commons-httpclient
   3.1.0.wso2v3
 
 
   wsdl4j.wso2
   wsdl4j
   1.6.2.wso2v4
 
 
   commons-logging
   commons-logging
   1.1.1
 
 
   commons-io.wso2
   commons-io
   2.4.0.wso2v1
 
 
   org.apache.synapse
   synapse-core
   2.1.7-wso2v7
 
 
   org.apache.ws.commons.schema.wso2
   XmlSchema
   1.4.7.wso2v3
 
 
   org.apache.geronimo.specs.wso2
   geronimo-stax-api_1.0_spec
   1.0.1.wso2v2
 
 
   org.wso2.orbit.org.apache.neethi
   neethi
   2.0.4.wso2v5
 
   

 --
 Kasun Indrasiri
 Director - Integration Architecture
 WSO2, Inc.; http://wso2.com
 lean.enterprise.middleware

 cell: +1 650 450 2293 <+1%20650-450-2293>
 Blog : http://kasunpanorama.blogspot.com/

>>>
>>>
>>
>


-- 
*Isuru Udana*
Senior Technical Lead
WSO2 Inc.; http://wso2.com
email: isu...@wso2.com cell: +94 77 3791887
blog: http://mytecheye.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] EI 6.1.1 - Dev studio mediator project issues

2017-06-28 Thread Sohani Weerasinghe
Hi All,

Based on the offline discussion had with Vijitha, shall we only have
synapse-core
(the latest version 2.1.7-wso2v15) and commons-logging?

  
  commons-logging
  commons-logging
  1.1.1


  org.apache.synapse
  synapse-core
  2.1.7-wso2v15


Please confirm.


Thanks,
Sohani Weerasinghe
Senior Software Engineer
WSO2, Inc: http://wso2.com

Mobile  : +94 716439774
Blog :http://christinetechtips.blogspot.com/
Twitter  : https://twitter.com/sohanichristine

On Wed, Jun 28, 2017 at 8:31 AM, Sohani Weerasinghe  wrote:

> Reported the issue at [1] and will work on fixing it
>
> [1] https://wso2.org/jira/browse/DEVTOOLEI-1117
>
> Thanks,
> Sohani Weerasinghe
> Senior Software Engineer
> WSO2, Inc: http://wso2.com
>
> Mobile  : +94 716439774 <071%20643%209774>
> Blog :http://christinetechtips.blogspot.com/
> Twitter  : https://twitter.com/sohanichristine
>
> On Wed, Jun 28, 2017 at 8:15 AM, Sohani Weerasinghe 
> wrote:
>
>> Hi Kasun,
>>
>> Sure. will have a look
>>
>>
>> Thanks,
>> Sohani Weerasinghe
>> Senior Software Engineer
>> WSO2, Inc: http://wso2.com
>>
>> Mobile  : +94 716439774 <071%20643%209774>
>> Blog :http://christinetechtips.blogspot.com/
>> Twitter  : https://twitter.com/sohanichristine
>>
>> On Wed, Jun 28, 2017 at 12:04 AM, Kasun Indrasiri  wrote:
>>
>>> Hi,
>>>
>>> When creating the mediator project, there are a bunch of unnecessary
>>> dependencies added to pom and most of the dependencies are way too old. Can
>>> we please review this and fix, please.
>>>
>>>
>>>
>>>   
>>> 
>>>   commons-codec.wso2
>>>   commons-codec
>>>   1.4.0.wso2v1
>>> 
>>> 
>>>   org.apache.httpcomponents.wso2
>>>   httpcore
>>>   4.3.3.wso2v1
>>> 
>>> 
>>>   org.apache.woden.wso2
>>>   woden
>>>   1.0.0.M9-wso2v1
>>> 
>>> 
>>>   org.wso2.orbit.commons-httpclient
>>>   commons-httpclient
>>>   3.1.0.wso2v3
>>> 
>>> 
>>>   wsdl4j.wso2
>>>   wsdl4j
>>>   1.6.2.wso2v4
>>> 
>>> 
>>>   commons-logging
>>>   commons-logging
>>>   1.1.1
>>> 
>>> 
>>>   commons-io.wso2
>>>   commons-io
>>>   2.4.0.wso2v1
>>> 
>>> 
>>>   org.apache.synapse
>>>   synapse-core
>>>   2.1.7-wso2v7
>>> 
>>> 
>>>   org.apache.ws.commons.schema.wso2
>>>   XmlSchema
>>>   1.4.7.wso2v3
>>> 
>>> 
>>>   org.apache.geronimo.specs.wso2
>>>   geronimo-stax-api_1.0_spec
>>>   1.0.1.wso2v2
>>> 
>>> 
>>>   org.wso2.orbit.org.apache.neethi
>>>   neethi
>>>   2.0.4.wso2v5
>>> 
>>>   
>>>
>>> --
>>> Kasun Indrasiri
>>> Director - Integration Architecture
>>> WSO2, Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> cell: +1 650 450 2293 <+1%20650-450-2293>
>>> Blog : http://kasunpanorama.blogspot.com/
>>>
>>
>>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [carbon-file-transport] What is the order of consuming files in a directory?

2017-06-28 Thread Amjadh Ifthikar
Hi Minudika,

In the file system transport, the following properties can be configured.

"fileSortAttribute" -> "name", "size", "lastModifiedTimestamp"
"fileSortAscending" -> "true", "false"

Using these properties, you can configure sorting of the files. Please note
when using the file system transport, do not make the property "parallel"
-> "true" because when processing files in a parallel manner, the order may
change.

Thanks,
Amjadh Ifthikar.

On Wed, Jun 28, 2017 at 6:16 PM, Minudika Malshan  wrote:

> Hi,
>
> In carbon file transport, consuming files in a directory, how will it
> determine the order of files in transport level? For example, sorted by
> name, date of creation etc..
>
> Thanks and regards!
>
> --
> *Minudika Gammanpila*
> Software Engineer - WSO2
>
> Email   :  minud...@wso2.com
> Mobile :  +94715659887 <+94%2071%20565%209887>
> Web :  http://wso2.com 
>



-- 
Amjadh Ifthikar
Trainee Software Engineer
WSO2 Inc.
Mobile: +94777459181
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Override default log4.properties in MSF4J

2017-06-28 Thread Godwin Shrimal
Hi Jochen,

You can pass log4j commandline paramater when running the fat jar as
follows to apply the og4j.properties.

-Dlog4j.configuration=file:"$CARBON_HOME"/conf/log4j.properties


Thanks
Godwin


On Tue, Jun 27, 2017 at 2:17 AM, Jochen Traunecker <
jochen.traunec...@googlemail.com> wrote:

> Hi,
>
> thanks for the hints and it works adding a log4j.xml into /resources but
> log4j.properties seems to get ignored. Maybe I have some typo somewhere.
>
> Regards,
> Jochen
>
> 2017-06-27 9:09 GMT+02:00 Gottfried Szing :
>
>> Hi Jochen
>>
>> Did you try the possibilities that come out-of-the-box with log4j?
>>
>> https://logging.apache.org/log4j/2.x/manual/configuration.ht
>> ml#Automatic_Configuration
>>
>> br
>>
>> On 27/06/2017 09:02, Thomas LEGRAND wrote:
>>
>>> Hello,
>>>
>>> Have you tried to put a log4j.xml configuration file in your
>>> src/main/resources directory? For example, here is mine to trigger the
>>> DEBUG mode:
>>>
>>> 
>>> >> xmlns:log4j='http://jakarta.apache.org/log4j/'>
>>>
>>> 
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>> 
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>> 2017-06-26 21:54 GMT+02:00 Jochen Traunecker <
>>> jochen.traunec...@googlemail.com >> lemail.com>>:
>>>
>>> Hi,
>>>
>>> I'm wondering if there is a way to introduce a custom
>>> log4j.properties file instead of default one [1] for
>>> MSF4J in combination with fatjar?
>>>
>>> Thanks,
>>> Jochen
>>>
>>> [1] https://github.com/wso2/msf4j/tree/master/core/src/main/reso
>>> urces
>>> 
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org 
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev <
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev>
>>>
>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>
>
> --
> Gruss / regards
>
> Jochen Traunecker
> mailto: jochen.traunec...@gmail.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Godwin Amila Shrimal*
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D *
twitter: https://twitter.com/godwinamila

___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues with deploying WSO2 APIM 2.1.0 in Google Cloud

2017-06-28 Thread Dileepa Jayakody
Hi Pubudu,

Thank you very much for the pointer. We will try out the new kubernetes
artifacts and get back to you with our findings.

Regards,
Dileepa

On Wed, Jun 28, 2017 at 8:00 PM, Pubudu Gunatilaka  wrote:

> Hi Dileepa,
>
> What you have followed is very old and we haven't tested those Kubernetes
> artifacts with APIM 2.1.0. We are currently in the process of updating
> Kubernetes artifacts for the APIM 2.1.0. You can find the latest artifacts
> in [1]. Please follow this and let us know if you find any issues.
>
> The reason for the above behavior is that it keeps waiting for the service
> to be active. Do you see any wso2am pods in the deployment? Kubernetes data
> model has been changed and it is always better to try the latest artifacts
> as we have tested some of the patterns with the new deployment model [1].
>
> [1] - https://github.com/wso2/kubernetes-apim/tree/2.1.0
>
> Thank you!
>
> On Tue, Jun 27, 2017 at 7:00 PM, Dileepa Jayakody <
> dileepajayak...@gmail.com> wrote:
>
>> Hi All,
>>
>> We have been following the kubernetes deployment guide for WSO2 products
>> [1] to deploy APIM 2.1.0 in kubernetes on Google cloud. We have also
>> followed the blog post [2] as a reference.
>> When I execute the final deploy command by running
>> $KUBERNETES_HOME/wso2am/deploy.sh it keeps on idling at message : *Waiting
>> wso2am to launch on http://104.198.75.29:32003 *
>>
>> When we try to access above given URL, we get a connection time-out.
>> Further we have also created firewall rules in GC to open ports :
>> 9443,9763,8280,8243.
>> But cannot access any of these endpoints, and can't access the carbon mgt
>> console.
>>
>> Also in the kubernetes service deployed in GC we can't see any external
>> endpoint exposed.
>>
>> Appreciate if someone can please give us any tip to resolve this and get
>> the deployment working.
>>
>> Regards,
>> Dileepa
>>
>>
>> [1] https://docs.wso2.com/display/KA100/Deploying+and+Undeployin
>> g+a+WSO2+Product+on+Kubernetes
>> [2] http://rushmin.blogspot.com/2016/11/deploying-wso2-products-
>> in-google.html
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Pubudu Gunatilaka*
> Committer and PMC Member - Apache Stratos
> Software Engineer
> WSO2, Inc.: http://wso2.com
> mobile : +94774078049 <%2B94772207163>
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issue in the deployment of WSO2am docker image in to aws EC2 container service

2017-06-28 Thread Pubudu Gunatilaka
HI Ayesh,

Do you see any errors in the container logs?

Thank you!

On Wed, Jun 28, 2017 at 12:13 PM, Ayeshmantha Perera <
akayeshman...@gmail.com> wrote:

> Hi All
>
> We deploy the wso2am 2.1.0 docker image which was taken from the wso2
> docker hub in aws EC2 container service.And also followed the [1] as a
> referece on deploying
>
> After creating the ECS service which is exposing the management console
> outside.It gives a 504 bad gateway error.And also it shows that non of the
> instances are healthy in the region.I deployed it on 4 regions in all
> regions it was the same
>
> Appreciate if someone can help us to resolve this deployment issue
>
> Regards,
> Ayeshmantha
>
> [1] https://medium.com/containermind/how-to-deploy-
> wso2-api-manager-on-amazon-ecs-bdc5a8d22844
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Issues with deploying WSO2 APIM 2.1.0 in Google Cloud

2017-06-28 Thread Pubudu Gunatilaka
Hi Dileepa,

What you have followed is very old and we haven't tested those Kubernetes
artifacts with APIM 2.1.0. We are currently in the process of updating
Kubernetes artifacts for the APIM 2.1.0. You can find the latest artifacts
in [1]. Please follow this and let us know if you find any issues.

The reason for the above behavior is that it keeps waiting for the service
to be active. Do you see any wso2am pods in the deployment? Kubernetes data
model has been changed and it is always better to try the latest artifacts
as we have tested some of the patterns with the new deployment model [1].

[1] - https://github.com/wso2/kubernetes-apim/tree/2.1.0

Thank you!

On Tue, Jun 27, 2017 at 7:00 PM, Dileepa Jayakody  wrote:

> Hi All,
>
> We have been following the kubernetes deployment guide for WSO2 products
> [1] to deploy APIM 2.1.0 in kubernetes on Google cloud. We have also
> followed the blog post [2] as a reference.
> When I execute the final deploy command by running 
> $KUBERNETES_HOME/wso2am/deploy.sh
> it keeps on idling at message : *Waiting wso2am to launch on
> http://104.198.75.29:32003 *
>
> When we try to access above given URL, we get a connection time-out.
> Further we have also created firewall rules in GC to open ports :
> 9443,9763,8280,8243.
> But cannot access any of these endpoints, and can't access the carbon mgt
> console.
>
> Also in the kubernetes service deployed in GC we can't see any external
> endpoint exposed.
>
> Appreciate if someone can please give us any tip to resolve this and get
> the deployment working.
>
> Regards,
> Dileepa
>
>
> [1] https://docs.wso2.com/display/KA100/Deploying+and+
> Undeploying+a+WSO2+Product+on+Kubernetes
> [2] http://rushmin.blogspot.com/2016/11/deploying-wso2-
> products-in-google.html
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] AWS Cluster Mode Certificate Issue

2017-06-28 Thread Júnior
Hi,

I am trying to setup a WSO2 Cluster using aws mode but I am receiving this
error:

javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
{com.hazelcast.cluster.impl.TcpIpJoinerOverAWS}
com.hazelcast.core.HazelcastException: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
at com.hazelcast.util.ExceptionUtil.rethrow(ExceptionUtil.java:67)

Do you know which certificate I need to add to the truststore?

Thanks,

-- 
Francisco Ribeiro
*SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Endpoint of the deployed BPMN

2017-06-28 Thread Milinda Perera
Hello Lipsa,

When you deploy a BPMN you won't get specific service get exposed (per BPMN
process) as in WS-BPEL, WS-Humantask in WSO2 EI. To interact (start a
process instance, retrieve tasks, update variable, etc) with deployed
process, you have to use BPMN Rest API. You can find more information on
BPMN Rest API in [1]. Further, you can use BPMN-Explorer[2] web app to
interact with  BPMN processes. Hope you have followed the instructions in
[3].

[1] https://docs.wso2.com/display/BPS360/BPMN+REST+API
[2] https://docs.wso2.com/display/EI611/Using+the+BPMN+Explorer
[3] https://docs.wso2.com/display/EI611/Creating+a+BPMN+Process

Thanks,
Milinda

On Wed, Jun 28, 2017 at 6:20 PM, Lipsa Pradhan <
lipsa.prad...@adnatesolutions.com> wrote:

> Hello guys
>
> I am using WSO2 EI. I have designed a bpmn in developer studio and
> deployed it on the EI server. Now I'm unable to find any endpoint of that
> BPMN.
>
> Where can I get or find either the endpoint or the service URL of the
> deployed BPMN?
>
> Regards
> Lipsa Pradhan
> Intern
> Adnate IT Solutions
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Milinda Perera
Senior Software Engineer;
WSO2 Inc. http://wso2.com ,
Mobile: (+94) 714 115 032
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Weird behaviour of the Call mediator and a HTTP endpoint

2017-06-28 Thread Thomas LEGRAND
Hello,

I have deployed a little RESTweb service on my machine and I try to
communicate with it to retrieve a list of parameters via the GET method.
The endpoint of this little web service is
http://localhost:9090/ParamsPortal/Parameter.

So, I created a template which will call this little endpoint but it is
like something, somewhere, is blocking the request and answer on behalf of
my web service.

Here is my call to the web service:

 name="REST_URL_POSTFIX" scope="axis2"/>
>  expression="get-property('registry', 'conf:/parameterServiceEndpoint')"
> name="uri.var.parameterServiceEndpoint" scope="default" type="STRING"/>
>
> 
> 
>  uri-template="{uri.var.parameterServiceEndpoint}"/>
> 
> 



 Then, here is what it is displayed in the log when I activate the DEBUG
mode for the wire thingies:

[2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Connection: keep-alive
> [2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Upgrade-Insecure-Requests: 1
> [2017-06-28 15:09:43,369] [] DEBUG - headers http-incoming-134 >>
> Cache-Control: max-age=0
> [2017-06-28 15:09:43,374] []  INFO - LogMediator To:
> /MyApi/lala?id=1, MessageID:
> urn:uuid:faee257d-86ab-43d3-8c54-43754004f120, Direction: request,
> uri.var.parameterServiceEndpoint =
> http://localhost:9090/ParamsPortal/Parameter
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 << HTTP/1.1
> 202 Accepted
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 << Date:
> Wed, 28 Jun 2017 13:09:43 GMT
> [2017-06-28 15:09:43,396] [] DEBUG - headers http-incoming-134 <<
> Transfer-Encoding: chunked
> [2017-06-28 15:09:43,397] [] DEBUG - headers http-incoming-134 <<
> Connection: keep-alive
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "HTTP/1.1 202 Accepted[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Date: Wed, 28 Jun 2017 13:09:43 GMT[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Transfer-Encoding: chunked[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "Connection: keep-alive[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "0[\r][\n]"
> [2017-06-28 15:09:43,397] [] DEBUG - wire HTTP-Listener I/O dispatcher-4
> << "[\r][\n]"


I even tried with the Header mediator to change the To parameter but it is
always the same things: I have a 202 Accepted with an empty content whereas
my web service should return a 200 OK.

Can you help me, please?

Regards,

Thomas
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Error when setting up API Manager with MySQL

2017-06-28 Thread Júnior
Hi Thomas,

I have renamed the folder during the installation process and it worked.

Thanks,

2017-06-28 3:07 GMT-03:00 Thomas LEGRAND :

> Hello,
>
> Have you tried to execute manually this SQL script on your DBMS and start
> the AM without the -Dsetup?
>
>
> Le mercredi 28 juin 2017, Júnior  a écrit :
>
>> Hi,
>>
>> I have setup the CarbonDB to use the MySQL, and changed the identity.xml
>> to use the Carbon db.
>>
>> But when we run the -Dsetup we receive this error:
>>
>>
>> [
>>
>> 2017-06-27 22:53:51,644]  INFO - APIKeyMgtServiceComponent Started
>> thrift key mgt service at port:10398
>> [2017-06-27 22:53:51,799] ERROR - IdentityCoreServiceComponent Error
>> occurred while populating identity configuration properties
>> org.wso2.carbon.identity.base.IdentityRuntimeException:
>> java.io.FileNotFoundException: 
>> E:\soft\wso2am-2.1.0\bin\..\dbscripts\identity\mysql.sql
>> (The system cannot find the path specified)
>> at org.wso2.carbon.identity.base.IdentityRuntimeException.error
>> (IdentityRuntimeException.java:71)
>> at org.wso2.carbon.identity.core.persistence.IdentityDBInitiali
>> zer.executeSQLScript(IdentityDBInitializer.java:273)
>> at org.wso2.carbon.identity.core.persistence.IdentityDBInitiali
>> zer.createIdentityDatabase(IdentityDBInitializer.java:141)
>> at org.wso2.carbon.identity.core.persistence.JDBCPersistenceMan
>> ager.initializeDatabase(JDBCPersistenceManager.java:112)
>> at org.wso2.carbon.identity.core.internal.IdentityCoreServiceCo
>> mponent.activate(IdentityCoreServiceComponent.java:130)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
>> ssorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>> thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponent.activ
>> ate(ServiceComponent.java:260)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.a
>> ctivate(ServiceComponentProp.java:146)
>> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.b
>> uild(ServiceComponentProp.java:345)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nt(InstanceProcess.java:620)
>> at org.eclipse.equinox.internal.ds.InstanceProcess.buildCompone
>> nts(InstanceProcess.java:197)
>> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolve
>> r.java:343)
>> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SC
>> RManager.java:222)
>> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceLis
>> tener.serviceChanged(FilteredServiceListener.java:107)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>> ispatchEvent(BundleContextImpl.java:861)
>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>> nt(EventManager.java:230)
>> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEv
>> entSynchronous(ListenerQueue.java:148)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>> blishServiceEventPrivileged(ServiceRegistry.java:819)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.pu
>> blishServiceEvent(ServiceRegistry.java:771)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistratio
>> nImpl.register(ServiceRegistrationImpl.java:130)
>> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.re
>> gisterService(ServiceRegistry.java:214)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>> egisterService(BundleContextImpl.java:433)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.r
>> egisterService(BundleContextImpl.java:451)
>> at org.wso2.carbon.core.init.CarbonServerManager.initializeCarb
>> on(CarbonServerManager.java:514)
>> at org.wso2.carbon.core.init.CarbonServerManager.removePendingI
>> tem(CarbonServerManager.java:290)
>> at org.wso2.carbon.core.init.PreAxis2ConfigItemListener.bundleC
>> hanged(PreAxis2ConfigItemListener.java:118)
>> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.d
>> ispatchEvent(BundleContextImpl.java:847)
>> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve
>> nt(EventManager.java:230)
>> at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread
>> .run(EventManager.java:340)
>> *Caused by: java.io.FileNotFoundException:
>> E:\soft\wso2am-2.1.0\bin\..\dbscripts\identity\mysql.sql (The system cannot
>> find the path specified)*
>> at java.io.FileInputStream.open0(Native Method)
>> at java.io.FileInputStream.open(FileInputStream.java:195)
>> at java.io.FileInputStream.(FileInputStream.java:138)
>> at java.io.FileInputStream.(FileInputStream.java:93)
>> at org.wso2.carbon.ident

[Dev] Endpoint of the deployed BPMN

2017-06-28 Thread Lipsa Pradhan
Hello guys

I am using WSO2 EI. I have designed a bpmn in developer studio and deployed
it on the EI server. Now I'm unable to find any endpoint of that BPMN.

Where can I get or find either the endpoint or the service URL of the
deployed BPMN?

Regards
Lipsa Pradhan
Intern
Adnate IT Solutions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [carbon-file-transport] What is the order of consuming files in a directory?

2017-06-28 Thread Minudika Malshan
Hi,

In carbon file transport, consuming files in a directory, how will it
determine the order of files in transport level? For example, sorted by
name, date of creation etc..

Thanks and regards!

-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] To invoke a human task from a BPEL

2017-06-28 Thread Lipsa Pradhan
Hello Everyone

I want to invoke a Human task (Remote Task of bpel4people) in a BPEL but
the docs available explain how to do it after deploying the samples on the
EI server, not from the scratch.

Is there any sort of doc available which explain everything from designing
a bpel, adding a human task to deploying it on the server?

Thanks in advance!

Regards
Lipsa Pradhan
Intern
Adnate IT Solutions
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Carbon-transport] Requesting a release of carbon file transport

2017-06-28 Thread Minudika Malshan
Hi,

I am implementing a file transport for Siddhi. For that I need to use the
dependency of carbon file transport.

Since we have scheduled to ship this feature with our next milestone
release, will it be possible to get the carbon file transport released?

Thanks and regards!

-- 
*Minudika Gammanpila*
Software Engineer - WSO2

Email   :  minud...@wso2.com
Mobile :  +94715659887
Web :  http://wso2.com 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev