Re: [Dev] Schedule Script Execution not persisting change

2014-02-25 Thread Shani Ranasinghe
Hi,

So does that mean that Simple Scheduling does not work?


On Tue, Feb 25, 2014 at 8:26 PM, Maninda Edirisooriya wrote:

> Hi Shani,
>
> Actually this is a kind of known problem we have. Either you have
> configured with the cron expression or from the selection UI it would be
> saved as a cron expression. As we are not saving whether it has come from a
> pure cron or from the UI it cannot distinguish when loading the schedule
> back. Anyway if it was unscheduled it would be shown correctly when
> loading. So there would not be a big problem but some difficulty for the
> user, as he has to understand the cron. We hope to fix this in future.
>
>
>
> *Maninda Edirisooriya*
> Software Engineer
>
> *WSO2, Inc. *lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *Phone* : +94 777603226
>
>
> On Wed, Feb 26, 2014 at 5:24 AM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> I have a script in BAM, and is trying to schedule it (via Simple
>> Scheduling) to run every minute (for testing purposes). Once I save the
>> change the following is shown in the console and when I re-click the
>> Schedule script option of the script it does not show my selection, but
>> shows the default(Cron expression). Is this the expected behavior? Or have
>> I been missing something?
>>
>> If it is the behavior, should we not have the change (the schedule
>> selected by the user for the script) shown to the user when the schedule
>> script is re-clicked? Also how does one figure out what the scheduling is?
>> and If it is scheduled or not?
>>
>> *Console output *
>>
>> [2014-02-25 16:50:42,216]  INFO
>> {org.wso2.carbon.analytics.hive.ui.servlet.SaveCronExpression} -  0 1 * ? *
>> * *
>> [2014-02-25 16:50:42,251]  INFO
>> {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
>> deleted: [-1234][HIVE_TASK][simple_stock_quote_service]
>> [2014-02-25 16:50:42,258]  INFO
>> {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
>> scheduled: [-1234][HIVE_TASK][simple_stock_quote_service
>> --
>> Thanks and Regards
>> *, Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 governance : Service performance metrics management

2014-02-25 Thread Isuruwan Herath
Hi Waruna,

G-Reg currently do not support OOTB run-time governance based on service
performance matrices. In fact, we are working on this feature(#2337) at the
moment with a model based on SLAs and defining thresholds in G-Reg and
enabling to enforce them by monitored service performance KPIs.

Regards,
Isuruwan


On Wed, Feb 26, 2014 at 10:58 AM, Waruna Jayaweera  wrote:

> Hi,
> G-reg product claims service performance metrics management as one of
> runtime governance feature in product description. Can I get some
> explanation what actually this feature does and any sample documentation
> URL on how to manage service metrics with G-reg?
>
> --
> Regards,
>
> Waruna Lakshitha Jayaweera
> Software Engineer
> WSO2 Inc; http://wso2.com
> phone: +94713255198
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Isuruwan Herath
Technical Lead

Contact: +94 776 273 296
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [BAM] Version maintaining for Agents such as Data Publishers

2014-02-25 Thread Anjana Fernando
Hi,

These have to be fixed from the data agents, where if you make any changes
to the stream definition, and try to save it, you will have to force the
user to increment the version and save it, or probably automatically
increment it and show it to the user. Basically allowing the user to use
the same version where they are sending different events would be wrong.
Worse case, probably, if the user insists, we should be able to delete the
earlier stream definition for that version and re-create it.

Cheers,
Anjana.


On Wed, Feb 26, 2014 at 9:45 AM, Pandula Kariyawasam wrote:

>
> Hi All.
>
> This is a small concern that we have came across while testing BAM241.
>
> For all the Agents such as Data Publishers, it allows to save the
> configuration with different versions. When we do so, it will create the
> stream definition with relevant to that version.
>
> The problem occurs if we want to use a previous configuration with same
> version number. Unless the user set exact configuration as previous
> version, Agent won't send the messages to BAM after saving with same
> previous version number.
>
>
> Please consider the following scenario.
>
> - Consider a scenario that multiple users have access to the system.
> - 1st user configure the Agent for the first time setting the version as
> 1.0.0, with specifying some properties.
> - 2nd user altering that Agent with adding and removing properties, and
> save it as 1.0.1
> - Now the 3rd user tries to role back to version 1.0.0, and he cannot
> figure out the initial configuration of version 1.0.0.
> - In a situation like this, if the 3rd user save it as 1.0.0 with
> configurations which are different from initial 1.0.0 configuration, the
> configuration will get saved properly. But when he trigger the app/service,
> the data sending to BAM will fail with prompting below error [1].
>
>
> All the Agents which use versioning such as Data Publishers, have this
> limitation. Better if we can implement a mechanism to handle this, such as
> adding a drop down to list/load the previous versions with configurations,
> or etc.
>
> I have added this as an improvement under [2]
> [2] https://wso2.org/jira/browse/BAM-1453
>
>
> WDUT?
>
>
>
> [1]
>
> [2014-02-25 14:05:33,006] ERROR
> {org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher} - Stream
> definition already exist
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Same stream id with different definition already defined before sending
> this event definitions to TCP,10.100.5.9:7611,TCP,10.100.5.9:7711
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)
>
> at
> org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)
>
> at
> org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)
>
> at java.lang.Thread.run(Thread.java:662)
> Caused by:
> org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
> Thrift Different Stream Definition Already Defined
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)
>
> at
> org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)
>
> ... 3 more
> Caused by:
> ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
> event stream for
> StreamDefinition{
> streamId='bam_webapp_statistics:1.0.0',
> name='bam_webapp_statistics',
> version='1.0.0',
> nickName='WebappDataAgent',
> description='Publish webapp statistics events',
> tags=null,
> metaData=[Attribute{name='serverAddess', type=STRING},
> Attribute{name='serverName', type=STRING}, Attribute{name='tenantId',
> type=INT}, Attribute{name='webappOwnerTenant', type=STRING},
> Attribute{name='userTenant', type=STRING}, Attribute{name='AAA',
> type=STRING}],
> correlationData=null,
> payloadData=[Attribute{name='webappName', type=STRING},
> Attribute{name='webappVersion', type=STRING}, Attribute{name='userId',
> type=STRING}, Attribute{name='resourcePath', type=STRING},
> Attribute{name='webappType', type=STRING},
> Attribute{name='webappDisplayName', type=STRING},
> Attribute{name='webappContext', type=STRING}, Attribute{name='sessionId',
> type=STRING}, Attribute{name='httpMethod', type=STRING},
> Attribute{name='contentType', type=STRING},
> Attribute{name='responseContentType', type=STRING},
> Attribute{name='remoteAddress', type=STRING}, Attribute{name='referer',
> type=STRING}, Attribute{name='remoteUser', type=STRING},
> Attribute{name='authType', type=STRING}, Attribute{name='userAgent',
> type=STRING}, Attribute{name='browser', type=STRING},
> Attribute{name='browserVersion', type=STRING},
> Attribute{name='operatingSys

Re: [Dev] [Jaggery][WebSocket] Update on Missing WebSocket APIs

2014-02-25 Thread Madhuka Udantha
On Wed, Feb 26, 2014 at 11:11 AM, Sagara Gunathunga  wrote:

>
>
>
> On Tue, Feb 25, 2014 at 10:56 AM, Madhuka Udantha wrote:
>
>> Hi,
>>
>> Jaggery webSocket[4] is missing basic and important apis according to
>> webSocket defined by RFC 6455[1] and Java WebSocket 1.0 API defined by
>> JSR-356[3].There for jaggery WebSocket API will be fixed upon[2] on the
>> $subject
>>
>
> +1 as per offline chat make sure Jaggery WebSocket support is compliance
> with JSR-356, once we make them compliance we can build storing WSO2
> WebSocket story using both Java and JS.
>
+1, jaggery will handle webSocket

>
> Thanks !
>
>>
>> Thanks
>>
>> [1] http://tools.ietf.org/html/rfc6455
>> [2] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
>> [3] http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html
>> [4] http://jaggeryjs.org/apidocs/websocket.jag
>>  --
>> *Madhuka* Udantha
>> Senior Software Engineer
>> Development Technologies
>> WSO2 Inc. : http://wso2.com
>>
>> *Mobile*: +94774066336
>> *Blog*: http://madhukaudantha.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>


-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery][WebSocket] Update on Missing WebSocket APIs

2014-02-25 Thread Madhuka Udantha
Current Jaggery (server side script) is missing APIs[1] (4.2.2. and 5.5.).
Now you have full web socket api for js over jaggery. Core level of
implementation  can be found in here.

[5]
http://madhukaudantha.blogspot.com/2014/02/jaggery-socket-implementation-in-tomcat.html

On Wed, Feb 26, 2014 at 10:58 AM, Chan  wrote:

> I didn't understand the point you are trying to make. Do we need to do
> tomcat configurations to get web-sockets to work?
>
No need any config. (Same as it was but completed web socket API)

>
>
> On Tue, Feb 25, 2014 at 10:56 AM, Madhuka Udantha wrote:
>
>> Hi,
>>
>> Jaggery webSocket[4] is missing basic and important apis according to
>> webSocket defined by RFC 6455[1] and Java WebSocket 1.0 API defined by
>> JSR-356[3].There for jaggery WebSocket API will be fixed upon[2] on the
>> $subject
>>
>> Thanks
>>
>> [1] http://tools.ietf.org/html/rfc6455
>> [2] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
>> [3] http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html
>> [4] http://jaggeryjs.org/apidocs/websocket.jag
>>  --
>> *Madhuka* Udantha
>> Senior Software Engineer
>> Development Technologies
>> WSO2 Inc. : http://wso2.com
>>
>> *Mobile*: +94774066336
>> *Blog*: http://madhukaudantha.blogspot.com/
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
>  WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email   duli...@wso2.com *
> *  ~Mobile +94712112165 <%2B94712112165>*
>
> *  ~Website   dulithawijewantha.com  *
>
> *  ~Blog blog.dulithawijewantha.com
> *
> *  ~Twitter @dulitharw *
>



-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery][WebSocket] Update on Missing WebSocket APIs

2014-02-25 Thread Sagara Gunathunga
On Tue, Feb 25, 2014 at 10:56 AM, Madhuka Udantha  wrote:

> Hi,
>
> Jaggery webSocket[4] is missing basic and important apis according to
> webSocket defined by RFC 6455[1] and Java WebSocket 1.0 API defined by
> JSR-356[3].There for jaggery WebSocket API will be fixed upon[2] on the
> $subject
>

+1 as per offline chat make sure Jaggery WebSocket support is compliance
with JSR-356, once we make them compliance we can build storing WSO2
WebSocket story using both Java and JS.

Thanks !

>
> Thanks
>
> [1] http://tools.ietf.org/html/rfc6455
> [2] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
> [3] http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html
> [4] http://jaggeryjs.org/apidocs/websocket.jag
> --
> *Madhuka* Udantha
> Senior Software Engineer
> Development Technologies
> WSO2 Inc. : http://wso2.com
>
> *Mobile*: +94774066336
> *Blog*: http://madhukaudantha.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sagara Gunathunga

Senior Technical Lead; WSO2, Inc.;  http://wso2.com
V.P Apache Web Services;http://ws.apache.org/
Linkedin; http://www.linkedin.com/in/ssagara
Blog ;  http://ssagara.blogspot.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] WSO2 governance : Service performance metrics management

2014-02-25 Thread Waruna Jayaweera
Hi,
G-reg product claims service performance metrics management as one of
runtime governance feature in product description. Can I get some
explanation what actually this feature does and any sample documentation
URL on how to manage service metrics with G-reg?

-- 
Regards,

Waruna Lakshitha Jayaweera
Software Engineer
WSO2 Inc; http://wso2.com
phone: +94713255198
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Jaggery][WebSocket] Update on Missing WebSocket APIs

2014-02-25 Thread Chan
I didn't understand the point you are trying to make. Do we need to do
tomcat configurations to get web-sockets to work?


On Tue, Feb 25, 2014 at 10:56 AM, Madhuka Udantha  wrote:

> Hi,
>
> Jaggery webSocket[4] is missing basic and important apis according to
> webSocket defined by RFC 6455[1] and Java WebSocket 1.0 API defined by
> JSR-356[3].There for jaggery WebSocket API will be fixed upon[2] on the
> $subject
>
> Thanks
>
> [1] http://tools.ietf.org/html/rfc6455
> [2] http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html
> [3] http://www.oracle.com/technetwork/articles/java/jsr356-1937161.html
> [4] http://jaggeryjs.org/apidocs/websocket.jag
> --
> *Madhuka* Udantha
> Senior Software Engineer
> Development Technologies
> WSO2 Inc. : http://wso2.com
>
> *Mobile*: +94774066336
> *Blog*: http://madhukaudantha.blogspot.com/
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
 * ~Email   duli...@wso2.com *
*  ~Mobile +94712112165*

*  ~Website   dulithawijewantha.com *

*  ~Blog blog.dulithawijewantha.com
*
*  ~Twitter @dulitharw *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Clarification on CEP301:HTTP input adapter

2014-02-25 Thread Shavantha Weerasinghe
hi mohan for HTTP input adapter on the CEP310 isnt their any other
additional parameters to set. how does the http input adapter identify
incoming events

regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [BAM] Version maintaining for Agents such as Data Publishers

2014-02-25 Thread Pandula Kariyawasam
Hi All.

This is a small concern that we have came across while testing BAM241.

For all the Agents such as Data Publishers, it allows to save the
configuration with different versions. When we do so, it will create the
stream definition with relevant to that version.

The problem occurs if we want to use a previous configuration with same
version number. Unless the user set exact configuration as previous
version, Agent won't send the messages to BAM after saving with same
previous version number.


Please consider the following scenario.

- Consider a scenario that multiple users have access to the system.
- 1st user configure the Agent for the first time setting the version as
1.0.0, with specifying some properties.
- 2nd user altering that Agent with adding and removing properties, and
save it as 1.0.1
- Now the 3rd user tries to role back to version 1.0.0, and he cannot
figure out the initial configuration of version 1.0.0.
- In a situation like this, if the 3rd user save it as 1.0.0 with
configurations which are different from initial 1.0.0 configuration, the
configuration will get saved properly. But when he trigger the app/service,
the data sending to BAM will fail with prompting below error [1].


All the Agents which use versioning such as Data Publishers, have this
limitation. Better if we can implement a mechanism to handle this, such as
adding a drop down to list/load the previous versions with configurations,
or etc.

I have added this as an improvement under [2]
[2] https://wso2.org/jira/browse/BAM-1453


WDUT?



[1]

[2014-02-25 14:05:33,006] ERROR
{org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher} - Stream
definition already exist
org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Same stream id with different definition already defined before sending
this event definitions to TCP,10.100.5.9:7611,TCP,10.100.5.9:7711
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:237)

at
org.wso2.carbon.databridge.agent.thrift.DataPublisher.defineStream(DataPublisher.java:295)

at
org.wso2.carbon.databridge.agent.thrift.AsyncDataPublisher$DataPublishWorker.run(AsyncDataPublisher.java:690)

at java.lang.Thread.run(Thread.java:662)
Caused by:
org.wso2.carbon.databridge.commons.exception.DifferentStreamDefinitionAlreadyDefinedException:
Thrift Different Stream Definition Already Defined
at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.ThriftEventPublisher.defineStream(ThriftEventPublisher.java:112)

at
org.wso2.carbon.databridge.agent.thrift.internal.publisher.client.EventPublisher.defineStream(EventPublisher.java:222)

... 3 more
Caused by:
ThriftDifferentStreamDefinitionAlreadyDefinedException(message:Similar
event stream for
StreamDefinition{
streamId='bam_webapp_statistics:1.0.0',
name='bam_webapp_statistics',
version='1.0.0',
nickName='WebappDataAgent',
description='Publish webapp statistics events',
tags=null,
metaData=[Attribute{name='serverAddess', type=STRING},
Attribute{name='serverName', type=STRING}, Attribute{name='tenantId',
type=INT}, Attribute{name='webappOwnerTenant', type=STRING},
Attribute{name='userTenant', type=STRING}, Attribute{name='AAA',
type=STRING}],
correlationData=null,
payloadData=[Attribute{name='webappName', type=STRING},
Attribute{name='webappVersion', type=STRING}, Attribute{name='userId',
type=STRING}, Attribute{name='resourcePath', type=STRING},
Attribute{name='webappType', type=STRING},
Attribute{name='webappDisplayName', type=STRING},
Attribute{name='webappContext', type=STRING}, Attribute{name='sessionId',
type=STRING}, Attribute{name='httpMethod', type=STRING},
Attribute{name='contentType', type=STRING},
Attribute{name='responseContentType', type=STRING},
Attribute{name='remoteAddress', type=STRING}, Attribute{name='referer',
type=STRING}, Attribute{name='remoteUser', type=STRING},
Attribute{name='authType', type=STRING}, Attribute{name='userAgent',
type=STRING}, Attribute{name='browser', type=STRING},
Attribute{name='browserVersion', type=STRING},
Attribute{name='operatingSystem', type=STRING},
Attribute{name='operatingSystemVersion', type=STRING},
Attribute{name='searchEngine', type=STRING}, Attribute{name='country',
type=STRING}, Attribute{name='timestamp', type=LONG},
Attribute{name='responseHttpStatusCode', type=INT},
Attribute{name='responseTime', type=LONG}, Attribute{name='requestCount',
type=INT}, Attribute{name='responceCount', type=INT},
Attribute{name='faultCount', type=INT}, Attribute{name='requestSizeBytes',
type=LONG}, Attribute{name='responseSizeBytes', type=LONG}],
}
 with the same name and version already exist:
StreamDefinition{
streamId='bam_webapp_statistics:1.0.0',
name='bam_webapp_statistics',
version='1.0.0',
nickName='WebappDataAgent',
description='Publish webapp st

Re: [Dev] ESB: Issue with setting timeout values dynamically

2014-02-25 Thread Malaka Silva
Hi Chanaka,

If you check the Salesforce connector endpoint timeout and suspension
values are hard-coded in the connector.

Requirement is to give this as optional parameters to the user.


On Mon, Feb 24, 2014 at 9:08 AM, Chanaka Fernando  wrote:

> Hi Malaka/Chinthaka,
>
> Can you elaborate more on the requirement? If you could give us an example
> scenario, we could think about a possible solution. As Isuru mentioned
> above, setting template parameters from an xpath expression (dynamically)
> is not supported at the moment. You can use the progression factor with
> initial and max duration values to achieve dynamic timeout duration. What I
> am not clear is why do we need to extract the timeout from the request?
>
>
> Thanks,
> Chanaka
>
>
> On Sat, Feb 22, 2014 at 8:16 PM, Malaka Silva  wrote:
>
>> This is a requirement for connector implementations.
>>
>>
>> On Fri, Feb 21, 2014 at 2:36 PM, Isuru Udana  wrote:
>>
>>> Hi,
>>>
>>> Setting the endpoint timeout values dynamically is not supported.
>>> What is the actual requirement to make it dynamic ? In typical
>>> integration scenarios, endpoint timeout value is a pre-configured static
>>> value.
>>>
>>> Thanks.
>>>
>>>
>>> On Fri, Feb 21, 2014 at 2:13 PM, Krishantha Dinesh >> > wrote:
>>>
 try this

 http://ws.apache.org/ns/synapse";>
> 
> 
> 
> 
>
> 
> 
> 
> $timout_duration
> fault
> 
> 
>
> $initial_duration
>
> $progressafactor
>
> $maximumDuration
> 
> 
> 
> 
>
> Call the endpoint:
> 
>  template="[timeout template path]">
>  value="6000" />
>  value="2000" />
>  value="2.0" />
>  value="3000" />
> 
> 
>
> Questions:
>
> 1. . How to set
> "timout_duration" parameter value dynamically? ex: taken from SOAP
> request
> and set value through expression="get-property('timeoutDuration')"
>
> 2. Anyway I tried, without timeout template, inside my synapse template
> with:  />
> call:
> 
> 
> 
> 
> $timeoutDuration
> fault
> 
> 
> 2000
>
> 1.5
> 3000
> 
> 
> 
> 
>
> when template deployed:
> "Caused by: org.apache.synapse.SynapseException: Endpoint timeout
> duration
> expected as a number but was not a number", comes.
> if this way is poible, how to make $timeoutDuration as number?
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/ESB-Issue-with-setting-timeout-values-dynamically-tp92461.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> 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


>>>
>>>
>>> --
>>> *Isuru Udana*
>>>  Senior
>>> * Software Engineer*
>>> WSO2 Inc.; http://wso2.com
>>> email: isu...@wso2.com cell: +94 77 3791887
>>> blog: http://mytecheye.blogspot.com/
>>> twitter: http://twitter.com/isudana
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> Best Regards,
>>
>> Malaka Silva
>> Senior Tech Lead
>> M: +94 777 219 791
>> Tel : 94 11 214 5345
>> Fax :94 11 2145300
>> Skype : malaka.sampath.silva
>> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
>> Blog : http://mrmalakasilva.blogspot.com/
>>
>> WSO2, Inc.
>> lean . enterprise . middleware
>> http://www.wso2.com/
>> http://www.wso2.com/about/team/malaka-silva/
>>
>> Save a tree -Conserve nature & Save the world for your future. Print this
>> email only if it is absolutely necessary.
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
> Chanaka Fernando
> Technical Lead
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middl

Re: [Dev] Sending SOAP attachments using AxisServiceClient object in Integration Tests

2014-02-25 Thread Isuru Udana
Hi Ramindu,

We have a sample client available in the ESB pack itself. You can take a
look at the code available at there.
Following is the path to sample client.

/samples/axis2Client/src/samples/userguide/MTOMSwAClient.java

Related ESB sample available at following.
Sample #51 - http://docs.wso2.org/pages/viewpage.action?pageId=33136025


Thanks.


On Mon, Feb 17, 2014 at 11:24 AM, Ramindu Deshapriya wrote:

> Hi Azeez,
>
>
> Afkham Azeez-2 wrote
> > http://axis.apache.org/axis2/java/core/docs/mtom-guide.html may help
>
> Thanks, I used that class. However, when using the following code, the
> attachment doesn't seem to be getting delivered to the ESB. I am using this
> to test a cloud connector, and the connector itself returned the error it
> gives when it can't find this specific attachment. Is there something I'm
> missing?
>
> OMElement getFileMandatoryParamRequest =
> AXIOMUtil.stringToOM(omString);
>
> ServiceClient serviceClient = new ServiceClient();
>
> Options serviceOptions = new Options();
>
> serviceOptions.setTo(new
> EndpointReference(getProxyServiceURL(CONNECTOR_NAME + "_"
> + methodName)));
> serviceClient.setOptions(serviceOptions);
> MessageContext messageContext = new MessageContext();
>
> SOAPEnvelope soapEnvelope =
> TransportUtils.createSOAPEnvelope(getFileMandatoryParamRequest);
> messageContext.setDoingSwA(true);
> messageContext.setEnvelope(soapEnvelope);
> messageContext.addAttachment("certificate", new DataHandler(new
> URL("file:" + File.separator + File.separator
> + ProductConstant.SYSTEM_TEST_RESOURCE_LOCATION +
> ConnectorIntegrationUtil.ESB_CONFIG_LOCATION
> + File.separator + "googledrive_certificate.p12")));
> OperationClient opClient =
> serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
> opClient.addMessageContext(messageContext);
>
> opClient.execute(true);
> MessageContext responseMsgCtx =
> opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
>
> Thanks.
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Sending-SOAP-attachments-using-AxisServiceClient-object-in-Integration-Tests-tp92033p92260.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



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


Re: [Dev] Schedule Script Execution not persisting change

2014-02-25 Thread Maninda Edirisooriya
Hi Shani,

Actually this is a kind of known problem we have. Either you have
configured with the cron expression or from the selection UI it would be
saved as a cron expression. As we are not saving whether it has come from a
pure cron or from the UI it cannot distinguish when loading the schedule
back. Anyway if it was unscheduled it would be shown correctly when
loading. So there would not be a big problem but some difficulty for the
user, as he has to understand the cron. We hope to fix this in future.



*Maninda Edirisooriya*
Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*Phone* : +94 777603226


On Wed, Feb 26, 2014 at 5:24 AM, Shani Ranasinghe  wrote:

> Hi,
>
> I have a script in BAM, and is trying to schedule it (via Simple
> Scheduling) to run every minute (for testing purposes). Once I save the
> change the following is shown in the console and when I re-click the
> Schedule script option of the script it does not show my selection, but
> shows the default(Cron expression). Is this the expected behavior? Or have
> I been missing something?
>
> If it is the behavior, should we not have the change (the schedule
> selected by the user for the script) shown to the user when the schedule
> script is re-clicked? Also how does one figure out what the scheduling is?
> and If it is scheduled or not?
>
> *Console output *
>
> [2014-02-25 16:50:42,216]  INFO
> {org.wso2.carbon.analytics.hive.ui.servlet.SaveCronExpression} -  0 1 * ? *
> * *
> [2014-02-25 16:50:42,251]  INFO
> {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
> deleted: [-1234][HIVE_TASK][simple_stock_quote_service]
> [2014-02-25 16:50:42,258]  INFO
> {org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
> scheduled: [-1234][HIVE_TASK][simple_stock_quote_service
> --
> Thanks and Regards
> *, Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] ESB 4.8.0 clustering Login Failed in Worker

2014-02-25 Thread Chanaka Fernando
In a worker-manager clustered environment, you can only log in to the
manager node. You use this node for all your management tasks. When you
starting the worker node, you give the option "-DworkerNode=true". This
means, you are starting this node as a worker node. Worker nodes does not
have a management console UI and you can't log in to them.


On Wed, Feb 26, 2014 at 12:17 AM, Aliosha  wrote:

> i followed these guidelines in this WSO2 documentation page:
> http://docs.wso2.org/pages/viewpage.action?pageId=29918203
>
> I configured the ELB, ESB Manager and 2 ESB worker in cluster. I had not
> error logged in the log files and, when i create a sample-passthrough proxy
> in the manager i see the xml files correctly deployed in the two worker
> instances too (looking at the file system repository folder). The problem
> is that if on one hand i can login in the admin console of the manager ESB,
> every time i try to login in the worker 1 and 2 conoles i get the "Login
> Failed" message. Looking in the woker log file i see:
>
> TID: [0] [ESB] [2014-02-25 12:26:13,088]  INFO   
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super   [-1234]' logged in at [2014-02-25 12:26:13,088+0100]  
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:26:19,108]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:26:19,107+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:26:29,082]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:26:29,082+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:10,669] ERROR 
> {org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager} -  Using sql : null 
> {org.wso2.carbon.user.core.jdbc.JDBCUserStoreManager}
> TID: [0] [ESB] [2014-02-25 12:27:10,670] ERROR 
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager} -  
> org.wso2.carbon.user.core.UserStoreException: Authentication Failure 
> {org.wso2.carbon.user.core.common.AbstractUserStoreManager}
> TID: [0] [ESB] [2014-02-25 12:27:10,670]  WARN 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed 
> Administrator login attempt 'admin[-1234]' at [2014-02-25 12:27:10,670+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:25,702]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:25,702+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:28,155]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:28,155+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:30,862]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:30,862+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:32,466]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:32,466+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:34,194]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:34,194+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
> TID: [0] [ESB] [2014-02-25 12:27:34,826]  INFO 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  
> 'admin@carbon.super [-1234]' logged in at [2014-02-25 12:27:34,826+0100] 
> {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
>
> Where is the error? What am i missing? With the 4.7.0 version i was able
> to login each of the three esb. thanks
>



-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Creating Pass-Through Proxy service in WSO2 ESB behind a Proxy

2014-02-25 Thread Chanaka Fernando
According to the error you are getting, it is an issue related to accessing
some xsd schemas. Can you try the method mentioned in the below
documentation link.

http://docs.wso2.org/display/ESB481/Enabling+SSL+Tunneling+through+a+Proxy+Server




On Tue, Feb 25, 2014 at 10:48 PM, Diego  wrote:

> Hi!
> I am trying to create a proxy service (a simple pass through proxy
> service) against a Web Service which needs to access the internet. Our
> company's servers are behind a proxy with authentication required so , when
> I try to specify the URL of the WSDL at the very first step on the creation
> of the Pass Through proxy service, the WSO2 ESB gets too long and throws
> this error in the moment of accessing an external URL:
>
> 
> Caused by: javax.wsdl.WSDLException: WSDLException (at
> /definitions/types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing '
> http://schemas.xmlsoap.org/soap/encoding/'.: java.net.ConnectException:
> Connection timed out
> 
>
> If I specify this at Axis2 Level on the Manager and Worker (I have wso2
> ESB HA) a new parameter like:  with the
> proxyport, user and password, the error changes and goes to:
>
> [ESB] [2014-02-25 17:51:57,830] ERROR {org.apache.axis2.engine.AxisEngine}
> - A header representing a Message Addressing Property is not valid and the
> message cannot be processed {org.apache.axis2.engine.AxisEngine}
> org.apache.axis2.AxisFault: A header representing a Message Addressing
> Property is not valid and the message cannot be processed..
>
>
> I had this problem trying to consume the source Web Service through Soap
> UI and get to fix it by configuring the Network-Proxy on the interface of
> the Soap UI tool, but I don't know what else to try to make the Web Service
> work on WSO2 ESB...
>
> Any suggestions?
>
> Thank you very much!
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Schedule Script Execution not persisting change

2014-02-25 Thread Shani Ranasinghe
Hi,

I have a script in BAM, and is trying to schedule it (via Simple
Scheduling) to run every minute (for testing purposes). Once I save the
change the following is shown in the console and when I re-click the
Schedule script option of the script it does not show my selection, but
shows the default(Cron expression). Is this the expected behavior? Or have
I been missing something?

If it is the behavior, should we not have the change (the schedule selected
by the user for the script) shown to the user when the schedule script is
re-clicked? Also how does one figure out what the scheduling is? and If it
is scheduled or not?

*Console output *

[2014-02-25 16:50:42,216]  INFO
{org.wso2.carbon.analytics.hive.ui.servlet.SaveCronExpression} -  0 1 * ? *
* *
[2014-02-25 16:50:42,251]  INFO
{org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
deleted: [-1234][HIVE_TASK][simple_stock_quote_service]
[2014-02-25 16:50:42,258]  INFO
{org.wso2.carbon.ntask.core.impl.AbstractQuartzTaskManager} -  Task
scheduled: [-1234][HIVE_TASK][simple_stock_quote_service
-- 
Thanks and Regards
*, Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Creating Pass-Through Proxy service in WSO2 ESB behind a Proxy

2014-02-25 Thread Diego
Hi!
I am trying to create a proxy service (a simple pass through proxy service)
against a Web Service which needs to access the internet. Our company's
servers are behind a proxy with authentication required so , when I try to
specify the URL of the WSDL at the very first step on the creation of the
Pass Through proxy service, the WSO2 ESB gets too long and throws this
error in the moment of accessing an external URL:


Caused by: javax.wsdl.WSDLException: WSDLException (at
/definitions/types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing '
http://schemas.xmlsoap.org/soap/encoding/'.: java.net.ConnectException:
Connection timed out


If I specify this at Axis2 Level on the Manager and Worker (I have wso2 ESB
HA) a new parameter like:  with the proxyport,
user and password, the error changes and goes to:

[ESB] [2014-02-25 17:51:57,830] ERROR {org.apache.axis2.engine.AxisEngine}
- A header representing a Message Addressing Property is not valid and the
message cannot be processed {org.apache.axis2.engine.AxisEngine}
org.apache.axis2.AxisFault: A header representing a Message Addressing
Property is not valid and the message cannot be processed..


I had this problem trying to consume the source Web Service through Soap UI
and get to fix it by configuring the Network-Proxy on the interface of the
Soap UI tool, but I don't know what else to try to make the Web Service
work on WSO2 ESB...

Any suggestions?

Thank you very much!
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Shani Ranasinghe
Hi,

That worked. Thanks Maninda.


On Tue, Feb 25, 2014 at 6:47 AM, Maninda Edirisooriya wrote:

> Hi Shani,
>
> Please try changing the type of property mediator, RESPONSE_TIME, from
> Long to String. As I remember BAM Mediator assumes all the properties as
> String and convert to the specified type.
>
>
> *Maninda Edirisooriya*
> Software Engineer
>
> *WSO2, Inc. *lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *Phone* : +94 777603226
>
>
> On Tue, Feb 25, 2014 at 6:54 PM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> Please find the synapse xml attached.
>>
>>
>> On Tue, Feb 25, 2014 at 4:56 AM, Maninda Edirisooriya 
>> wrote:
>>
>>> Hi Shani,
>>>
>>> Can you send the sequence XML so that I can see.
>>>
>>>
>>> * Maninda Edirisooriya*
>>> Software Engineer
>>>
>>> *WSO2, Inc.*lean.enterprise.middleware.
>>>
>>> *Blog* : http://maninda.blogspot.com/
>>> *Phone* : +94 777603226
>>>
>>>
>>> On Tue, Feb 25, 2014 at 5:05 PM, Shani Ranasinghe wrote:
>>>
 Hi,

 Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long.


 On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe wrote:

>
> Hi,
>
> I am trying to add a BAM mediator to ESB and publish data to BAM. I
> have a in sequence which has a property defined as "TIME1".I have an out
> sequence which has a property defined as "Time 2"
> in the out sequence I also have a script mediator, which takes there
> two times and finds the difference and adds the result as a new property 
> to
> the message context as response time
> in the out sequence the BAM mediator is available.
>
> so when the request is sent, there is a event in the EVENT_KS for the
> event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a
> stream property as RESPONSE_TIME and the value as a expression
> get-property('RESPONSE_TIME'))
>
> Any  idea as to what  I could be doing wrong?
> if I print the value in the script mediator, it shows the value.I am
> using, ESB 4.8.1 and BAM 2.4.0.
>
> My attempt is to get statistics to be visualized of ESB REST API's.
> Started off by trying on response time.
> --
> Thanks and Regards
> *, Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



 --
 Thanks and Regards
 *,Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

>>>
>>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Maninda Edirisooriya
Hi Shani,

Please try changing the type of property mediator, RESPONSE_TIME, from Long
to String. As I remember BAM Mediator assumes all the properties as String
and convert to the specified type.


*Maninda Edirisooriya*
Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*Phone* : +94 777603226


On Tue, Feb 25, 2014 at 6:54 PM, Shani Ranasinghe  wrote:

> Hi,
>
> Please find the synapse xml attached.
>
>
> On Tue, Feb 25, 2014 at 4:56 AM, Maninda Edirisooriya wrote:
>
>> Hi Shani,
>>
>> Can you send the sequence XML so that I can see.
>>
>>
>> * Maninda Edirisooriya*
>> Software Engineer
>>
>> *WSO2, Inc.*lean.enterprise.middleware.
>>
>> *Blog* : http://maninda.blogspot.com/
>> *Phone* : +94 777603226
>>
>>
>> On Tue, Feb 25, 2014 at 5:05 PM, Shani Ranasinghe  wrote:
>>
>>> Hi,
>>>
>>> Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long.
>>>
>>>
>>> On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe wrote:
>>>

 Hi,

 I am trying to add a BAM mediator to ESB and publish data to BAM. I
 have a in sequence which has a property defined as "TIME1".I have an out
 sequence which has a property defined as "Time 2"
 in the out sequence I also have a script mediator, which takes there
 two times and finds the difference and adds the result as a new property to
 the message context as response time
 in the out sequence the BAM mediator is available.

 so when the request is sent, there is a event in the EVENT_KS for the
 event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a
 stream property as RESPONSE_TIME and the value as a expression
 get-property('RESPONSE_TIME'))

 Any  idea as to what  I could be doing wrong?
 if I print the value in the script mediator, it shows the value.I am
 using, ESB 4.8.1 and BAM 2.4.0.

 My attempt is to get statistics to be visualized of ESB REST API's.
 Started off by trying on response time.
 --
 Thanks and Regards
 *, Shani Ranasinghe*
 Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 77 2273555
 linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab

>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>> *,Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>
>>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Shani Ranasinghe
Hi,

Please find the synapse xml attached.


On Tue, Feb 25, 2014 at 4:56 AM, Maninda Edirisooriya wrote:

> Hi Shani,
>
> Can you send the sequence XML so that I can see.
>
>
> * Maninda Edirisooriya*
> Software Engineer
>
> *WSO2, Inc.*lean.enterprise.middleware.
>
> *Blog* : http://maninda.blogspot.com/
> *Phone* : +94 777603226
>
>
> On Tue, Feb 25, 2014 at 5:05 PM, Shani Ranasinghe  wrote:
>
>> Hi,
>>
>> Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long.
>>
>>
>> On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe  wrote:
>>
>>>
>>> Hi,
>>>
>>> I am trying to add a BAM mediator to ESB and publish data to BAM. I have
>>> a in sequence which has a property defined as "TIME1".I have an out
>>> sequence which has a property defined as "Time 2"
>>> in the out sequence I also have a script mediator, which takes there two
>>> times and finds the difference and adds the result as a new property to the
>>> message context as response time
>>> in the out sequence the BAM mediator is available.
>>>
>>> so when the request is sent, there is a event in the EVENT_KS for the
>>> event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a
>>> stream property as RESPONSE_TIME and the value as a expression
>>> get-property('RESPONSE_TIME'))
>>>
>>> Any  idea as to what  I could be doing wrong?
>>> if I print the value in the script mediator, it shows the value.I am
>>> using, ESB 4.8.1 and BAM 2.4.0.
>>>
>>> My attempt is to get statistics to be visualized of ESB REST API's.
>>> Started off by trying on response time.
>>> --
>>> Thanks and Regards
>>> *, Shani Ranasinghe*
>>> Software Engineer
>>> WSO2 Inc.; http://wso2.com
>>> lean.enterprise.middleware
>>>
>>> mobile: +94 77 2273555
>>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>>
>>
>>
>>
>> --
>> Thanks and Regards
>> *,Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>


-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
http://ws.apache.org/ns/synapse";>http://services.samples";>$1http://localhost:9000/services/SimpleStockQuoteService"; format="soap11">http://localhost:9000/services/SimpleStockQuoteService"; format="soap11">___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] exception when attempting to stat the pack as a windows service

2014-02-25 Thread Shavantha Weerasinghe
Hi Mohan

It works now , thanks for the feedback. However, we have to go by the
IP and not as localhost, is it because the host file is not updated

regards,
Shavantha Weerasinghe
Senior Software Engineer QA
WSO2, Inc.
lean.enterprise.middleware.
http://wso2.com
http://wso2.org
Tel : 94 11 214 5345
Fax :94 11 2145300



On Tue, Feb 25, 2014 at 5:30 PM, Mohanadarshan Vivekanandalingam
 wrote:
> Can you try will below file and see..  replace wrapper.conf which is inside
> the /bin/yajsw
>
>
> On Tue, Feb 25, 2014 at 5:14 PM, Shavantha Weerasinghe 
> wrote:
>>
>> Hi All
>>
>> I followed the instructions on the URL
>> http://docs.wso2.org/display/Carbon410/Installing+as+a+Windows+Service
>> and when I execute the runConsole.bat I get the below exception. To
>> CARBON_HOME has been set upto the cep pack directory path. How can I
>> overcome this issue
>>
>>   INFO - {DatabaseDescriptor}  Global memtable threshold is enabled at
>> 329MB
>> INFO|1836/0|"WSO2 Carbon"|14-02-25
>> 16:33:10|java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:10|[2014-02-25 16:33:09,967]
>> INFO - {SiddhiExtensionDS}  Successfully activated Property Window
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11| at
>> org.apache.cassandra.db.Memtable.(Memtable.java:118)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11|[2014-02-25 16:33:10,202]
>> INFO - {CacheService}  Initializing key cache with capacity of 12 MBs.
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11| at
>> org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11|[2014-02-25 16:33:10,233]
>> INFO - {CacheService}  Scheduling key cache save to each 14400 seconds
>> (going to save all keys).
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.DataTracker.(DataTracker.java:63)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,233]
>> INFO - {CacheService}  Initializing row cache with capacity of 0 MBs
>> and provider org.apache.cassandra.cache.SerializingCacheProvider
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,249]
>> INFO - {CacheService}  Scheduling row cache save to each 0 seconds
>> (going to save all keys).
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,686]
>> ERROR - {AbstractCassandraDaemon}  Exception encountered during
>> startup
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25
>> 16:33:12|java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.initCf(Table.java:371)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Memtable.(Memtable.java:118)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.(Table.java:304)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.open(Table.java:119)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.DataTracker.(DataTracker.java:63)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.open(Table.java:97)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:274)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:171)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.initCf(Table.java:371)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>>
>> org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> org.apache.cassandra.db.Table.(Table.java:304)
>> INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
>> java.lang.Thread.run(Thread.java:744)

Re: [Dev] Carbon 5 - Building on latest Maven

2014-02-25 Thread chris snow
OpenJDK is always a plus too.  Oracle JDK can be difficult for
automated environment setup due to having to accept license
agreements.

IIRC, some WSO2 product builds fail using OpenJDK due to the product's
dependencies on Sun internal classes.

On Tue, Feb 25, 2014 at 11:48 AM, Isuru Perera  wrote:
> Hi,
>
>
> On Tue, Feb 25, 2014 at 5:13 PM, Kishanthan Thangarajah
>  wrote:
>>
>> Yes, C5 builds on the latest maven version as-well.
>
> That's great!
>
> Thanks!
>>
>>
>>
>> On Tue, Feb 25, 2014 at 2:31 PM, Isuru Perera  wrote:
>>>
>>> Hi,
>>>
>>> I hope the Carbon 5 will support building on latest Maven as of now
>>> (3.2.1) [1].
>>>
>>> I didn't try building, but I just wanted to inform.
>>>
>>> Thanks!
>>>
>>> Best Regards,
>>>
>>> [1] http://maven.apache.org/docs/3.2.1/release-notes.html
>>>
>>> --
>>> Isuru Perera
>>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>>> Lean . Enterprise . Middleware
>>>
>>> about.me/chrishantha
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>
>>
>>
>> --
>> Kishanthan Thangarajah
>> Senior Software Engineer,
>> Platform Technologies Team,
>> WSO2, Inc.
>> lean.enterprise.middleware
>>
>> Mobile - +94773426635
>> Blog - http://kishanthan.wordpress.com
>> Twitter - http://twitter.com/kishanthan
>
>
>
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Check out my professional profile and connect with me on LinkedIn.
http://lnkd.in/cw5k69
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Maninda Edirisooriya
Hi Shani,

Can you send the sequence XML so that I can see.


*Maninda Edirisooriya*
Software Engineer

*WSO2, Inc.*lean.enterprise.middleware.

*Blog* : http://maninda.blogspot.com/
*Phone* : +94 777603226


On Tue, Feb 25, 2014 at 5:05 PM, Shani Ranasinghe  wrote:

> Hi,
>
> Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long.
>
>
> On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe  wrote:
>
>>
>> Hi,
>>
>> I am trying to add a BAM mediator to ESB and publish data to BAM. I have
>> a in sequence which has a property defined as "TIME1".I have an out
>> sequence which has a property defined as "Time 2"
>> in the out sequence I also have a script mediator, which takes there two
>> times and finds the difference and adds the result as a new property to the
>> message context as response time
>> in the out sequence the BAM mediator is available.
>>
>> so when the request is sent, there is a event in the EVENT_KS for the
>> event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a
>> stream property as RESPONSE_TIME and the value as a expression
>> get-property('RESPONSE_TIME'))
>>
>> Any  idea as to what  I could be doing wrong?
>> if I print the value in the script mediator, it shows the value.I am
>> using, ESB 4.8.1 and BAM 2.4.0.
>>
>> My attempt is to get statistics to be visualized of ESB REST API's.
>> Started off by trying on response time.
>> --
>> Thanks and Regards
>> *, Shani Ranasinghe*
>> Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 77 2273555
>> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>>
>
>
>
> --
> Thanks and Regards
> *,Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of org.wso2.carbon.discovery.mediation.ext

2014-02-25 Thread Eranda Sooriyabandara
Hi Vanji,
Please add this to product-esb.

thanks
Eranda


On Tue, Feb 25, 2014 at 3:46 PM, Kasun Indrasiri  wrote:

> This is used when we use WS-Discovery with ESB (as a feature). This is
> used when ESB get the dynamically discovered endpoints in to its endpoint
> list.
>
>
> On Tue, Feb 25, 2014 at 3:32 PM, Eranda Sooriyabandara wrote:
>
>> Hi Kasun,
>> Is org.wso2.carbon.discovery.mediation.ext a component related to ESB? I
>> checked in the ESB pack but I could not find it shipped inside it.
>>
>> thanks
>> Eranda
>>
>> --
>>
>> *Eranda Sooriyabandara*Senior Software Engineer;
>> Integration Technologies Team;
>> WSO2 Inc.; http://wso2.com
>> Lean . Enterprise . Middleware
>>
>> E-mail: eranda AT wso2.com
>> Mobile: +94 716 472 816
>> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
>> Blog: http://emsooriyabandara.blogspot.com/
>>
>>
>>
>>
>>
>
>
> --
> Kasun Indrasiri
> Software Architect
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> cell: +94 77 556 5206
> Blog : http://kasunpanorama.blogspot.com/
>



-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Carbon 5 - Building on latest Maven

2014-02-25 Thread Isuru Perera
Hi,


On Tue, Feb 25, 2014 at 5:13 PM, Kishanthan Thangarajah  wrote:

> Yes, C5 builds on the latest maven version as-well.
>
That's great!

Thanks!

>
>
> On Tue, Feb 25, 2014 at 2:31 PM, Isuru Perera  wrote:
>
>> Hi,
>>
>> I hope the Carbon 5 will support building on latest Maven as of now
>> (3.2.1) [1].
>>
>> I didn't try building, but I just wanted to inform.
>>
>> Thanks!
>>
>> Best Regards,
>>
>> [1] http://maven.apache.org/docs/3.2.1/release-notes.html
>>
>> --
>> Isuru Perera
>> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan *
>



-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


Re: [Dev] Carbon 5 - Building on latest Maven

2014-02-25 Thread Kishanthan Thangarajah
Yes, C5 builds on the latest maven version as-well.


On Tue, Feb 25, 2014 at 2:31 PM, Isuru Perera  wrote:

> Hi,
>
> I hope the Carbon 5 will support building on latest Maven as of now
> (3.2.1) [1].
>
> I didn't try building, but I just wanted to inform.
>
> Thanks!
>
> Best Regards,
>
> [1] http://maven.apache.org/docs/3.2.1/release-notes.html
>
> --
> Isuru Perera
> Senior Software Engineer | WSO2, Inc. | http://wso2.com/
> Lean . Enterprise . Middleware
>
> about.me/chrishantha
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Kishanthan Thangarajah*
Senior Software Engineer,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] exception when attempting to stat the pack as a windows service

2014-02-25 Thread Shavantha Weerasinghe
Hi All

I followed the instructions on the URL
http://docs.wso2.org/display/Carbon410/Installing+as+a+Windows+Service
and when I execute the runConsole.bat I get the below exception. To
CARBON_HOME has been set upto the cep pack directory path. How can I
overcome this issue

  INFO - {DatabaseDescriptor}  Global memtable threshold is enabled at 329MB
INFO|1836/0|"WSO2 Carbon"|14-02-25
16:33:10|java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:10|[2014-02-25 16:33:09,967]
INFO - {SiddhiExtensionDS}  Successfully activated Property Window
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11| at
org.apache.cassandra.db.Memtable.(Memtable.java:118)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11|[2014-02-25 16:33:10,202]
INFO - {CacheService}  Initializing key cache with capacity of 12 MBs.
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11| at
org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:11|[2014-02-25 16:33:10,233]
INFO - {CacheService}  Scheduling key cache save to each 14400 seconds
(going to save all keys).
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.DataTracker.(DataTracker.java:63)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,233]
INFO - {CacheService}  Initializing row cache with capacity of 0 MBs
and provider org.apache.cassandra.cache.SerializingCacheProvider
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,249]
INFO - {CacheService}  Scheduling row cache save to each 0 seconds
(going to save all keys).
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|[2014-02-25 16:33:10,686]
ERROR - {AbstractCassandraDaemon}  Exception encountered during
startup
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
INFO|1836/0|"WSO2 Carbon"|14-02-25
16:33:12|java.lang.NoClassDefFoundError: org/github/jamm/MemoryMeter
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.initCf(Table.java:371)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Memtable.(Memtable.java:118)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.(Table.java:304)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.DataTracker.init(DataTracker.java:301)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.open(Table.java:119)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.DataTracker.(DataTracker.java:63)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.open(Table.java:97)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.(ColumnFamilyStore.java:230)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:274)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:357)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:171)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:329)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:353)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.initCf(Table.java:371)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.wso2.carbon.cassandra.server.CassandraServerController$1.run(CassandraServerController.java:48)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.(Table.java:304)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
java.lang.Thread.run(Thread.java:744)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.open(Table.java:119)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12|Caused by:
java.lang.ClassNotFoundException: org.github.jamm.MemoryMeter
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.Table.open(Table.java:97)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.db.SystemTable.checkHealth(SystemTable.java:274)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
INFO|1836/0|"WSO2 Carbon"|14-02-25 16:33:12| at
org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassand

Re: [Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Shani Ranasinghe
Hi,

Just to add to it, the type of TIME_1, TIME_2 and RESPONSE_TIME is Long.


On Tue, Feb 25, 2014 at 4:25 AM, Shani Ranasinghe  wrote:

>
> Hi,
>
> I am trying to add a BAM mediator to ESB and publish data to BAM. I have a
> in sequence which has a property defined as "TIME1".I have an out sequence
> which has a property defined as "Time 2"
> in the out sequence I also have a script mediator, which takes there two
> times and finds the difference and adds the result as a new property to the
> message context as response time
> in the out sequence the BAM mediator is available.
>
> so when the request is sent, there is a event in the EVENT_KS for the
> event stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a
> stream property as RESPONSE_TIME and the value as a expression
> get-property('RESPONSE_TIME'))
>
> Any  idea as to what  I could be doing wrong?
> if I print the value in the script mediator, it shows the value.I am
> using, ESB 4.8.1 and BAM 2.4.0.
>
> My attempt is to get statistics to be visualized of ESB REST API's.
> Started off by trying on response time.
> --
> Thanks and Regards
> *, Shani Ranasinghe*
> Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: +94 77 2273555
> linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
>



-- 
Thanks and Regards
*,Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Behavior of SimpleRealmConfigBuilder and CommonLDAPRealmConfigBuilder in Authorizing Admin Role for /permission

2014-02-25 Thread Ajanthan Balachandran
The jira is https://wso2.org/jira/browse/CARBON-14704


On Tue, Feb 25, 2014 at 3:34 PM, Ajanthan Balachandran wrote:

> As discussed with Asela offline, SimpleRealmConfigBuilder need to add same
> permission(/permission/admin) to the tenant admin as
> CommonLDAPRealmConfigBuilder since it gives wider permission.
> I have created a jira[0] and attached the patch.
> Please apply the patch to the patch0006.
> Thanks
>
>
>
>
> On Tue, Jan 21, 2014 at 2:33 PM, Ajanthan Balachandran 
> wrote:
>
>> Hi All,
>> When i connected to JDBCUserstore with  SimpleRealmConfigBuilder after
>> creating tenant i can observer that /permission is given to admin role
>> of the tenant.
>> but when i connected to LDAP user store with
>> CommonLDAPRealmConfigBuilder i can see /permission/admin is given to
>> admin role.
>>
>> If you look at the CommonLDAPRealmConfigBuilder there you can see that
>> the AdminRoleManagementPermissions property is overwritten by
>> /permission/admin but in
>> SimpleRealmConfigBuilder it is cloned from bootstrap config.
>>
>> Shall we fix this ? Due to this problem we are not able to call
>> Stratos admin APIs after connecting to LDAP.
>>
>> Thanks.
>>
>> --
>> ajanthan
>> --
>> Ajanthan Balachandiran
>> Senior Software Engineer;
>> Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/
>>
>> email: ajant...@wso2.com; cell: +94775581497
>> blog: http://bkayts.blogspot.com/
>>
>> Lean . Enterprise . Middleware
>>
>
>
>
> --
> ajanthan
> --
> Ajanthan Balachandiran
> Senior Software Engineer;
> Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/
>
> email: ajanthan @wso2.com; cell: +94775581497
> blog: http://bkayts.blogspot.com/
>
> Lean . Enterprise . Middleware
>



-- 
ajanthan
-- 
Ajanthan Balachandiran
Senior Software Engineer;
Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/

email: ajanthan @wso2.com; cell: +94775581497
blog: http://bkayts.blogspot.com/

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


[Dev] Using BAM mediator to publish data to BAM from ESB

2014-02-25 Thread Shani Ranasinghe
Hi,

I am trying to add a BAM mediator to ESB and publish data to BAM. I have a
in sequence which has a property defined as "TIME1".I have an out sequence
which has a property defined as "Time 2"
in the out sequence I also have a script mediator, which takes there two
times and finds the difference and adds the result as a new property to the
message context as response time
in the out sequence the BAM mediator is available.

so when the request is sent, there is a event in the EVENT_KS for the event
stream, but the payload_RESPONSE_TIME is 0. (in the stream i set a stream
property as RESPONSE_TIME and the value as a expression
get-property('RESPONSE_TIME'))

Any  idea as to what  I could be doing wrong?
if I print the value in the script mediator, it shows the value.I am using,
ESB 4.8.1 and BAM 2.4.0.

My attempt is to get statistics to be visualized of ESB REST API's. Started
off by trying on response time.
-- 
Thanks and Regards
*, Shani Ranasinghe*
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 77 2273555
linked in: lk.linkedin.com/pub/shani-ranasinghe/34/111/ab
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Request to apply patch IDENTITY-2044 to kernel patch0006

2014-02-25 Thread Darshana Gunawardana
Thanks manoj


On Tue, Feb 25, 2014 at 10:59 AM, Manoj Kumara  wrote:

> Hi Darshana,
>
> Committed to patch0006 with 197291. Please check.
>
> Thanks,
> Manoj
>
>
> *Manoj Kumara*
> Software Engineer
> WSO2 Inc. http://wso2.com/
> *lean.enterprise.middleware*
> Mobile: +94713448188
>
>
> On Mon, Feb 24, 2014 at 9:08 PM, Darshana Gunawardana 
> wrote:
>
>> Hi,
>>
>> Please do $Subject for the patch attached at
>> https://wso2.org/jira/browse/IDENTITY-2044
>>
>> Thanks,
>> --
>> Regards,
>>
>>
>> *Darshana Gunawardana*Software Engineer
>> WSO2 Inc.; http://wso2.com
>>
>> *E-mail: darsh...@wso2.com  *
>> *Mobile: +94718566859 <%2B94718566859>*Lean . Enterprise . Middleware
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Regards,


*Darshana Gunawardana *Software Engineer
WSO2 Inc.; http://wso2.com

* E-mail: darsh...@wso2.com *
*Mobile: +94718566859*Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Usage of org.wso2.carbon.discovery.mediation.ext

2014-02-25 Thread Kasun Indrasiri
This is used when we use WS-Discovery with ESB (as a feature). This is used
when ESB get the dynamically discovered endpoints in to its endpoint list.


On Tue, Feb 25, 2014 at 3:32 PM, Eranda Sooriyabandara wrote:

> Hi Kasun,
> Is org.wso2.carbon.discovery.mediation.ext a component related to ESB? I
> checked in the ESB pack but I could not find it shipped inside it.
>
> thanks
> Eranda
>
> --
>
> *Eranda Sooriyabandara*Senior Software Engineer;
> Integration Technologies Team;
> WSO2 Inc.; http://wso2.com
> Lean . Enterprise . Middleware
>
> E-mail: eranda AT wso2.com
> Mobile: +94 716 472 816
> Linked-In: http://www.linkedin.com/in/erandasooriyabandara
> Blog: http://emsooriyabandara.blogspot.com/
>
>
>
>
>


-- 
Kasun Indrasiri
Software Architect
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

cell: +94 77 556 5206
Blog : http://kasunpanorama.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Adding new classes to the classpath of a bundle at runtime

2014-02-25 Thread Chathura Ekanayake
Hi All,

BPMN supports Java service tasks, which can execute Java classes within a
workflow. However, Java classes referred in these BPMN tasks has to be in
the classpath of Activiti.

Therefore, when a BPMN archive containing Java service tasks is deployed in
BPS, we have to put its Java classes into the classpath of the Activiti
bundle. Is there a way to do this? Is there a code that has already
implemented a similar scenario?

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


Re: [Dev] Behavior of SimpleRealmConfigBuilder and CommonLDAPRealmConfigBuilder in Authorizing Admin Role for /permission

2014-02-25 Thread Ajanthan Balachandran
As discussed with Asela offline, SimpleRealmConfigBuilder need to add same
permission(/permission/admin) to the tenant admin as
CommonLDAPRealmConfigBuilder since it gives wider permission.
I have created a jira[0] and attached the patch.
Please apply the patch to the patch0006.
Thanks




On Tue, Jan 21, 2014 at 2:33 PM, Ajanthan Balachandran wrote:

> Hi All,
> When i connected to JDBCUserstore with  SimpleRealmConfigBuilder after
> creating tenant i can observer that /permission is given to admin role
> of the tenant.
> but when i connected to LDAP user store with
> CommonLDAPRealmConfigBuilder i can see /permission/admin is given to
> admin role.
>
> If you look at the CommonLDAPRealmConfigBuilder there you can see that
> the AdminRoleManagementPermissions property is overwritten by
> /permission/admin but in
> SimpleRealmConfigBuilder it is cloned from bootstrap config.
>
> Shall we fix this ? Due to this problem we are not able to call
> Stratos admin APIs after connecting to LDAP.
>
> Thanks.
>
> --
> ajanthan
> --
> Ajanthan Balachandiran
> Senior Software Engineer;
> Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/
>
> email: ajant...@wso2.com; cell: +94775581497
> blog: http://bkayts.blogspot.com/
>
> Lean . Enterprise . Middleware
>



-- 
ajanthan
-- 
Ajanthan Balachandiran
Senior Software Engineer;
Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/

email: ajanthan @wso2.com; cell: +94775581497
blog: http://bkayts.blogspot.com/

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


[Dev] Usage of org.wso2.carbon.discovery.mediation.ext

2014-02-25 Thread Eranda Sooriyabandara
Hi Kasun,
Is org.wso2.carbon.discovery.mediation.ext a component related to ESB? I
checked in the ESB pack but I could not find it shipped inside it.

thanks
Eranda

-- 

*Eranda Sooriyabandara*Senior Software Engineer;
Integration Technologies Team;
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware

E-mail: eranda AT wso2.com
Mobile: +94 716 472 816
Linked-In: http://www.linkedin.com/in/erandasooriyabandara
Blog: http://emsooriyabandara.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Architecture] Dropping Registry-based DepSync support from Carbon 4.3.0

2014-02-25 Thread Sameera Jayasoma
On Tue, Feb 25, 2014 at 12:38 PM, Sagara Gunathunga  wrote:

>
>
>
> On Tue, Feb 25, 2014 at 12:09 PM, Kasun Gajasinghe wrote:
>
>> Hi,
>>
>> This is to update the lists that we have decided to drop the
>> Registry-based DepSync support from Carbon 4.3.0 release onward. We are
>> thinking to keep SVN-based DepSync for now but it'll be deprecated once the
>> GIT based DepSync is further stabilized.
>>
>
> Since both GIT and SVN are in mainstream In my POV we should support for
> SVN based DepSync for sometime, some people may keep want to use SVN.
>

We have to support SVN for sometime. Since it is the only tested
implementation at the moment and its being used in most of the places.

Thanks,
Sameera.

>
> Thanks !
>
>
>>
>> Thanks,
>> KasunG
>>
>>
>>
>
>
> --
> Sagara Gunathunga
>
> Senior Technical Lead; WSO2, Inc.;  http://wso2.com
> V.P Apache Web Services;http://ws.apache.org/
> Linkedin; http://www.linkedin.com/in/ssagara
> Blog ;  http://ssagara.blogspot.com
>
>
> ___
> Architecture mailing list
> architect...@wso2.org
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
Sameera Jayasoma,
Architect,

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://sameera.adahas.org
twitter: https://twitter.com/sameerajayasoma
flickr: http://www.flickr.com/photos/sameera-jayasoma/collections
Mobile: 0094776364456

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


[Dev] Carbon 5 - Building on latest Maven

2014-02-25 Thread Isuru Perera
Hi,

I hope the Carbon 5 will support building on latest Maven as of now (3.2.1)
[1].

I didn't try building, but I just wanted to inform.

Thanks!

Best Regards,

[1] http://maven.apache.org/docs/3.2.1/release-notes.html

-- 
Isuru Perera
Senior Software Engineer | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

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


[Dev] send file content in message body

2014-02-25 Thread Krishantha Dinesh
Hi,
I need to send file content in message body.
how i can achieve this ? any idea

i am referring this [1]

PUT /my-image.jpg HTTP/1.1
Host: myBucket.s3.amazonaws.com
Date: Wed, 12 Oct 2009 17:50:00 GMT
Authorization: *authorization string*
Content-Type: text/plain
Content-Length: 11434
Expect: 100-continue
[11434 bytes of object data]


[1] http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV] [BAM241] Cassandra indexing on Message Console

2014-02-25 Thread Inosh Goonewardena
On Tue, Feb 25, 2014 at 4:20 AM, Anjana Fernando  wrote:

> Hi Inosh,
>
> Yeah, that's true, so the point is, in the future, a publisher will not be
> able to anyway send events to the server without the toolbox being
> deployed, so that means, a toolbox being deployed will make sure, the index
> would have created for sure. So yeah, can you please put the explanation
> and resolve that issue as won't fix.
>

Sure. Will do.


> Cheers,
> Anjana.
>
>
> On Tue, Feb 25, 2014 at 2:15 AM, Inosh Goonewardena wrote:
>
>> Hi Anjana,
>>
>> As Maninda explained, index is only initialize with the define stream
>> process happens at the toolbox deployment. In this particular case stream
>> defining process was done by HL7 data publisher. But according the
>> conclusion of [1], we are planning to remove the define stream capabilities
>> from data agents and define all WSO2 inbuilt event definitions in
>> corresponding toolboxes. If that's the case, we are not going to need this
>> improvement. In addition, adding already received events to the index could
>> be a complex process depending on how much data is already exists in
>> corresponding CFs.
>>
>> [1] - [Architecture] Should we have one place to define event streams?
>>
>>
>> On Mon, Feb 24, 2014 at 7:24 AM, Pandula Kariyawasam wrote:
>>
>>> Hi Maninda/Inosh,
>>>
>>> As per the discussion had with Anjana, improvement added to address this
>>> matter, under BAM-1449 [1]
>>>
>>> [1] https://wso2.org/jira/browse/BAM-1449
>>>
>>> Thanks,
>>> Pandula
>>>
>>>
>>>
>>> On Sun, Feb 23, 2014 at 4:57 PM, Maninda Edirisooriya 
>>> wrote:
>>>
 Hi Pandula,

 AFAIK this is correct. Message search needs all the messages to be
 indexed for all the filter conditions. As index is only initialized by the
 toolbox and because the index is updated only at the message receive time,
 all the messages received before the toolbox is created will not get
 indexed.

 But Activity ID index is enabled by default AFAIK. So all the messages
 with an Activity ID will get indexed in the Activity ID, custom index,
 irrespective from the toolbox. That is the reason of appearing all the
 messages in the Activity ID search.

 Inosh, please correct me if there are any corrections.

 Thank you.


 * Maninda Edirisooriya*
 Software Engineer

 *WSO2, Inc.*lean.enterprise.middleware.

 *Blog* : http://maninda.blogspot.com/
 *Phone* : +94 777603226


 On Sun, Feb 23, 2014 at 3:45 PM, Pandula Kariyawasam 
 wrote:

> Hi All,
>
> I'm testing Message Console feature on BAM 2.4.1, which use Cassandra
> indexing for searching.
>
> I created some messages (HL7) in Cassandra before adding the indexing
> with HL7 toolbox. Then I created another set of messages after adding the
> toolbox.
>
> Now, when I search for messages, it will list only the messages which
> created after adding the toolbox.
> But When I load/search Activities, it will load all the messages,
> including messages created before toolbox adding.
>
> Is this the expected behavior?
>
> Thanks,
> Pandula
>
> --
>
> *Pandula Kariyawasam K.B.*
> *Senior Software Engineer - QA*
> Mobile: +94772314510
>
> 
>


>>>
>>>
>>> --
>>>
>>> *Pandula Kariyawasam K.B.*
>>> *Senior Software Engineer - QA*
>>> Mobile: +94772314510
>>>
>>> 
>>>
>>
>>
>>
>> --
>> Regards,
>>
>> Inosh Goonewardena
>> Associate Technical Lead- WSO2 Inc.
>> Mobile: +94779966317
>>
>
>
>
> --
> *Anjana Fernando*
> Technical Lead
>  WSO2 Inc. | http://wso2.com
> lean . enterprise . middleware
>



-- 
Regards,

Inosh Goonewardena
Associate Technical Lead- WSO2 Inc.
Mobile: +94779966317
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev