[Dev] [ESB] File Connector using SSH private key located in a custom location

2018-04-11 Thread Gayan Dhanushka
Hi all,

I have used the file connector in a scenario where the authentication to at
the back end file share has to happen through the ssh public key/ private
key pair of the ESB host. Currently I have the id_rsa key under the
/.ssh folder which is the default folder in which the file
connector / vfs trasnport looks for the private key.

Is there any possibility where we can copy the id_rsa key to one of the
locations inside the product (e.g repository/conf/keys) and refer to it in
the code rather than allowing file connector to look for it in the default
location ? ESB version is 5.0.0.

Regards
Gayan

-- 
Gayan Dhanushka
Associate Technical Lead
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Car file deployment order

2018-03-31 Thread Gayan Dhanushka
Hi Junior,

After the deployment of your car file which consists of the connector, can
you please check whether it is is enabled mode from the carbon console ?

Regards
Gayan

On Thu, Mar 29, 2018 at 11:56 PM, Shakila Sasikaran <shak...@wso2.com>
wrote:

> Hi Junior,
>
> You can manually edit the dependency order in the source view.
>
> But we can't change the deployment order of the artifact types.
> It will pick up the artifacts in this order Local entries --> Endpoints
> --> Sequences --> Message stores --> Templates --> Proxy services -->
> Tasks --> Events --> Message processors --> APIs --> Inbound endpoints -->
> Other types.
>
> For example, if we define the dependencies like this
>
>   
> 
>   com.example.A1.sequence
>   *BtestSequence*
>   1.0.0
>   xml
> 
> 
>   com.example.A1.sequence
>   *AtestSequence*
>   1.0.0
>   xml
> 
> 
>   com.example.A1.proxy-service
>   *AtestProxy*
>   1.0.0
>   xml
> 
> 
>   com.example.A1.proxy-service
>   *testProxy*
>   1.0.0
>   xml
> 
>   
>
> The deployment order would be this:
>
> 1. BtestSequence
> 2. AtestSequence
> 3. AtestProxy
> 4. testProxy
>
>
> Thanks
>
> On Thu, Mar 29, 2018 at 8:05 PM, Júnior <fjunio...@gmail.com> wrote:
>
>> Hi Gayan,
>>
>> That is weird. That is not working. Don't know the why. We tried that as
>> well.
>>
>> Thanks,
>>
>> 2018-03-29 10:48 GMT-03:00 Gayan Dhanushka <gay...@wso2.com>:
>>
>>> Hi Junior,
>>>
>>> The car files are deployed in alphabetical order. So if you have a car
>>> project which depends on another car project in order to make sure that the
>>> dependent project being deployed earlier you may have to prefix it with a
>>> name which has a higher alphabetical precedence.
>>>
>>> Regards
>>> Gayan
>>>
>>> On Wed, Mar 28, 2018 at 1:33 PM, Júnior <fjunio...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am facing an issue with car file order deployment:
>>>>
>>>> https://stackoverflow.com/questions/49541746/wso2-car-file-d
>>>> eployment-order
>>>>
>>>> Could someone help us on this?
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Francisco Ribeiro
>>>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>>>
>>>> ___
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Gayan Dhanushka
>>> Associate Technical Lead
>>> http://wso2.com/
>>> Lean Enterprise Middleware
>>>
>>> Mobile - LK- 071 666 2327
>>> Mobile USA - 612-244-4873 <(612)%20244-4873>
>>>
>>>
>>> Office
>>> Tel   : 94 11 214 5345
>>> Fax  : 94 11 214 5300
>>>
>>
>>
>>
>> --
>> Francisco Ribeiro
>> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Shakila Sasikaran
> Software Engineer
> Mobile :+94 (0) 77 526 6848 <+94%2077%20526%206848>
> shak...@wso2.com
> WSO2, Inc.
> lean . enterprise . middleware
> http://www.wso2.com/
>



-- 
Gayan Dhanushka
Associate Technical Lead
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Using useOriginalwsdl parameter in ESB proxy service

2018-03-29 Thread Gayan Dhanushka
We used this parameter in one of our proxy services and we did not
experience any side effects.

On Fri, Feb 16, 2018 at 8:28 AM, Gayan Dhanushka <gay...@wso2.com> wrote:

> Hi all,
>
> Came across a requirement where it was needed to publish the exact same
> WSDL that we create in a ESB proxy service.
>
> When we use the publishWSDL mediator to publish the contract that we had
> developed, the ESB generates its own version of the WSDL. Therefore we had
> to use the following parameter in the proxy service implementation to
> preserve the original WSDL.
>
> true
>
> Is there any harm or other implications in using this in the proxy
> services ? Is it essential to have more parameters along with this
> parameters?
>
> Thanks in advance.
>
> --
> Gayan Dhanuska
> Senior Software Engineer
> http://wso2.com/
> Lean Enterprise Middleware
>
> Mobile - LK- 071 666 2327
> Mobile USA - 612-244-4873 <(612)%20244-4873>
>
>
> Office
> Tel   : 94 11 214 5345
> Fax  : 94 11 214 5300
>



-- 
Gayan Dhanushka
Associate Technical Lead
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Car file deployment order

2018-03-29 Thread Gayan Dhanushka
Hi Junior,

The car files are deployed in alphabetical order. So if you have a car
project which depends on another car project in order to make sure that the
dependent project being deployed earlier you may have to prefix it with a
name which has a higher alphabetical precedence.

Regards
Gayan

On Wed, Mar 28, 2018 at 1:33 PM, Júnior <fjunio...@gmail.com> wrote:

> Hi,
>
> I am facing an issue with car file order deployment:
>
> https://stackoverflow.com/questions/49541746/wso2-car-
> file-deployment-order
>
> Could someone help us on this?
>
> Thanks,
>
> --
> Francisco Ribeiro
> *SCEA|SCJP|SCWCD|IBM Certified SOA Associate*
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Dhanushka
Associate Technical Lead
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Implementing a DSS-call mediator for invocation of data services.

2018-02-16 Thread Gayan Dhanushka
Hi Kasthuriraajan,

If we can improve the DBLookup mediator to retrieve more than a single row
in a database I think that is definitely an improvement.

If you are implementing this improvement, it seems to me like the name
"DSS-Call" is a bit misleading since we will not be doing an actual call.

How about something like "ExtendedDBLookup" or something similar ?

I am not clear on whether all the CRUD operations be supported with this
mediator. Then we would need to use a different name altogether.

+1 for the idea of bypassing the transport layers and directly talking to
the data service components to execute the queries.

Regards
Gayan

On Fri, Feb 16, 2018 at 1:25 AM, Kasthuriraajan Ratnasingam <
kasthuriraa...@wso2.com> wrote:

>
>
> Hi all,
>
> I am working on a project to implement a DSS-call mediator .
>
>
> * If we need to consume DSS service from an ESB sequence, we have to do a
> HTTP call using send or call mediator (just like any other remote HTTP
> service). This is a very inefficient way as HTTP call will introduce an
> additional latency and performance overhead. EI product comes with DSS
> feature built in but there is no way to properly avoid remote HTTP call
> when calling data service which hosted in the same server. We can avoid the
> HTTP call using local transport in the EI. However axis2 service invocation
> overhead is still there and we need to build a new request payload to
> invoke DSS service even with local transport.Even local transport gives a
> better performance than HTTP call, it is not a fully optimized solution.
> That's why this new project idea to build new DSS-Call mediator which can
> do direct data service calls without going through send or call mediator
> and http request (in JVM DSS invocation). The new approach is to come up
> with a DBLookup mediator style invocation for data service. DBLookup
> mediator can fetch only one row of the result of a query. Because of that
> we are using data service. So that the new mediator should have the
> privileges to invoke all the facilities of a data service with the in JVM
> call. *
> Please give your comments and suggestions regarding this project.
>
> Thank you.
>
> Regards,
> R.Kasthuriraajan.
>
> --
> R.Kasthuriraajan
> Software Engineering Intern | WSO2
> LinkedIn: https://www.linkedin.com/in/ratnasingam-kasthuriraajan-2a6892121
>
> Email: kasthuriraa...@wso2.com
> Mobile : +94779893005 <+94%2077%20989%203005>
> Web: http://wso2.com 
>
>


-- 
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Using useOriginalwsdl parameter in ESB proxy service

2018-02-16 Thread Gayan Dhanushka
Hi all,

Came across a requirement where it was needed to publish the exact same
WSDL that we create in a ESB proxy service.

When we use the publishWSDL mediator to publish the contract that we had
developed, the ESB generates its own version of the WSDL. Therefore we had
to use the following parameter in the proxy service implementation to
preserve the original WSDL.

true

Is there any harm or other implications in using this in the proxy services
? Is it essential to have more parameters along with this parameters?

Thanks in advance.

-- 
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Exception while invoking the API with GET resource in ESB 5.0.0

2017-12-13 Thread Gayan Dhanushka
Hi Dilusha,

Are you using a port offset in DSS ? If you are using a port offset and
making a HTTPS call to the DSS make sure that you are using 9443 + offset
as the port to invoke the data service.

Regards
Gayan

On Wed, Dec 13, 2017 at 7:29 PM, Irham Iqbal  wrote:

> Hi Dilusha,
>
> Seems like you have a problem with your data service. Make sure it's
> working by accessing the wsdl from your browser as below.
> https://10.100.7.44:9773/services/CUSTOMER_INPUT_DataService?wsdl
>
> Thanks,
> Iqbal
>
> On Thu, Dec 14, 2017 at 12:10 AM, Pubudu Gunatilaka 
> wrote:
>
>> Hi Dilusha,
>>
>> Based on the stack trace, it looks like you have a mismatch with the
>> protocol and the port. Make sure you have used the correct ports.
>>
>> Thank you!
>>
>> On Wed, Dec 13, 2017 at 7:49 PM, Firzhan Naqash  wrote:
>>
>>> Hi Dilusha,
>>>
>>> Can you set the Accept header with your CURL command?
>>>
>>> Regards,
>>> Firzhan
>>>
>>>
>>> email: firz...@wso2.com
>>> mobile: (+94) 77 9785674 <%28%2B94%29%2071%205247551>*|
>>> blog: http://firzhanblogger.blogspot.com/
>>>   *
>>> *twitter: https://twitter.com/firzhan007
>>>  | linked-in: 
>>> **https://www.linkedin.com/in/firzhan
>>> *
>>>
>>> On Wed, Dec 13, 2017 at 7:40 PM, Dilusha Alphonso 
>>> wrote:
>>>
 Hi All,

 I am trying to invoke an API deployed in WSO2ESB 5.0.0 with 'GET'
 resource. The endpoint of the API in a data service hosted in WSO2 DSS. I
 encountered an error in the console while invoking the API using cURL
 command

 Below is the error encountered in the console:

 [2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "GET /getcardata/10 HTTP/1.1[\r][\n]"
 [2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Host: 10.100.7.44:8280[\r][\n]"
 [2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "User-Agent: curl/7.52.1[\r][\n]"
 [2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Accept: */*[\r][\n]"
 [2017-12-13 19:21:07,890] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "Authorization: Bearer 2ad64c91-2757-3a2d-834b-32ca671e08fe[\r][\n]"
 [2017-12-13 19:21:07,891] DEBUG - wire HTTP-Listener I/O dispatcher-3
 >> "[\r][\n]"
 [2017-12-13 19:21:07,997]  WARN - SynapseJsonPath Json Payload is empty.
 [2017-12-13 19:21:08,006] ERROR - TargetHandler I/O error: Unrecognized
 SSL message, plaintext connection?
 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext
 connection?
 at sun.security.ssl.EngineInputRecord.bytesInCompletePacket(Eng
 ineInputRecord.java:156)
 at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:868)
 at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781)
 at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)
 at org.apache.http.nio.reactor.ssl.SSLIOSession.doUnwrap(SSLIOS
 ession.java:245)
 at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSL
 IOSession.java:280)
 at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady
 (SSLIOSession.java:410)
 at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputRea
 dy(AbstractIODispatch.java:119)
 at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(Base
 IOReactor.java:159)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEv
 ent(AbstractIOReactor.java:338)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEv
 ents(AbstractIOReactor.java:316)
 at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(A
 bstractIOReactor.java:277)
 at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseI
 OReactor.java:105)
 at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReacto
 r$Worker.run(AbstractMultiworkerIOReactor.java:586)
 at java.lang.Thread.run(Thread.java:748)
 [2017-12-13 19:21:08,007]  WARN - EndpointContext Endpoint :
 AnonymousEndpoint with address https://10.100.7.44:9773/servi
 ces/CUSTOMER_INPUT_DataService/ will be marked SUSPENDED as it failed
 [2017-12-13 19:21:08,007]  WARN - EndpointContext Suspending endpoint :
 AnonymousEndpoint with address https://10.100.7.44:9773/servi
 ces/CUSTOMER_INPUT_DataService/ - current suspend duration is :
 3ms - Next retry after : Wed Dec 13 19:21:38 IST 2017
 [2017-12-13 19:21:08,008]  INFO - LogMediator To: /getcardata/10,
 MessageID: urn:uuid:ceff8fa9-bc8e-4cf5-9272-9ed612aad557, Direction:
 request, MESSAGE = Executing default 'fault' sequence, ERROR_CODE = 101500,
 ERROR_MESSAGE = Error in Sender, Envelope: >>> encoding='utf-8'?>http://www.w3.o
 rg/2003/05/soap-envelope" 

Re: [Dev] Exception while clustering API Manager 2.1.0

2017-12-05 Thread Gayan Dhanushka
Hi Priya,

Please refer to [1] for the APIM 2.1.0 clustering deployment. The one you
are referring to is an older version.

Please note that in 2.1.0 distributed setup, the gateway nodes try to
connect to the broker running in traffic manager nodes via amqp to get
throttling messages. When tit cannot connect you get this error.

Please check the port in which the broker is running in the traffic manager
nodes.


[1]
https://docs.wso2.com/display/AM210/Distributed+Deployment+of+API+Manager

On Tue, Dec 5, 2017 at 10:32 PM, Dilusha Alphonso  wrote:

> Hi Piriya
>
> You can refer this mail thread 'Exception while start the Gateway node'. I
> also got the same problem while starting the gateway node.
>
> Thanks
> Dilusha
>
> On Wed, Dec 6, 2017 at 9:59 AM, Piriya Sivalingam  wrote:
>
>> Hi,
>>
>> I am trying to configure a cluster setup for API Manager. I followed the
>> document [1] to setup the cluster. But when I start the nodes I noticed
>> some errors logged in the console.
>> The error is:
>> [2017-12-06 09:39:29,791]  INFO - AMQConnection Unable to connect to
>> broker at tcp://localhost:5673
>> org.wso2.andes.transport.TransportException: Could not open connection
>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport$I
>> oConnectorCreator.connect(MinaNetworkTransport.java:216)
>> at org.wso2.andes.transport.network.mina.MinaNetworkTransport.
>> connect(MinaNetworkTransport.java:74)
>> at org.wso2.andes.client.AMQConnectionDelegate_8_0.makeBrokerCo
>> nnection(AMQConnectionDelegate_8_0.java:130)
>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:631)
>> at org.wso2.andes.client.AMQConnection$2.run(AMQConnection.java:628)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at org.wso2.andes.client.AMQConnection.makeBrokerConnection(AMQ
>> Connection.java:628)
>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:409)
>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>> AMQConnectionFactory.java:351)
>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>> AMQConnectionFactory.java:40)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createCon
>> nection(JMSUtils.java:387)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJ
>> MSConnection(JMSListener.java:137)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(
>> JMSListener.java:79)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(
>> JMSListener.java:186)
>> at java.lang.Thread.run(Thread.java:748)
>> org.wso2.andes.AMQConnectionFailureException: Could not open connection
>> at org.wso2.andes.client.AMQConnection.(AMQConnection.java:486)
>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>> AMQConnectionFactory.java:351)
>> at org.wso2.andes.client.AMQConnectionFactory.createConnection(
>> AMQConnectionFactory.java:40)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSUtils.createCon
>> nection(JMSUtils.java:387)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.checkJ
>> MSConnection(JMSListener.java:137)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.start(
>> JMSListener.java:79)
>> at org.wso2.carbon.apimgt.jms.listener.utils.JMSListener.run(
>> JMSListener.java:186)
>> at java.lang.Thread.run(Thread.java:748)
>>
>> [1] https://docs.wso2.com/display/CLUSTER420/Clustering+API+Manager
>>
>> Could you please let me know how to overcome this issue?
>>
>> Thank you
>> Piriya
>>
>> --
>> Regards,
>>
>> *Piriya Sivalingam*
>>
>> *Software Engineer - Support Team*
>>
>> *WSO2*
>> *Mobile : +94 77 8462039 <+94%2077%20846%202039>*
>>
>> [image: http://wso2.com/signature] 
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
> *Best Regards,Dilusha Alphonso*
>
> *Software Engineer - Support Team*
>
>
> *WSO2*
> *Mobile : *
>
> *+94766837098 <+94%2076%20683%207098>[image: http://wso2.com/signature]
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Not able to access xslt from inside wso2 xslt mediator. Please guide.

2017-11-20 Thread Gayan Dhanushka
Hi Aditya,

You have to provide the correct key to access the registry path in your
code.

e.g if you have stored your xslt in configuration registry, use 

[1] https://docs.wso2.com/display/ESB481/XSLT+Mediator
[2]
http://rangasiriwardena.blogspot.com/2011/07/how-to-use-dynamic-registry-keys-with.html

Regards

On Mon, Nov 20, 2017 at 10:25 AM, aditya shivankar <
shivankar.adit...@gmail.com> wrote:

> Respected Sir,
>
> Now I tried  putting xsl file  under registry, still not able to use it.
> Please check  the screenshot attached.
> Could you please send the screenshot of your workspace in eclipse (similar
> to the attached screenshot), showing where to keep the xslt in project
> structure and also project xml file showing how you access it.
>
> With Regards,
> Aditya
>
>
> On Mon, Nov 20, 2017 at 11:42 AM, aditya shivankar <
> shivankar.adit...@gmail.com> wrote:
>
>> Respected Sir/Madam,
>>
>> Now I tried  putting xsl file  under registry, still not able to use it.
>> Please check  the screenshot attached.
>> Could you please send the screenshot of your workspace in eclipse
>> (similar to the attached screenshot), showing where to keep the xslt in
>> project structure and also project xml file showing how you access it.
>>
>> With Regards,
>> Aditya
>>
>> On Wed, Nov 15, 2017 at 7:41 PM, Saneth Dharmakeerthi 
>> wrote:
>>
>>> Hi Aditya,
>>>
>>> It seems you have put the XSLT in API folder and try to access it in
>>> incorrect way.
>>>
>>> You can do this by either one of following ways and the first one is the
>>> recommended.
>>>
>>>
>>>1.  Put the XSLT to the registry. you can find more information
>>>in[1][3]. If you change the xslt in registry it will effect imidiatly.
>>>2. Put it as local entry[1][2], XSLT change exffect only after next
>>>API or peoxy deployment.
>>>   - 
>>>
>>> 
>>>
>>>
>>> [1]https://docs.wso2.com/display/ESB500/Sample+8%3A+Introduc
>>> tion+to+Static+and+Dynamic+Registry+Resources+and+Using+XSLT
>>> +Transformations
>>> [2] http://mytecheye.blogspot.com/2013/12/wso2-esb-xslt-medi
>>> ator-xslt-imports.html
>>> [3] https://www.linkedin.com/pulse/wso2-esb-message-transfor
>>> mation-mapping-using-xslt-isuru-jayakantha
>>>
>>>
>>>
>>> Thanks and Best Regards,
>>>
>>> Saneth Dharmakeerthi
>>> *Associate Technical Lead*
>>> WSO2, Inc.
>>> Mobile: +94772325511 <+94%2077%20232%205511>
>>>
>>> 
>>>
>>> On Wed, Nov 15, 2017 at 6:40 PM, aditya shivankar <
>>> shivankar.adit...@gmail.com> wrote:
>>>
 Respected Sir,

 I have one xslt .
 I have saved it inside api(src/main/synapse-config/api) folder in my
 project.
 I am trying to access it using xslt mediator like below.

 

 But getting below error.Full logs can be found in attachment .

 [2017-11-15 18:11:39,128] [EI-Core]  INFO - DependencyTracker Local
 entry : api/test.xsl was added to the Synapse configuration successfully
 [2017-11-15 18:11:39,129] [EI-Core]  WARN - SynapseConfigUtils Cannot
 convert null to a StreamSource
 [2017-11-15 18:11:39,131] [EI-Core] ERROR - XSLTMediator Error creating
 XSLT transformer using : Value {name ='null', keyValue ='api/test.xsl'}
 org.apache.synapse.SynapseException: Cannot convert null to a
 StreamSource
 at org.apache.synapse.config.SynapseConfigUtils.handleException
 (SynapseConfigUtils.java:580)
 at org.apache.synapse.config.SynapseConfigUtils.getStreamSource
 (SynapseConfigUtils.java:81)
 at org.apache.synapse.mediators.transform.XSLTMediator.createTe
 mplate(XSLTMediator.java:420)
 at org.apache.synapse.mediators.transform.XSLTMediator.performX
 SLT(XSLTMediator.java:268)
 at org.apache.synapse.mediators.transform.XSLTMediator.mediate(
 XSLTMediator.java:227)
 ---
 I tried printing body/jsonObject just one line before call to xslt. And
 it printed full payload, somewhat like below. So the payload is not empty.

 .

 
 
 

 Please Guide.

 With Regards,
 Aditya


 ___
 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
>
>


-- 
Gayan Dhanuska
Senior Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile - LK- 071 666 2327
Mobile USA - 612-244-4873


Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [TFL-TDS] How to query with multiple fields in DAS analytics/search api

2016-02-16 Thread Gayan Dhanushka
Hi all,

I am using [1] to retrieve some data from an event store. I have all the
required fields indexed in it. I am trying to query with multiple
attributed as per following curl command which seems to be not working.

*curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic
YWRtaW46YWRtaW4=" -v https://172.17.0.1:9448/analytics/search
 -d
'{"tableName":"ORG_TFL_GOV_ERROR_CODES",
"query":"error_name:GLB_Java_Parse_Exception AND
correlation_date:15-02-2016", "start":0, "count":3}' -k*

*response*

[
   {
  "id":"11eb5c96-7753-e62f-bcdd-df440859299e",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455543492647E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"TDS-Java-ParseException-1005",
 "correlation_date":"*15-02-2016*",
 "file_name":"001_247703b0a218_2013-09-19-00_00_02_65.99001",
 "file_type":"122",
 "correlation_timestamp":1.455543492648E12
  }
   },
   {
  "id":"bedd3b97-8ce7-ee6f-8485-1168199ca648",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455621910429E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"GLB_Java_Parse_Exception",
 "correlation_date":"*16-02-2016*",
 "file_name":"001_247703b0a218_2013-09-18-00_00_01_65.99001",
 "error_desc":"Java Parse Exception Returned by the following class
: class org.tfl.gov.MessageBuilder",
 "file_type":"HEALTHCHECK",
 "correlation_timestamp":1.455621910429E12
  }
   },
   {
  "id":"c2f7488a-ea9c-f224-fc28-79ea0669813b",
  "tableName":"ORG_TFL_GOV_ERROR_CODES",
  "timestamp":1.455459013158E12,
  "values":{
 "_version":"1.0.0",
 "error_name":"GLB_Java_Parse_Exception",
 "error_code":"TDS-Java-ParseException-1005",
 "correlation_date":"*01-01-2016*",
 "file_name":"xyz",
 "file_type":"HEALTHCHECK",
 "correlation_timestamp":1.451685333E12
  }
   }
]

Please note that even though I am using correlation_date:15-02-2016 in the
query I have received results for other dates as well.

Can someone explain this. What am I doing wrong in here ?


[1]
https://docs.wso2.com/display/DAS300/Retrieving+All+Records+Matching+the+Given+Search+Query+via+REST+API

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory][Kubernetes][DevSetup] Issue in appfactory dev setup with kubernates and docker

2015-11-10 Thread Gayan Dhanushka
I also observed an issue where even I undeploy the  applications in stratos
the pods keep on spawning. Seems like the openstack instance is crowded at
the moment. The pods take a long time to start.

On Tue, Nov 10, 2015 at 6:08 PM, Amalka Subasinghe  wrote:

> I'm also getting similar issues these days. I think resources are not
> enough in the openstack instance
>
> On Tue, Nov 10, 2015 at 5:44 PM, Pubudu Gunatilaka 
> wrote:
>
>> Hi,
>>
>> Restarting the cartridge agent will not work and it will halt at the
>> instance initialization. If the application went from Active to  Deploy
>> state, then most probably faulty member has detected and a new docker
>> instance has spawned.
>>
>> Can you attach the agent log in one of the docker containers?
>>
>> Thank you!
>>
>> On Tue, Nov 10, 2015 at 5:24 PM, Anuruddha Premalal 
>> wrote:
>>
>>> Hi Roshan,
>>>
>>> Can you check whether your teant is subscribed to the cartridge? (you
>>> could use stratos rest api).
>>>
>>> Try with a new tenant. This might probably be due to a subscription
>>> issue.
>>>
>>> On Tue, Nov 10, 2015 at 5:15 PM, Roshan Deniyage 
>>> wrote:
>>>
 Hi All,
 I'm working with new appfactory dev setup with kubenetes and
 docker. In appfactory side the setup works fine and when app is created it
 successfully get commit to s2git (git server which cartridge agent get
 artifact from).

 But, I'm facing an issue getting the artifact deployed to the
 cartridge. The trouble shooting steps are as follows,

 * After the dev setup is completed I restarted mq, activemq, stratos, 3
 greg servers, jenkins and appfactory in the given order.
 * Then executed the "executor.sh" script which is inside the ppass to
 subscribe to stratos since the setup is not executing it successfully.
 * Then 3 applications in the stratos for dev, test and prod env, show
 the applications are in "deployed" state but never becomes "active".
 * Hence, I logged into 3 docker instances and restated the wso2app
 servers. (cartridge)
 * Then, 3 applications became active.
 * But, once I create a new application, it goes upto s2git but not
 deploying in the cartridge.
 * Then, I restarted the cartridge agents in 3 docker instance but it
 cause to become 3 stratos applications to "deployed" state from "active"
 stage.
 * The agent logs doesn't show any error messages.

 I have no clue what's going on. If someone has any idea how to find the
 root cause, that  would be great.


 Thanks,
 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406 / +1 408 667 6254
 Twitter:  *https://twitter.com/roshku *
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


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


>>>
>>>
>>> --
>>> *Anuruddha Premalal*
>>> Software Eng. | WSO2 Inc.
>>> Mobile : +94717213122
>>> Web site : www.anuruddha.org
>>>
>>>
>>> ___
>>> 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 : +94774079049 <%2B94772207163>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Amalka Subasinghe
> Senior Software Engineer
> WSO2 Inc.
> Mobile: +94 77 9401267
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Gayan Dhanushka
Hi Isura,

Thanks a lot. I corrected my request.

Regards

On Tue, May 12, 2015 at 7:57 PM, Isura Karunaratne is...@wso2.com wrote:

 Corrected curl command.

 curl -v -k --user admin:admin --data {schemas:[],title: Mr,
 addresses: { region: colombo }, name: { familyName: dhanushka,
 givenName: gayan }, userName: gayand, password: gayandd,
 emails: [ { primary: true, value: gayanl...@gmail.com, type:
 home }, { value: gay...@wso2.com, type: work } ] } --header
 Content-Type:application/json https://localhost:9443/wso2/scim/Users


 On Tue, May 12, 2015 at 1:55 PM, Isura Karunaratne is...@wso2.com wrote:

 Hi Gayan,

 region is a part of address. So your request should be like below. (
 urn:scim:schemas:core:1.0:*addresses*.region)

 curl -v -k --user admin:admin --data {schemas:[],title: Mr,
 addresses: { region: colombo }, name:erName: gayand, password:
 gayandd, emails: [ { primary: true, value: gayanl...@gmail.com,
 type: home }, { value: gay...@wso2.com, type: work } ] }
 --header Content-Type:application/json
 https://localhost:9443/wso2/scim/Users


 Thanks
 Isura

 On Tue, May 12, 2015 at 10:56 AM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi all,

 Need some clarity on SCIM claim dialect.

 I tried to add some claims which are described in urn:scim:schemas:core:1.0

 https://localhost:9443/carbon/claim-mgt/claim-view.jsp?store=Internaldialect=urn:scim:schemas:core:1.0
 claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
 not getting added.

 However some claims got set (e.g. urn:scim:schemas:core:1.0:title)

 *Request*

 curl -v -k --user admin:admin --data
 {schemas:[],title:Mr,region:colombo,name:{familyName:dhanushka,givenName:gayan},userName:gayan,password:gayan,emails:[{primary:true,value:
 gayanl...@gmail.com,type:home},{value:gay...@wso2.com,type:work}]}
 --header Content-Type:application/json
 https://localhost:9443/wso2/scim/Users


 *Response*


 {id:b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9,title:Mr,schemas:[urn:scim:schemas:core:1.0],name:{familyName:dhanushka,givenName:gayan},userName:gayan,emails:[{value:
 gayanl...@gmail.com,type:home},{value:gay...@wso2.com
 ,type:work}],meta:{lastModified:2015-05-12T16:47:40,location:
 https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
 ,created:2015-05-12T16:47:40}}

 Any particular reason for this behavior ?


 Regards



 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd

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




 --
 Isura Dilhara Karunaratne
 Senior Software Engineer

 Mob +94 772 254 810




 --
 Isura Dilhara Karunaratne
 Senior Software Engineer

 Mob +94 772 254 810




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Some claims mapped in the SCIM claim dialect are not set when we send those with the create user request

2015-05-12 Thread Gayan Dhanushka
Hi all,

Need some clarity on SCIM claim dialect.

I tried to add some claims which are described in urn:scim:schemas:core:1.0
https://localhost:9443/carbon/claim-mgt/claim-view.jsp?store=Internaldialect=urn:scim:schemas:core:1.0
claim dialect.(e.g. urn:scim:schemas:core:1.0:addresses.region). But It was
not getting added.

However some claims got set (e.g. urn:scim:schemas:core:1.0:title)

*Request*

curl -v -k --user admin:admin --data
{schemas:[],title:Mr,region:colombo,name:{familyName:dhanushka,givenName:gayan},userName:gayan,password:gayan,emails:[{primary:true,value:
gayanl...@gmail.com,type:home},{value:gay...@wso2.com,type:work}]}
--header Content-Type:application/json
https://localhost:9443/wso2/scim/Users


*Response*

{id:b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9,title:Mr,schemas:[urn:scim:schemas:core:1.0],name:{familyName:dhanushka,givenName:gayan},userName:gayan,emails:[{value:
gayanl...@gmail.com,type:home},{value:gay...@wso2.com
,type:work}],meta:{lastModified:2015-05-12T16:47:40,location:
https://localhost:9443/wso2/scim/Users/b60eec86-ce16-4de3-b1ba-cb1c42c3d2f9
,created:2015-05-12T16:47:40}}

Any particular reason for this behavior ?


Regards



-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV] [ESB] test case for using RequestHashGenerator in cache mediator

2015-03-31 Thread Gayan Dhanushka
Hi Ishan,


Please merge pull request [1] done for [2].

[1] https://github.com/wso2/product-esb/pull/112
[2] https://wso2.org/jira/browse/APIMANAGER-1838

Regards
Gayan

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Remove the OSGIness of ApplicationManagementService

2015-03-29 Thread Gayan Dhanushka
I am -1 for moving deleteApplication method from
ApplicationMangementService since it is not related to either
ApplicationUserManagemet of ApplicationInfo.

+1 for Danushka.

Please go ahead and do the refactoring. As long as it is conceptually and
architecturally correct do not hesitate to change things.

Regards
Gayan


On Sun, Mar 29, 2015 at 12:38 PM, danush...@wso2.com wrote:

  Guys
 No one is stopping changing the BPELs. I don't like the idea of keeping it
 because bpels are using it. Who said you cannot change the bpels. If  you
 are saying this is a soap api for users +1. But -1 for the idea that it’s
 used by the bpels reasoning.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 *From:* Mahesh Chinthaka mahe...@wso2.com
 *Sent:* ‎Sunday‎, ‎March‎ ‎29‎, ‎2015 ‎11‎:‎09‎ ‎AM
 *To:* Punnadi Gunarathna punn...@wso2.com
 *Cc:* WSO2 Developers' List dev@wso2.org

 Hi Asanka,
 we cannot just deprecate that service at the moment since BPELs are using
 it. If we do, we have to change BPELs and other stuff where its going to be
 a huge refactoring :)

 On Sat, Mar 28, 2015 at 11:28 PM, Punnadi Gunarathna punn...@wso2.com
 wrote:

 Hi,

 And of course the BPELs will invoke the methods in
 ApplicationManagementService.
 Hi Asanka,

 Think of a scenario where jenkins plugin or other service which is hosted
 outside AF runtime wanted to perform Application operations; then exposing
 them as a web service is the way. I think that's the rationale behind
 making ApplicationManagementService  a SOAP one.

 Regards,
 Anuruddha.

 On Sat, Mar 28, 2015 at 10:37 AM, Asanka Dissanayake asan...@wso2.com
 wrote:

 Yes ,Punnadi. I get the point that all the methods are moved to
 ApplicationInfoService.Given that all the methods are moved to
 ApplicationInfoService and whoever wants to consume those methods can use
 ApplicationInfoService.
 But why ApplicationManagementService is going to be a SOAP service, if
 all the methods were in this class moved to another class why can't it
 cannot just deprecated ? What is the goal trying to achieve by making it
 only a SOAP service.




 On Sat, Mar 28, 2015 at 1:27 PM, Punnadi Gunarathna punn...@wso2.com
 wrote:

 Hi Asanka,

 Yes, ApplicationManagementService will become a simple axis2 device and
 it's osginess will be removed. Why we needed this refactoring is, currently
 it contains large number of the methods despite their actual place. We have
 a separate class called ApplicationInfoService, which should contain all
 the application specific methods and  ApplicationUserMgtService which
 should contain the user specific methods. Those classes are OSGi services.
 On Mar 28, 2015 9:25 PM, Mahesh Chinthaka mahe...@wso2.com wrote:

 Hi Asanka,

 This is not reverting back what was done early. These methods will be
 called via OSGI calls in future too.
 Only change will be these methods will be moved from
 ApplicationManagementService to ApplicationInfoService.
 So no osgi methods will be available in ApplicationManagementService.
 Instead all application related osgi methods will be in
 ApplicationInfoService.

 Did I clear your doubt ?

 On Sat, Mar 28, 2015 at 9:13 PM, Asanka Dissanayake asan...@wso2.com
 wrote:

 Hi Mahesh,
 Please find my comments inline.

 On Wed, Mar 18, 2015 at 10:58 AM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi all,
 Im working on [a]

 At the moment we have
 1. ApplicationManagementService
 2. ApplicationInfoService
 3. ApplicationUserMgtService

 All the tasks/methods that UI needs to do related with users will be
 in ApplicationUserMgtService (IMO ideally this service should be 
 renamed as
 UserManagementService).
 All the tasks/methods that UI needs to related with applications
 will be in ApplicationInfoService.

 +1 for refactoring the names


 At the moment ApplicationManagementService has both user related
 tasks as well as application related tasks.
 What I'm going to do is identify those methods and move accordingly
 to either ApplicationUserMgtService or ApplicationInfoService. In that 
 way
 ApplicationManagementService will no longer be a osgi service and it 
 will
 only be a soap service.

 Could you please explain the rationale behind the decision of
 removing the OSGInes ? AFAIK, these services are called by Jaggery App 
 and
 some other components too.
  AFAIR, we did a refactoring once in Jaggery App , removing all the
 web service calls and made them OSGI service calls .Reason behind that 
 was,
 when there is a web service call it consumes a 1 thread in the connection
 pool just to call to a service in the same server. So we did that to save
 some connections and call something that is available during the runtime.

 What is the reason to revert that back ? Is that something related to
 clustering?


 Here are the methods that I have identified,

 [1] - getApplication(applicationKey)

 [2] - deleteApplication(applicationKey)

 [3] - getApplicationUrl(applicationKey, 

Re: [Dev] [Jaggery][AF] - Appfactory appmgt module layer exception handling - throw e or throw msg

2015-03-16 Thread Gayan Dhanushka
Hi Mahesh,

+1 for throwing an error message.

A message of the format mentioned above would be good for logging. IMO
throwing a simple message is enough to be displayed to the user.

Regards
Gayan

On Mon, Mar 16, 2015 at 3:00 PM, Danushka Fernando danush...@wso2.com
wrote:

 We dont need to give that detailed error message to the user. But having
 an error message saying what has been failed like jenkins job creation
 failed or git repo creation failed would be good IMO.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Mon, Mar 16, 2015 at 2:53 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi,
 +1 for throwing the message.
 But another question,
 At the moment we have put all details possible for the message. eg:
 tenant domain, username ,application type etc.
 But when it comes to user (front end) i think message should be simple.

 For an example.
 Lets say an error occurred while creating an application.

 should the message diplayed on the UI be like ,
 var msg =  Application creation failed!!
 or
 var msg = Error while creating application :  + applicationName + 
 with application key :  + applicationKey
   +  of application type :  + applicationType +  and
 version :  + version +  for the user : 
   + userName +  of tenant domain :  + tenantDomain + .

 On Mon, Mar 16, 2015 at 2:44 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Since this is about sending an error message for front end IMO both ways
 are ok for me. And since we are showing the error message we are throwing I
 guess we need to throw the message.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Mon, Mar 16, 2015 at 2:40 PM, Mahesh Chinthaka mahe...@wso2.com
 wrote:

 Hi all,

 In AF appmgt module layer,
 when we catch a exception what is the correct way to handle it.

 var msg = Some error msg;
 log.error(msg);
 log.error(e);
 *throw e; *
 or
 *throw msg;*

 In appfactory we get the error message thrown in the module layer to
 front and display it in UI in the top section of the page with a red bar.
 So if we thew e, the GUI will get a big error message displayed with
 all the stack trace details.


 Whats the best way ??

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

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





 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com



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




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] Getting java.lang.SecurityException: Illegal access attempt to cache when trying to access a cache a

2015-03-13 Thread Gayan Dhanushka
Hi all,

I am getting $subject while trying to invoke
*ApplicationsOfUserCache.getApplicationsOfUserCache().isUserInvitedToApplication(userName);*
Following is the stack trace. Any idea on this issue ?

[2015-03-13 06:22:18,794] ERROR {module/application/get/list.jag} -  Error
while getting application of userjava.lang.SecurityException: Illegal
access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
tenant {[man.com],[9]}
[2015-03-13 06:22:18,795] ERROR
{org.jaggeryjs.jaggery.core.manager.WebAppManager} -
org.mozilla.javascript.JavaScriptException: Error while getting application
of userJavaException: java.lang.SecurityException: Illegal access attempt
to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
(/appmgt/modules/application/get/list.jag#564)
org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.JavaScriptException: Error while getting application
of userJavaException: java.lang.SecurityException: Illegal access attempt
to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
(/appmgt/modules/application/get/list.jag#564)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
at
org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
at
org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
at
org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
at
org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.mozilla.javascript.JavaScriptException: Error while getting
application of userJavaException: java.lang.SecurityException: Illegal
access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
tenant {[man.com],[9]} (/appmgt/modules/application/get/list.jag#564)
at
org.jaggeryjs.rhino.appmgt.modules.application.get.c0._c_anonymous_25(/appmgt/modules/application/get/list.jag:564)
at
org.jaggeryjs.rhino.appmgt.modules.application.get.c0.call(/appmgt/modules/application/get/list.jag)
at
org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at

Re: [Dev] [App Factory] Getting java.lang.SecurityException: Illegal access attempt to cache when trying to access a cache a

2015-03-13 Thread Gayan Dhanushka
I found out that this was happening due to a new method introduced to check
whether users are added to newly created applications applications. A
distributed cache being initialized using the super user and then accessed
via the tenant and it caused this issue. Starting tenant flow before
initializing the cache for the first time solved this issue.

On Fri, Mar 13, 2015 at 12:11 PM, Danushka Fernando danush...@wso2.com
wrote:

 Error says Illegal access attempt to cache ] owned by tenant
 {[carbon.super],[-1234]} by tenant {[man.com*],[9]}*. I guess that's the
 cause.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Mar 13, 2015 at 12:08 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I am getting $subject while trying to invoke
 *ApplicationsOfUserCache.getApplicationsOfUserCache().isUserInvitedToApplication(userName);*
 Following is the stack trace. Any idea on this issue ?

 [2015-03-13 06:22:18,794] ERROR {module/application/get/list.jag} -
 Error while getting application of userjava.lang.SecurityException: Illegal
 access attempt to cache ] owned by tenant {[carbon.super],[-1234]} by
 tenant {[man.com],[9]}
 [2015-03-13 06:22:18,795] ERROR
 {org.jaggeryjs.jaggery.core.manager.WebAppManager} -
 org.mozilla.javascript.JavaScriptException: Error while getting application
 of userJavaException: java.lang.SecurityException: Illegal access attempt
 to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
 (/appmgt/modules/application/get/list.jag#564)
 org.jaggeryjs.scriptengine.exceptions.ScriptException:
 org.mozilla.javascript.JavaScriptException: Error while getting application
 of userJavaException: java.lang.SecurityException: Illegal access attempt
 to cache ] owned by tenant {[carbon.super],[-1234]} by tenant {[man.com],[9]}
 (/appmgt/modules/application/get/list.jag#564)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571)
 at
 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273)
 at
 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:541)
 at
 org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
 at
 org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
 at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
 at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
 at
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run

Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-12 Thread Gayan Dhanushka
Hi Anuruddha/ Danushka,

FYI, I checked the code again and noticed that calling getAllAppsOfUser
from the user home page is not needed anymore. It is used in the eventing
page template. So updating the application_list in session from the
notification wall template is enough. Further more application_list is
not the attribtue in the session which is used to draw the user home page.
It is USER_HOME_CACHE attribute the one which is used.

So I think it is safe to remove the recurring getAllAppsOfUser from the
user home page.

WDYT ?

Regards
Gayan

On Thu, Mar 12, 2015 at 12:59 PM, Anuruddha Premalal anurud...@wso2.com
wrote:

 Hi Gayan,

 IMO we should cache user data in the session cache and the application
 data should go to the application level cache. This way we can get rid of
 unwanted back-end calls and do proper cache invalidation.

 So IMO the proper way to do this is to have a clear data separation in
 caching layers rather than increasing callbacktime.

 WDYT?

 Regards,
 Anuruddha.

 On Wed, Mar 11, 2015 at 12:33 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Danushka,

 Thanks for the useful information. Yes. The cache is in the session. Me
 too believe that the 1 minute time difference is too soon.

 +1 for increasing it.

 Regards
 Gayan

 On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando danush...@wso2.com
 wrote:

 I didn't check the code. However I guess cache is in session. Is that
 right? So say A logs in to AF and do whatever stuff. And B logs in to AF
 and create an application foo and add A to that foo application. Then there
 is no way to update the cache unless we read it from data layer time to
 time. If this is not the case picture in my head is wrong so please correct
 it.
 However 1 minute seems too soon.

1. Make it configurable
2. Increase it to somewhere like 10 - 15 minutes.

 WDYT?

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi all,

 I noticed $subject in the index page. Any particular reason for having
 this ? Since we have a cache for user home data, IMO we do not need this
 anymore. Data from the back end can only be read initially.

 Regards
 Gayan

 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd





 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd

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




 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Gayan Dhanushka
Hi Manjula,

Since we don't send mails when the users are invited to an application as
of yet we would be needing some other way of doing this if it is essential.
IMO, a messaging mechanism won't work since this is the logged in user's
session that we are talking about. Another thing that we can do is to
notify the user via the user notification wall.

WDYT ?

Regards

On Thu, Mar 12, 2015 at 2:31 PM, Manjula Rathnayake manju...@wso2.com
wrote:

 Hi all,

 IMO, the current behavior is ok because inviting to an application is
 followed by an email and we can mention to login in and check.

 But if above is really an issue we need to attend, we should be able to
 use guaranteed delivery messages to send the new event about new
 application and update the applications in session.

 thank you.


 On Thu, Mar 12, 2015 at 2:13 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 Let's look at a simple scenario.

 User A and User B logs into AF. User A creates an application and invite
 user B into that application. Currently until user B logs out and login, he
 does not see the application. This is due to keeping user's application
 information in the session. The application information in the session is
 updated only when the user logs in.

 One thing that can be done is we can have a back end cache to track the
 users who are invited to an application and during the user home page load,
 a back end check can be done to check the cache and update the user home by
 reloading the application list.

 But this may introduce a overhead to the user home page.

 WDYT ?

 Regards
 Gayan

 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] User's invited to an application does not see the application until re login

2015-03-12 Thread Gayan Dhanushka
Hi all,

Let's look at a simple scenario.

User A and User B logs into AF. User A creates an application and invite
user B into that application. Currently until user B logs out and login, he
does not see the application. This is due to keeping user's application
information in the session. The application information in the session is
updated only when the user logs in.

One thing that can be done is we can have a back end cache to track the
users who are invited to an application and during the user home page load,
a back end check can be done to check the cache and update the user home by
reloading the application list.

But this may introduce a overhead to the user home page.

WDYT ?

Regards
Gayan

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-11 Thread Gayan Dhanushka
Hi all,

I noticed $subject in the index page. Any particular reason for having this
? Since we have a cache for user home data, IMO we do not need this
anymore. Data from the back end can only be read initially.

Regards
Gayan

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] User home data is read from the backend after if last access time is over 1 minute

2015-03-11 Thread Gayan Dhanushka
Hi Danushka,

Thanks for the useful information. Yes. The cache is in the session. Me too
believe that the 1 minute time difference is too soon.

+1 for increasing it.

Regards
Gayan

On Wed, Mar 11, 2015 at 1:38 PM, Danushka Fernando danush...@wso2.com
wrote:

 I didn't check the code. However I guess cache is in session. Is that
 right? So say A logs in to AF and do whatever stuff. And B logs in to AF
 and create an application foo and add A to that foo application. Then there
 is no way to update the cache unless we read it from data layer time to
 time. If this is not the case picture in my head is wrong so please correct
 it.
 However 1 minute seems too soon.

1. Make it configurable
2. Increase it to somewhere like 10 - 15 minutes.

 WDYT?

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Mar 11, 2015 at 1:13 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I noticed $subject in the index page. Any particular reason for having
 this ? Since we have a cache for user home data, IMO we do not need this
 anymore. Data from the back end can only be read initially.

 Regards
 Gayan

 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd





-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] Build id is displayed but there is not deployment id information for Jaggery applications

2015-03-03 Thread Gayan Dhanushka
Hi all,

Suppose we move away from the Jenkins freestyle builds that we are
triggering currently. Then we will not have a build number anyway. In that
case we need to have an alternative approach. One would be to show the last
deployed time since we already have that information in the AF_DEPLOY table
in the runtime database.

Then again this would affect the consistency of the user experience.

WDYT ?

Regards
Gayan

On Fri, Feb 27, 2015 at 8:25 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Danushka,

 There is an attribute already called isBuildable. As I noticed the
 deployment information is now shown for non buildable application types but
 we are showing the build id (build id generated from the free style jenkins
 build). IMO this is incorrect since the build id would mislead the user. So
 I am +1 for having something like Manisha has mentioned.

 WDYT?

 Regards
 Gayan

 On Fri, Feb 27, 2015 at 6:58 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Gayan
 IMO we should have some configuration like buildable (AFAIR we already
 have this) in apptype and according to that we should draw the build
 section.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Feb 27, 2015 at 4:34 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I am working on [1] and the I got some things to clarify. For apptypes
 with the build having a meaning (java web app, jaxrs, jaxws) we show a last
 build id,status and last deployed build id on the UI. But for jaggery
 applications in which we do not trigger an actual build, it does not make
 much sense to show the last build id (currently there is no wall message
 for a jaggery build as well). Showing the Build ${id} Deployed is also
 misleading. But when a user does some change in the application and commit
 it there should be some kind of a message for the user to understand
 whether his changes are there in the currently deployed version of the
 application as well.

 What would be the appropriate thing to do in here?

 [1] https://wso2.org/jira/browse/APPFAC-2978

 Regards
 Gayan

 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd

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





 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] Build id is displayed but there is not deployment id information for Jaggery applications

2015-02-27 Thread Gayan Dhanushka
Hi Danushka,

There is an attribute already called isBuildable. As I noticed the
deployment information is now shown for non buildable application types but
we are showing the build id (build id generated from the free style jenkins
build). IMO this is incorrect since the build id would mislead the user. So
I am +1 for having something like Manisha has mentioned.

WDYT?

Regards
Gayan

On Fri, Feb 27, 2015 at 6:58 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Gayan
 IMO we should have some configuration like buildable (AFAIR we already
 have this) in apptype and according to that we should draw the build
 section.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Feb 27, 2015 at 4:34 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I am working on [1] and the I got some things to clarify. For apptypes
 with the build having a meaning (java web app, jaxrs, jaxws) we show a last
 build id,status and last deployed build id on the UI. But for jaggery
 applications in which we do not trigger an actual build, it does not make
 much sense to show the last build id (currently there is no wall message
 for a jaggery build as well). Showing the Build ${id} Deployed is also
 misleading. But when a user does some change in the application and commit
 it there should be some kind of a message for the user to understand
 whether his changes are there in the currently deployed version of the
 application as well.

 What would be the appropriate thing to do in here?

 [1] https://wso2.org/jira/browse/APPFAC-2978

 Regards
 Gayan

 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd

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





-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] Build id is displayed but there is not deployment id information for Jaggery applications

2015-02-27 Thread Gayan Dhanushka
Hi all,

I am working on [1] and the I got some things to clarify. For apptypes with
the build having a meaning (java web app, jaxrs, jaxws) we show a last
build id,status and last deployed build id on the UI. But for jaggery
applications in which we do not trigger an actual build, it does not make
much sense to show the last build id (currently there is no wall message
for a jaggery build as well). Showing the Build ${id} Deployed is also
misleading. But when a user does some change in the application and commit
it there should be some kind of a message for the user to understand
whether his changes are there in the currently deployed version of the
application as well.

What would be the appropriate thing to do in here?

[1] https://wso2.org/jira/browse/APPFAC-2978

Regards
Gayan

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] WSO2 Committers += Aiyadurai Rajeevn

2015-02-26 Thread Gayan Dhanushka
congratzz Rajeevan !!!

On Thu, Feb 26, 2015 at 4:20 PM, Pirinthapan Mahendran pirintha...@wso2.com
 wrote:

 Congrats Rajeevan !!

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Thu, Feb 26, 2015 at 2:26 PM, Sam Sivayogam s...@wso2.com wrote:

 Congrats Rajeevan !!!

 On Thu, Feb 26, 2015 at 11:12 AM, Kalpa Welivitigoda kal...@wso2.com
 wrote:

 Congratulations Rajeevan !

 On Thu, Feb 26, 2015 at 10:23 AM, Ashan Dhananjaya ash...@wso2.com
 wrote:

 Congratulations :-)

 On Thu, Feb 26, 2015 at 10:21 AM, Manisha Gayathri mani...@wso2.com
 wrote:

 Congrats Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:19 AM, Inshaf Mahath ins...@wso2.com
 wrote:

 Congrats Rajeevan 

 On Thu, Feb 26, 2015 at 10:08 AM, Rajeevan Vimalanathan 
 rajeev...@wso2.com wrote:

 Congrats Rajeevan...!!!

 On Thu, Feb 26, 2015 at 10:05 AM, Lahiru Cooray lahi...@wso2.com
 wrote:

 Congratz Rajeevan!!!

 On Thu, Feb 26, 2015 at 10:00 AM, Dimuthu Leelarathne 
 dimut...@wso2.com wrote:


 Hi all,

 It is with great pleasure that WSO2 welcomes Aiyadurai Rajeevn as
 WSO2 committer!

 Congratulations!

 thanks,
 Dimuthu
 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




 --
 *Lahiru Cooray*
 Software Engineer
 WSO2, Inc.;http://wso2.com/
 lean.enterprise.middleware

 Mobile: +94 715 654154

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




 --
 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

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




 --
 Inshaf Mahath
 Associate Software Engineer
 Mobile: +94775907181
 WSO2 Inc.
 Lean . Enterprise . Middleware


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




 --
 ~Regards
 *Manisha Eleperuma*
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean.enterprise.middleware

 *blog:  http://manisha-eleperuma.blogspot.com/
 http://manisha-eleperuma.blogspot.com/*
 *mobile:  +94 71 8279777 %2B94%2071%208279777*


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




 --
 Ashan Dhananjaya Kumara
 Trainee Software Engineer, WSO2 Inc.
 Inc: *WSO2 Inc. *
 Phone : +94715547461
 Blog : http://ashandhananjaya.blogspot.com/
 Twitter  : https://twitter.com/Dhananjaya92
 Say ello :https://ello.co/ashandk





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




 --
 Best Regards,

 Kalpa Welivitigoda
 Software Engineer, WSO2 Inc. http://wso2.com
 Email: kal...@wso2.com
 Mobile: +94776509215

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




 --
 *Sam Sivayogam*

 Software Engineer
 Mobile  : +94 772 906 439
 Office   : +94 112 145 345
 *WSO2, Inc. :** wso2.com http://wso2.com/*
 lean.enterprise.middleware.

 ___
 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




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Please merge the pull request for the time series Siddhi extension

2015-02-23 Thread Gayan Dhanushka
$subject [1].

[1] https://github.com/wso2-dev/siddhi/pull/43

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Improving the Dashboard of UES

2015-02-16 Thread Gayan Dhanushka
Hi Vidura,

+1 for flexible UI layouts. Most of the times I have walked away from the
gridster layout when developing dashboards since it is not that much
flexible. However I am ok with the current pub/sub implementation. It is
quite flexible.



On Tue, Feb 17, 2015 at 11:52 AM, Vidura Mudalige vidu...@wso2.com wrote:

 Hi Tanya,

 If we are to directly use gadgets pub/sub support as it is, then we should
 know publisher's channels, data format etc. in advance. Hence, we will
 identify widely used formats and adhere to them, which will be pluggable.

 As an example, let's say we need to have a widget/gadget to select a date
 range in a dashboard. Then it could be either a simple text input field, a
 select box or a jQuery data picker like rich UI. But at the end, each
 notifies a date range.


This kind of a thing can already be done by using the timestamps
everywhere. Anyway it is up to the developer to decide. So what would be
the attributes that you are going to unify?



 Evolving along that path, we will identify commonly used types(again these
 will be pluggable) which needs to be followed by gadget developers. i.e. If
 a gadget has followed those types, then it will work in a loosely coupled
 manner allowing those to be linked with desired data publisher through the
 dashboard designer.

 At the moment, I am working on a PoC and will share more informations
 later. Further, this will be integrated with the layout designer which
 Nadeesha started.


Some more description on this is appreciated.



 Thanks for your feedback.

 On Tue, Feb 17, 2015 at 10:09 AM, Tanya Madurapperuma ta...@wso2.com
 wrote:

 Hi,

 On Tue, Feb 17, 2015 at 10:05 AM, Vidura Mudalige vidu...@wso2.com
 wrote:

 HI all,

 We are planning to improve the dashboard of UES to support bootstrap and
 pub/sub.

 What are the improvements that you are planning for pub/sub? Because UES
 already have pub/sub support.


 Current dashboards were build using gridster and it is not flexible.
 Using bootstrap we can build responsive and easily themable dashboards.


 AFAIR NadeeshaC also did some work related to this. Will be great if you
 can start from there onwards and continue.


 Current dashboards have a fixed layout. Therefore we are planning to add
 a selectable layout to the dashboard to make the dashboard more friendly to
 the user. We are planning to add multitenency to the dashboard as well.

 Suggestions and feedbacks are appreciated.

 Thanks,

 Thanks,
 Tanya



 --

 *Vidura Mudalige*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com

 Mobile: *+94 77 2323175*
 Email : vidu...@wso2.com

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




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.com




 --

 *Vidura Mudalige*
 Software Engineering Intern
 WSO2 Inc.; http://wso2.com

 Mobile: *+94 77 2323175*
 Email : vidu...@wso2.com

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


Thanks
Gayan

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] Error while building components with latest gitblit dependency with java 1.6

2014-10-30 Thread Gayan Dhanushka
Hi Danushka,

Digging in deep I found out that even though we have put gitblit as a
dependency in all of the above, we have actually used it in
org.wso2.carbon.appfactory.s4.integration and
org.wso2.carbon.appfactory.repository components only.

So we can remove the dependency from other components.

Regards
GayanD

On Thu, Oct 30, 2014 at 10:43 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Danushka,

 Following are the components that use gitblit as a dependency.

 org.wso2.carbon.appfactory.s4.integration
 org.wso2.carbon.appfactory.listners
 org.wso2.carbon.appfactory.deployers
 org.wso2.carbon.appfactory.repository
 org.wso2.carbon.appfactory.stratos.listners

 I think we need to use the gitblit apis to do operations related to
 gitblit.

 Regards
 GayanD

 On Thu, Oct 30, 2014 at 10:28 AM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Gayan
 What are the components that we are depending on gitblit? Do we really
 need to depend on gitblit code?

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Thu, Oct 30, 2014 at 7:55 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I am seeing the following error while trying to build App Factory
 components with the latest gitblit dependency.

 BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:01.152s
 [INFO] Finished at: Thu Oct 30 07:45:24 IST 2014
 [INFO] Final Memory: 54M/981M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.appfactory.s4.integration:
 Compilation failure
 [ERROR] error: Exception thrown while constructing Processor object:
 ro/fortsoft/pf4j/ExtensionsIndexer : Unsupported major.minor version 51.0
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 This exception does not occur when building with java 1.7. As per [1]
 this occurs when we try to use a java program on top of java 1.6 when it
 has been compiled with java 1.7.

 Is there anyway to get around this and add the latest gitblit
 dependencies to App Factory code.

 [1]
 http://www.mkyong.com/java/java-unsupported-major-minor-version-51-0/

 thanks
 GayanD
 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd





 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [App Factory] Error while building components with latest gitblit dependency with java 1.6

2014-10-29 Thread Gayan Dhanushka
Hi all,

I am seeing the following error while trying to build App Factory
components with the latest gitblit dependency.

BUILD FAILURE
[INFO]

[INFO] Total time: 1:01.152s
[INFO] Finished at: Thu Oct 30 07:45:24 IST 2014
[INFO] Final Memory: 54M/981M
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project org.wso2.carbon.appfactory.s4.integration:
Compilation failure
[ERROR] error: Exception thrown while constructing Processor object:
ro/fortsoft/pf4j/ExtensionsIndexer : Unsupported major.minor version 51.0
[ERROR] - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


This exception does not occur when building with java 1.7. As per [1] this
occurs when we try to use a java program on top of java 1.6 when it has
been compiled with java 1.7.

Is there anyway to get around this and add the latest gitblit dependencies
to App Factory code.

[1] http://www.mkyong.com/java/java-unsupported-major-minor-version-51-0/

thanks
GayanD
-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [App Factory] Error while building components with latest gitblit dependency with java 1.6

2014-10-29 Thread Gayan Dhanushka
Hi Danushka,

Following are the components that use gitblit as a dependency.

org.wso2.carbon.appfactory.s4.integration
org.wso2.carbon.appfactory.listners
org.wso2.carbon.appfactory.deployers
org.wso2.carbon.appfactory.repository
org.wso2.carbon.appfactory.stratos.listners

I think we need to use the gitblit apis to do operations related to gitblit.

Regards
GayanD

On Thu, Oct 30, 2014 at 10:28 AM, Danushka Fernando danush...@wso2.com
wrote:

 Hi Gayan
 What are the components that we are depending on gitblit? Do we really
 need to depend on gitblit code?

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Thu, Oct 30, 2014 at 7:55 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I am seeing the following error while trying to build App Factory
 components with the latest gitblit dependency.

 BUILD FAILURE
 [INFO]
 
 [INFO] Total time: 1:01.152s
 [INFO] Finished at: Thu Oct 30 07:45:24 IST 2014
 [INFO] Final Memory: 54M/981M
 [INFO]
 
 [ERROR] Failed to execute goal
 org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
 (default-compile) on project org.wso2.carbon.appfactory.s4.integration:
 Compilation failure
 [ERROR] error: Exception thrown while constructing Processor object:
 ro/fortsoft/pf4j/ExtensionsIndexer : Unsupported major.minor version 51.0
 [ERROR] - [Help 1]
 [ERROR]
 [ERROR] To see the full stack trace of the errors, re-run Maven with the
 -e switch.
 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
 [ERROR]
 [ERROR] For more information about the errors and possible solutions,
 please read the following articles:
 [ERROR] [Help 1]
 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


 This exception does not occur when building with java 1.7. As per [1]
 this occurs when we try to use a java program on top of java 1.6 when it
 has been compiled with java 1.7.

 Is there anyway to get around this and add the latest gitblit
 dependencies to App Factory code.

 [1] http://www.mkyong.com/java/java-unsupported-major-minor-version-51-0/

 thanks
 GayanD
 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd





-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing

2014-10-22 Thread Gayan Dhanushka
Hi all,

I have been trying to move the AsyncDataPublisher used in App Factory to
LoadBalancingDataPublisher to cater load balancing and failover. Even
though [1] describes that it sends data to available receiver nodes in a
round robin manner, I was only able to observe the failover scenario.

Can somebody please explain ?

[1]
https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations

Thanks
GayanD

-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing

2014-10-22 Thread Gayan Dhanushka
Hi Sinthuja,

I tested with two BAM servers pointing to its own cassandra (not
clustered). I was not able to see the load balancing scenario where nearly
equal amount of events are published into respective BAM nodes.

Following is the code that I have used. Please correct me if I have done
something wrong.

Urls defined in appfactory.xml

*tcp://192.168.16.2:7614
http://192.168.16.2:7614,tcp://192.168.16.2:7624
http://192.168.16.2:7624*

code for preparing receiver groups





























* AppFactoryConfiguration config = AppFactoryUtil
.getAppfactoryConfiguration();String EnableStatPublishing =
config
.getFirstProperty(BAM.EnableStatPublishing);String
bamServerURL = config.getFirstProperty(BAM.BAMServerURL);
String bamServerUserName = config
.getFirstProperty(BAM.BAMUserName);String bamServerPassword =
config.getFirstProperty(BAM.BAMPassword);
AgentConfiguration agentConfiguration = new
AgentConfiguration();Agent agent = new
Agent(agentConfiguration);ArrayListReceiverGroup
allReceiverGroups = new ArrayListReceiverGroup();
ArrayListString receiverGroupUrls =
DataPublisherUtil.getReceiverGroups(bamServerURL);for (String
aReceiverGroupURL : receiverGroupUrls) {
ArrayListDataPublisherHolder dataPublisherHolders = new
ArrayListDataPublisherHolder();String[] urls =
aReceiverGroupURL.split(,);for (String aUrl : urls)
{DataPublisherHolder aNode = new
DataPublisherHolder(null, aUrl.trim(), bamServerUserName,
bamServerPassword);
dataPublisherHolders.add(aNode);}
ReceiverGroup group = new ReceiverGroup(dataPublisherHolders,
true);allReceiverGroups.add(group);}
   loadBalancingDataPublisher = new
LoadBalancingDataPublisher(allReceiverGroups, agent);*

Method for event publishing




*public void publishEvents(Event event, String Stream, String
version)throws AgentException, InterruptedException
{loadBalancingDataPublisher.publish(Stream, version,
event);   }*

Thanks
GayanD



On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com
wrote:

 Hi gayan,

 In order to verify the loadbalancing of events in a round robin manner,
 you can have two BAM nodes pointing to its own cassandra instance (not
 clustered), and send the events to those BAM nodes. If your client is
 configured correctly for load balancing scenario, then you will see each
 bam nodes will have nearly equal amount of events stored in its respective
 BAM nodes. This is just for testing purpose to verify, but of course in
 real case cassandra will be clustered, hence finally even though the load
 is balanced within receiver nodes it stores in the same cassandra cluster,
 hence it's not observable from outside.

 Thanks,
 Sinthuja.

 On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 I have been trying to move the AsyncDataPublisher used in App Factory to
 LoadBalancingDataPublisher to cater load balancing and failover. Even
 though [1] describes that it sends data to available receiver nodes in a
 round robin manner, I was only able to observe the failover scenario.

 Can somebody please explain ?

 [1]
 https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations

 Thanks
 GayanD

 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] LoadBalancingDataPublisher seems to handle failover but not load balancing

2014-10-22 Thread Gayan Dhanushka
Hi Sinthuja,

Thanks a lot. It is working as expected now.

Regards
GayanD

On Wed, Oct 22, 2014 at 9:29 PM, Sinthuja Ragendran sinth...@wso2.com
wrote:

 Hi,



 On Wed, Oct 22, 2014 at 11:52 AM, Manoj Gunawardena man...@wso2.com
 wrote:

 Hi Gayan,

 I think the  bamServerURL format you are passing is not correct. It
 should be pass to the DataPublisherUtil.getReceiverGroups method with
 following format.
 * {*tcp://192.168.16.2:7614},{tcp://192.168.16.2:7624}*.* Each host
 should enclose with curly brackets.


 No, this url should be used if you need to send an event to both URLs.

 @Gayan: The below code line should pass 'false' in you want loadbalancing
 feature, with failover. If you need only active/passive setup (ie, failover
 only), you need to pass true. Hence please correct that and try again.



 *ReceiverGroup group = new ReceiverGroup(dataPublisherHolders, true);*
 Thanks,
 Sinthuja.


 Pls refer

 http://mohanadarshan.wordpress.com/2013/05/04/load-balancing-data-publisher-to-bamcep-example-code/
 Thanks

 On Wed, Oct 22, 2014 at 8:34 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Sinthuja,

 I tested with two BAM servers pointing to its own cassandra (not
 clustered). I was not able to see the load balancing scenario where nearly
 equal amount of events are published into respective BAM nodes.

 Following is the code that I have used. Please correct me if I have done
 something wrong.

 Urls defined in appfactory.xml

 *tcp://192.168.16.2:7614
 http://192.168.16.2:7614,tcp://192.168.16.2:7624
 http://192.168.16.2:7624*

 code for preparing receiver groups





























 * AppFactoryConfiguration config = AppFactoryUtil
 .getAppfactoryConfiguration();String EnableStatPublishing =
 config
 .getFirstProperty(BAM.EnableStatPublishing);String
 bamServerURL = config.getFirstProperty(BAM.BAMServerURL);
 String bamServerUserName = config
 .getFirstProperty(BAM.BAMUserName);String bamServerPassword =
 config.getFirstProperty(BAM.BAMPassword);
 AgentConfiguration agentConfiguration = new
 AgentConfiguration();Agent agent = new
 Agent(agentConfiguration);ArrayListReceiverGroup
 allReceiverGroups = new ArrayListReceiverGroup();
 ArrayListString receiverGroupUrls =
 DataPublisherUtil.getReceiverGroups(bamServerURL);for (String
 aReceiverGroupURL : receiverGroupUrls) {
 ArrayListDataPublisherHolder dataPublisherHolders = new
 ArrayListDataPublisherHolder();String[] urls =
 aReceiverGroupURL.split(,);for (String aUrl : urls)
 {DataPublisherHolder aNode = new
 DataPublisherHolder(null, aUrl.trim(), bamServerUserName,
 bamServerPassword);
 dataPublisherHolders.add(aNode);}
 ReceiverGroup group = new ReceiverGroup(dataPublisherHolders,
 true);allReceiverGroups.add(group);}
loadBalancingDataPublisher = new
 LoadBalancingDataPublisher(allReceiverGroups, agent);*

 Method for event publishing




 *public void publishEvents(Event event, String Stream, String
 version)throws AgentException, InterruptedException
 {loadBalancingDataPublisher.publish(Stream, version,
 event);   }*

 Thanks
 GayanD



 On Wed, Oct 22, 2014 at 7:32 PM, Sinthuja Ragendran sinth...@wso2.com
 wrote:

 Hi gayan,

 In order to verify the loadbalancing of events in a round robin manner,
 you can have two BAM nodes pointing to its own cassandra instance (not
 clustered), and send the events to those BAM nodes. If your client is
 configured correctly for load balancing scenario, then you will see each
 bam nodes will have nearly equal amount of events stored in its respective
 BAM nodes. This is just for testing purpose to verify, but of course in
 real case cassandra will be clustered, hence finally even though the load
 is balanced within receiver nodes it stores in the same cassandra cluster,
 hence it's not observable from outside.

 Thanks,
 Sinthuja.

 On Wed, Oct 22, 2014 at 4:53 AM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi all,

 I have been trying to move the AsyncDataPublisher used in App Factory
 to LoadBalancingDataPublisher to cater load balancing and failover. Even
 though [1] describes that it sends data to available receiver nodes in a
 round robin manner, I was only able to observe the failover scenario.

 Can somebody please explain ?

 [1]
 https://docs.wso2.com/display/BAM240/Setting+up+Multi+Receiver+and+Load+Balancing+Data+Agent#SettingupMultiReceiverandLoadBalancingDataAgent-Loadbalancingconfigurations

 Thanks
 GayanD

 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




 --
 *Sinthuja Rajendran*
 Senior Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu

Re: [Dev] [APPFAC] Installing Jenkins plugins

2014-10-16 Thread Gayan Dhanushka
Hi Danushka,

Just to clarify the things, are we following a model where in the future we
just don't ship artifacts for all the apptypes supported by us but provide
documentation so that if someone wants to have a particular apptype he can
plug it in ? In that case +1 for mentioning in the docs.

Thanks
Gayan

On Fri, Oct 17, 2014 at 11:15 AM, Danushka Fernando danush...@wso2.com
wrote:

 AFAIU we are not shipping any thing related to .NET apptype and we are
 just providing a doc. Correct me if I am wrong. In that case +1 for
 mentioning it in docs.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Oct 17, 2014 at 10:32 AM, Kasun De Silva kas...@wso2.com wrote:

 Hi All,

 How we ship AppFactory plugin for Jenkins, There are few more plugins
 that Jenkins should have in order to give .NET app support.

 1. Jenkins MSBuild Plugin
 2. Windows Slaves Plugin

 What could be the best way that we can do this ? I'm thinking include
 plugin installation and configuration instructions in the doc, WDYT ?


 Thanks

 *Kasun de Silva*
 Software Engineer | *WSO2 Inc.*; http://wso2.com
 lean.enterprise.middleware

 email   : kas...@wso2.com
 mobile : +94 77 794 4260


 ___
 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




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Sample Carbon Registry Client for Shared Data

2014-10-15 Thread Gayan Dhanushka
Hi Roshan,

Since this is not metadata IMO it is better to use the runtime data DB that
we already have. It is not good to store constantly changing dynamic data
into the registry.

Thanks
GayanD

On Wed, Oct 15, 2014 at 3:39 PM, Danushka Fernando danush...@wso2.com
wrote:

 1. If these are runtime data don't store in registry. Registry is only for
 metadata not runtime data.
 2. AFAIU this urls are strickly mapped to the application which is inside
 a tenant. So data are tenant related. Correct me if I am wrong.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Oct 15, 2014 at 3:36 PM, Roshan Deniyage rosh...@wso2.com wrote:

 Hi Danushka,
The use case is that, we use a event listener to get newly spawned
 catridges's information (public IP, dns etc) and keep the data inside the
 app-factory side. These are runtime data and time to time get updated.
 There is no tenant related info in these data.
 When user, request for the url of his application, that is generated
 using those above data and his other meta data. Presently, I keep the
 cartridge information in memory which is not reliable, So, we need to
 persist these data in carbon registry or in app-factory DB.
 If carbon registry have no sharing mechanism, we have to use the db I
 guess.


 Thanks,
 Roshan Deniyage
 Associate Technical Lead
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 On Wed, Oct 15, 2014 at 3:24 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Hi Roshan
 Can you explain your use case. AFAIK this is not facilitated in carbon.
 Tenants are totally isolated and they cannot access each other's tenant. By
 going through the problem you are trying to solve we may be able to find a
 solution.

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Wed, Oct 15, 2014 at 2:25 PM, Roshan Deniyage rosh...@wso2.com
 wrote:

 Hi Devs,
Can anyone provide me a sample code to write to carbon registry
 component which can be shared by all tenants. (may be super tenant's user
 registry).
 I need to write data to shared location which can be read by all the
 tenants.


 Thanks,
 Roshan
 ​​
 Deniyage
 ​
 WSO2, Inc: http://wso2.com

 Mobile:  +94 777636406
 Twitter:  *https://twitter.com/roshku https://twitter.com/roshku*
 LinkedIn :  https://www.linkedin.com/in/roshandeniyage


 ___
 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




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Puppetizing Dev setup progress

2014-09-26 Thread Gayan Dhanushka
Hi Danushka,

Just to confirm, this is BAM 2.4.1 right ?

Thanks
Gayan

On Fri, Sep 26, 2014 at 1:36 PM, Danushka Fernando danush...@wso2.com
wrote:

 Getting Following error in BAM at start up. But server get started even
 with that error. May be something we can ignore. Other than that all
 puppetized servers are up without errors. But having troubles in stratos
 since the db names are changed from dev setup in puppet.

 TID: [0] [BAM] [2014-09-26 13:08:56,242] ERROR
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 -  InvalidRequestException(why:You have not logged in)
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:You have not logged in)
 at
 me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:164)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:151)
 at
 me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
 at
 me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
 at
 me.prettyprint.cassandra.service.ThriftCluster.addKeyspace(ThriftCluster.java:168)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.createKeyspaceIfNotExist(DataSourceUtils.java:115)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSConfig(DataSourceUtils.java:128)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSDataSource(DataSourceUtils.java:132)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.initRecordStore(NotificationDispatchComponent.java:82)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.activate(NotificationDispatchComponent.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:105)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 

Re: [Dev] [AF] Puppetizing Dev setup progress

2014-09-26 Thread Gayan Dhanushka
This was an issue in authenticating with Cassandra when using email
addresses as user names. This is fixed in the latest code.

On Fri, Sep 26, 2014 at 1:40 PM, Danushka Fernando danush...@wso2.com
wrote:

 Yes

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Sep 26, 2014 at 1:39 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Danushka,

 Just to confirm, this is BAM 2.4.1 right ?

 Thanks
 Gayan

 On Fri, Sep 26, 2014 at 1:36 PM, Danushka Fernando danush...@wso2.com
 wrote:

 Getting Following error in BAM at start up. But server get started even
 with that error. May be something we can ignore. Other than that all
 puppetized servers are up without errors. But having troubles in stratos
 since the db names are changed from dev setup in puppet.

 TID: [0] [BAM] [2014-09-26 13:08:56,242] ERROR
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 -  InvalidRequestException(why:You have not logged in)
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:You have not logged in)
 at
 me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:164)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:151)
 at
 me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
 at
 me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
 at
 me.prettyprint.cassandra.service.ThriftCluster.addKeyspace(ThriftCluster.java:168)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.createKeyspaceIfNotExist(DataSourceUtils.java:115)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSConfig(DataSourceUtils.java:128)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSDataSource(DataSourceUtils.java:132)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.initRecordStore(NotificationDispatchComponent.java:82)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.activate(NotificationDispatchComponent.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:347)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
 at
 org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
 at
 org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
 at
 org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
 at
 org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
 at
 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
 at
 org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
 at
 org.wso2.carbon.ntask.core.internal.TasksDSComponent.activate(TasksDSComponent.java:105)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:260)
 at
 org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146

Re: [Dev] [AF] Puppetizing Dev setup progress

2014-09-26 Thread Gayan Dhanushka
)
 at
 org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:158)
 at java.lang.Thread.run(Thread.java:744)



 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Sep 26, 2014 at 2:30 PM, Danushka Fernando danush...@wso2.com
 wrote:

 All the servers are up and running in 16.4. Following are the host
 entries.

 192.168.18.193 puppet
 192.168.16.4 mysql1.appfactory.private.wso2.com
 192.168.16.4 mysql2.appfactory.private.wso2.com
 192.168.16.4 appfactoryelb.appfactory.private.wso2.com
 192.168.16.4 ldap.appfactory.private.wso2.com
 192.168.16.4 identity.appfactory.private.wso2.com
 192.168.16.4 cloudmgt.appfactory.private.wso2.com
 192.168.16.4 issue-tracker.appfactory.private.wso2.com
 192.168.16.4 apps.appfactory.private.wso2.com
 192.168.16.4 messaging.appfactory.private.wso2.com
 192.168.16.4 process.appfactory.private.wso2.com
 192.168.16.4 jenkins.appfactory.private.wso2.com
 192.168.16.4 storage.appfactory.private.wso2.com
 192.168.16.4 git.appfactory.private.wso2.com
 192.168.16.4 s2git.appfactory.private.wso2.com
 192.168.16.4 dashboards.appfactory.private.wso2.com
 192.168.16.4 keymanager.api.appfactory.private.wso2.com
 192.168.16.4 gateway.api.appfactory.private.wso2.com
 192.168.16.4 api.appfactory.private.wso2.com
 192.168.16.4 monitor.appfactory.private.wso2.com
 192.168.16.4 receiver1.appfactory.private.wso2.com
 192.168.16.4 node0.cassandra.appfactory.private.wso2.com
 192.168.16.4 hadoop0.appfactory.private.wso2.com
 192.168.16.4 sc.dev.appfactory.private.wso2.com
 192.168.16.4 sc.test.appfactory.private.wso2.com
 192.168.16.4 sc.appfactory.private.wso2.com
 192.168.16.4 cc.stratos.apache.org
 192.168.16.4 as.stratos.apache.org
 192.168.18.235 appserver.dev.appfactory.private.wso2.com
 192.168.18.236 appserver.test.appfactory.private.wso2.com
 192.168.18.230 appserver.appfactory.private.wso2.com
 192.168.16.4 mysql-dev-01.appfactory.private.wso2.com
 192.168.16.4 mysql-test-01.appfactory.private.wso2.com
 192.168.16.4 mysql-prod-01.appfactory.private.wso2.com
 10.0.40.25 clouddb-1.cnrakni3i9xw.us-east-1.rds.amazonaws.com
 10.0.40.170 clouddb-2.cnrakni3i9xw.us-east-1.rds.amazonaws.com

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Sep 26, 2014 at 2:23 PM, Gayan Dhanushka gay...@wso2.com
 wrote:

 This was an issue in authenticating with Cassandra when using email
 addresses as user names. This is fixed in the latest code.

 On Fri, Sep 26, 2014 at 1:40 PM, Danushka Fernando danush...@wso2.com
  wrote:

 Yes

 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
 Mobile : +94716332729

 On Fri, Sep 26, 2014 at 1:39 PM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi Danushka,

 Just to confirm, this is BAM 2.4.1 right ?

 Thanks
 Gayan

 On Fri, Sep 26, 2014 at 1:36 PM, Danushka Fernando 
 danush...@wso2.com wrote:

 Getting Following error in BAM at start up. But server get started
 even with that error. May be something we can ignore. Other than that 
 all
 puppetized servers are up without errors. But having troubles in 
 stratos
 since the db names are changed from dev setup in puppet.

 TID: [0] [BAM] [2014-09-26 13:08:56,242] ERROR
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 -  InvalidRequestException(why:You have not logged in)
 {org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent}
 me.prettyprint.hector.api.exceptions.HInvalidRequestException:
 InvalidRequestException(why:You have not logged in)
 at
 me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(ExceptionsTranslatorImpl.java:52)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:164)
 at
 me.prettyprint.cassandra.service.ThriftCluster$6.execute(ThriftCluster.java:151)
 at
 me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.java:104)
 at
 me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover(HConnectionManager.java:253)
 at
 me.prettyprint.cassandra.service.ThriftCluster.addKeyspace(ThriftCluster.java:168)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.createKeyspaceIfNotExist(DataSourceUtils.java:115)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSConfig(DataSourceUtils.java:128)
 at
 org.wso2.carbon.bam.datasource.utils.DataSourceUtils.getClusterKeyspaceFromRDBMSDataSource(DataSourceUtils.java:132)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.initRecordStore(NotificationDispatchComponent.java:82)
 at
 org.wso2.carbon.bam.notification.task.internal.NotificationDispatchComponent.activate(NotificationDispatchComponent.java:74)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57

Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-16 Thread Gayan Dhanushka
Hi Pirinthapan,

I can see that you have tried to group by the relavant fields which is
correct. I am not sure whether you have tried to group by later on after
running the hive script at least once. Otherwise it is just basic sql and
it should work.

You can try dropping the hive intermediate hive table by running drop
table AppCommits as a query in BAM. Run the aforesaid hive script again
and see the result.

Regards
Gayan

On Tue, Sep 16, 2014 at 6:52 PM, Pirinthapan Mahendran pirintha...@wso2.com
 wrote:

 Hi Gayan,

 I have written the following hive script to collect the data from
 Cassandra.

 CREATE EXTERNAL TABLE IF NOT EXISTS AppCommit(row_id STRING,
 applicationKey STRING, tenantDomain STRING, user STRING, revision STRING,
 timeSt BIGINT)
 STORED BY 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'  with
 SERDEPROPERTIES(wso2.carbon.datasource.name =
 WSO2BAM_CASSANDRA_DATASOURCE,
 cassandra.cf.name = org_wso2_carbon_appfactory_appCommit ,
 cassandra.columns.mapping = :key, payload_appKey,
 payload_tenantDomain, payload_user, payload_revision, Timestamp);


 CREATE EXTERNAL TABLE IF NOT EXISTS commit_test1 (TENANT_DOMAIN STRING,
 APPLICATION_KEY STRING, DAY STRING, COMMITS BIGINT) STORED BY
 'org.wso2.carbon.hadoop.hive.jdbc.storage.JDBCStorageHandler' TBLPROPERTIES
 ( 'mapred.jdbc.driver.class' = 'com.mysql.jdbc.Driver' , '
 wso2.carbon.datasource.name'='WSO2_AF_STAT_DB','hive.jdbc.update.on.duplicate'
 = 'true', 'hive.jdbc.primary.key.fields' =
 'TENANT_DOMAIN,APPLICATION_KEY,DAY,COMMITS', 'hive.jdbc.table.create.query'
 = 'CREATE TABLE commit_test1(APPLICATION_KEY VARCHAR(100), TENANT_DOMAIN
 VARCHAR(100), DAY VARCHAR(100), COMMITS BIGINT)');


 INSERT OVERWRITE TABLE commit_test1
 SELECT rslt.tenantDomain, rslt.applicationKey, rslt.day,
 count(rslt.applicationKey) as COMMITS FROM(SELECT tenantDomain,
 applicationKey, day(from_unixtime(cast(timest/1000 as BIGINT),'-MM-dd
 HH:mm:ss.SSS' )) day FROM AppCommit WHERE (UNIX_TIMESTAMP() -
 cast(timest/1000 as BIGINT))  1209600) rslt GROUP BY rslt.tenantDomain,
 rslt.applicationKey, rslt.day;


 when I execute this script it insert the following data to mysql database.


 ​
 In the above table when the commit number increases, the new data is
 appended to the table as in the last four rows. But my requirement is to
 have only one entry for each combination of APPLICATION_KEY, TENANT_DOMAIN
 and DAY.

 So could you please tell me whether there are any methods to do this using
 Hive?

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Mon, Sep 15, 2014 at 10:05 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Thanks Gayan. Now its working.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Mon, Sep 15, 2014 at 9:40 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Pirinthapan,

 What you have done is correct. But in order to publish commit details to
 BAM from the gitblit server you need to enable data publishing in the
 gitblit server.

 Please locate and open the gitblit.properties file resides within
 GITBLIT_HOME/data folder. There is a property at the bottom called
 publishToBAM. You need to assign true to this property and restart the
 server.

 This should solve your problem.

 Thanks
 Gayan


 On Mon, Sep 15, 2014 at 9:25 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Gayan,

 Now I'm writing Hive script to collect the necessary commit data from
 Cassandra to MYSQL.  Before I started to write this I tested the existing
 hive script  with the name AppCommits in BAM server. For this I did
 the following steps:

 1. I created an application in App Factory.
 2. Cloned the application to my PC.
 3. Made some changes and did some commits.
 4. Then I accessed the GitBlit server in the browser. It shows all the
 commit details.
 5. Then I executed the hive script AppCommits from BAM management
 console.
 6. Then I checked the mysql database. The table APP_COMMITS is there.
 7. But when I did some queries from that table, it returns empty set.

 According to my understanding whenever a commit happens the commit data
 will be published to the BAM server by the script [1].

 Could you please make me clear about whether my understandings and the
 procedures, I did, are correct. If those are correct could you please help
 me to find out, why the data is not in mysql.

 1.
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Thu, Sep 11, 2014 at 1:21 PM, Iqbal Irham iq...@wso2.com wrote:

 Hi,

 Update on the project below.

 We have showed the hardcoded diagrams(bar chart for commit logs and
 pie chat for build statistics) to Dimuthu and Ajanthan and got their
 feedback.

 According to that,

1. Application dashboard will have commit logs bar chart with last

Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-15 Thread Gayan Dhanushka
Hi Pirinthapan,

What you have done is correct. But in order to publish commit details to
BAM from the gitblit server you need to enable data publishing in the
gitblit server.

Please locate and open the gitblit.properties file resides within
GITBLIT_HOME/data folder. There is a property at the bottom called
publishToBAM. You need to assign true to this property and restart the
server.

This should solve your problem.

Thanks
Gayan


On Mon, Sep 15, 2014 at 9:25 PM, Pirinthapan Mahendran pirintha...@wso2.com
 wrote:

 Hi Gayan,

 Now I'm writing Hive script to collect the necessary commit data from
 Cassandra to MYSQL.  Before I started to write this I tested the existing
 hive script  with the name AppCommits in BAM server. For this I did the
 following steps:

 1. I created an application in App Factory.
 2. Cloned the application to my PC.
 3. Made some changes and did some commits.
 4. Then I accessed the GitBlit server in the browser. It shows all the
 commit details.
 5. Then I executed the hive script AppCommits from BAM management
 console.
 6. Then I checked the mysql database. The table APP_COMMITS is there.
 7. But when I did some queries from that table, it returns empty set.

 According to my understanding whenever a commit happens the commit data
 will be published to the BAM server by the script [1].

 Could you please make me clear about whether my understandings and the
 procedures, I did, are correct. If those are correct could you please help
 me to find out, why the data is not in mysql.

 1.
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.

 On Thu, Sep 11, 2014 at 1:21 PM, Iqbal Irham iq...@wso2.com wrote:

 Hi,

 Update on the project below.

 We have showed the hardcoded diagrams(bar chart for commit logs and pie
 chat for build statistics) to Dimuthu and Ajanthan and got their feedback.

 According to that,

1. Application dashboard will have commit logs bar chart with last 2
week data.
2. Detail page will have a detail bar chart for commit logs and a pie
chart for build statistics.
3. Both graphs will have options to choose the time period of the
graph.
4. Detail page bar chart will have zooming option to get the accurate
value of the column.


 Thanks,

 On Tue, Sep 9, 2014 at 6:05 PM, Vimalanathan Rajeevan rajeev...@wso2.com
  wrote:

 Hi Pirinthapan,

 I would like to give some feedbacks on your design,
 [1] Giving boarders for each graphs and tables
 [2] You can increase the font size for headings (ex. Build
 Statistics, Weekly commit logs)
 [3] Bring the contents of browser to central position without align it
 to left [1]
 [4] Give some spaces at top before starting contents
 [4] You can use more attractive 3D graph designing tools

 Best Regards,
 V.Rajeevan
 Software Engineer,
 WSO2 Inc. :http://wso2.com

 Mobile : +94 773090875
 Email : rajeev...@wso2.com

 On Sat, Sep 6, 2014 at 1:04 PM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi All,

 We have come up with a mockup design for showing the 'commit logs
 statistics' [1] and 'build statistics' [2] in App Factory. We would like to
 have your feed backs on these designs.

 1.
 https://www.justinmind.com/usernote/tests/12597285/12597288/12597302/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724

 2.
 https://www.justinmind.com/usernote/tests/12597285/12597288/12597486/index.html#/screens/d12245cc-1680-458d-89dd-4f0d7fb22724

 Thanks.



 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.


 On Fri, Sep 5, 2014 at 9:38 AM, Gayan Dhanushka gay...@wso2.com
 wrote:

 Hi Iqbal,

 Currently we have START, SUCCESS and FAIL status. If you closely have
 a look you can see that *appBuildStream *is a private variable which
 defines a data stream, not a method. For each of these data stream
 definitions, there are publish methods in the BamDataPublisher.java
 class.

 Thanks
 Gayan


 On Thu, Sep 4, 2014 at 2:22 PM, Iqbal Irham iq...@wso2.com wrote:

 Hi Gayan,

 Thank you very much for the reply.
 We are in the process of identifying the Build statuses which we are
 going to get from BAM.
 In the java code(BamDataPublisher.java) i found a method
 *appBuildStream.*
 As i highlighted below there is a String for Status.
 Please help us to find out what are the status values(i.e
 success,fail,Pending,Aborted) it's publishing.

 'payloadData':[+
 {'name':'applicationName','type':'string'},+
 {'name':'applicationKey','type':'string'},+
 {'name':'applicationVersion','type':'string'},+
 {'name':'timeStamp','type':'double'},+
 {'name':'tenantId', 'type':'string'},+
 *{'name':'status', 'type':'string'}*,+
 {'name':'buildId', 'type':'string'},+
 {'name

Re: [Dev] [App Factory Training Project] Build a development statistics Dashboard for Apps in App Factory

2014-09-04 Thread Gayan Dhanushka
Hi Iqbal,

Currently we have START, SUCCESS and FAIL status. If you closely have a
look you can see that *appBuildStream *is a private variable which defines
a data stream, not a method. For each of these data stream definitions,
there are publish methods in the BamDataPublisher.java class.

Thanks
Gayan


On Thu, Sep 4, 2014 at 2:22 PM, Iqbal Irham iq...@wso2.com wrote:

 Hi Gayan,

 Thank you very much for the reply.
 We are in the process of identifying the Build statuses which we are going
 to get from BAM.
 In the java code(BamDataPublisher.java) i found a method *appBuildStream.*
 As i highlighted below there is a String for Status.
 Please help us to find out what are the status values(i.e
 success,fail,Pending,Aborted) it's publishing.

 'payloadData':[+
 {'name':'applicationName','type':'string'},+
 {'name':'applicationKey','type':'string'},+
 {'name':'applicationVersion','type':'string'},+
 {'name':'timeStamp','type':'double'},+
 {'name':'tenantId', 'type':'string'},+
 *{'name':'status', 'type':'string'}*,+
 {'name':'buildId', 'type':'string'},+
 {'name':'revision', 'type':'string'},+
 {'name':'user',  'type':'string' }+
 ];

 Thanks



 On Thu, Sep 4, 2014 at 1:57 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Pirinthapan,

 I believe you want to visualize the number of builds and commits in the
 per each day inside an application in App Factory. For this we already
 collect the build and commit data. We collect the build data through App
 Factory and commits data through a git post commit hook [1]. Please note
 that we have multiple activity points in App Factory from where the events
 are published to BAM. So the data that you are looking for is already being
 published.

 [1]
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/products/appfactory/2.0.1/vmware/appfactory_deployment_s4/resources/configs/jenkins.groovy

 Regards
 Gayan


 On Thu, Sep 4, 2014 at 11:11 AM, Pirinthapan Mahendran 
 pirintha...@wso2.com wrote:

 Hi Gayan,

 We went through the 'BamDataPublisher' class [1]. In this class the
 publish events are available for App creation, App version, Tenant user,
 App user, App issue and App build. But we need the data for 'Commit logs'
 as well. So do we need to create an event to publish these commit logs?

 1.
 https://svn.wso2.org/repos/wso2/scratch/appfactory_2.0.0/components/appfac/org.wso2.carbon.appfactory.bam.integration/2.0.1/src/main/java/org/wso2/carbon/appfactory/bam/integration/BamDataPublisher.java

 Thanks.

 Mahendran Pirinthapan
 Software Engineer | WSO2 Inc.
 Mobile +94772378732.




 --
 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd




 --
 Irham Iqbal
 Software Engineer - Test Automation
  WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware
 phone: +94 777888452




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APPFAC] Appfactory plugin build failures due to corrupted poms in nexus repo

2014-09-03 Thread Gayan Dhanushka
Hi Anuruddha/Samith,

+1 for replacing the corrupted pom files with the correct ones. But these
are transitive dependencies and we can avoid having them in our build by
using an exclusion. You can add the following section in the pom file under
you dependancy.

exclusions
exclusion
groupId*/groupId
artifactId*/artifactId
/exclusion
/exclusions

This is supported in maven 3.2.1 and later [1].

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

Regards
Gayan


On Wed, Sep 3, 2014 at 3:05 PM, Samith Dassanayake sam...@wso2.com wrote:

 Hi Rumesh,

 Following pom file is also corrupted. I have attached the corrected pom
 file. Could you please commit it as well.
 wstx-asl-3.1.0:
 http://maven.wso2.org/nexus/content/groups/wso2-public/woodstox/wstx-asl/3.1.0/wstx-asl-3.1.0.pom

 Thanks,
 Samith.



 On Tue, Sep 2, 2014 at 10:55 AM, Rumesh Bandara rum...@wso2.com wrote:

 Hi Anuruddha,

 Please re-check after some time because there is an ongoing syncing
 process with maven.

 Thanks,
 Rumesh


 On Tue, Sep 2, 2014 at 10:43 AM, Anuruddha Premalal anurud...@wso2.com
 wrote:

 Hi Rumesh,

 I'm still getting the old pom files from the previous links.

 Regards,
 Anuruddha.


 On Tue, Sep 2, 2014 at 10:35 AM, Rumesh Bandara rum...@wso2.com wrote:

 Uploaded the given pom files. Please check now.

 Thanks,
 Rumesh


 On Wed, Aug 20, 2014 at 10:24 AM, Anuruddha Premalal 
 anurud...@wso2.com wrote:

 Hi,

 We are facing build failures due to the following corrupted pom files.
 Can some authorized person commit the following corrected poms to wso2
 nexus repo?.

 uddi4j :
 http://maven.wso2.org/nexus/content/groups/wso2-public/uddi/uddi4j/1.0.1/uddi4j-1.0.1.pom

 org.eclipse.core.runtime :
 http://maven.wso2.org/nexus/content/groups/wso2-public/org/eclipse/core/org.eclipse.core.runtime/3.5.0.v20090429-1800/org.eclipse.core.runtime-3.5.0.v20090429-1800.pom


 Thanks  Regards,
 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com


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





 --
 *Anuruddha Premalal*
 Software Eng. | WSO2 Inc.
 Mobile : +94710461070
 Web site : www.regilandvalley.com



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




 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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




-- 
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AF] Error while creating an application

2014-08-07 Thread Gayan Dhanushka
Hi Danushka,

This happens due to the newly added notifycommits.groovy hook. Since the
git commit at application creation is done as the gitblitsystemadmin and
not the actual user. Hence the mutual authentication fails. I will provide
a fix for this.

Regards



On Thu, Aug 7, 2014 at 4:42 PM, Danushka Fernando danush...@wso2.com
wrote:

 Hi
 I am getting following error while creating the application. But
 application get created. Any idea whats going wrong here?

 TID: [0] [Carbon] [2014-08-07 16:42:54,059]  INFO
 {org.wso2.carbon.appfactory.utilities.project.ProjectUtils} -  Maven
 archetype generation completed successfully
 {org.wso2.carbon.appfactory.utilities.project.ProjectUtils}
 TID: [0] [Carbon] [2014-08-07 16:42:54,483] ERROR
 {org.wso2.carbon.identity.authenticator.mutualssl.MutualSSLAuthenticator} -
  Authentication Request is rejected. User doesnot exists in userstore
 {org.wso2.carbon.identity.authenticator.mutualssl.MutualSSLAuthenticator}
 TID: [0] [Carbon] [2014-08-07 16:42:54,483]  WARN
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil} -  Failed
 Administrator login attempt 'gitblitsystemadmin[-1234]' at [2014-08-07
 16:42:54,483+0530]
 {org.wso2.carbon.core.services.util.CarbonAuthenticationUtil}
 TID: [0] [Carbon] [2014-08-07 16:42:54,483]  WARN
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler} -
  Illegal access attempt at [2014-08-07 16:42:54,0483] from IP address
 192.168.16.4 : Service is RepositoryManagementService
 {org.wso2.carbon.server.admin.module.handler.AuthenticationHandler}
 TID: [0] [Carbon] [2014-08-07 16:42:54,484] ERROR
 {org.apache.axis2.engine.AxisEngine} -  Access Denied. Please login first.
 {org.apache.axis2.engine.AxisEngine}
 org.apache.axis2.AxisFault: Access Denied. Please login first.
  at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.authenticate(AuthenticationHandler.java:97)
 at
 org.wso2.carbon.server.admin.module.handler.AuthenticationHandler.invoke(AuthenticationHandler.java:66)
  at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
  at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
  at
 org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
  at
 org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
  at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
 at
 org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  at
 org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
  at
 org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
 at
 org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
  at
 org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
  at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
 at
 org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 

[Dev] WSO2 AppFactory 2.0.1 Milestone 3 Released!

2014-07-25 Thread Gayan Dhanushka
WSO2 AppFactory 2.0.1 Milestone 3 Released!

WSO2 AppFactory team is pleased to announce the release of version 2.0.1 M3
of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.




 The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Puppet manifests for App Factory can be found at [3].


We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA
https://wso2.org/jira/browse/APPFAC.

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.0.1-M3/pack/wso2appfactory-2.0.1.zip
[2]
https://wso2.org/jira/browse/APPFAC-2312?jql=project%20%3D%20APPFAC%20AND%20fixVersion%20%3D%20%222.0.1-M3%22%20AND%20status%20%3D%20Resolved%20ORDER%20BY%20priority%20DESC
[3]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.0.1-M3/appfactory_2.0.0/products/appfactory/2.0.1/modules/puppet-manifests/


-- WSO2 AppFactory Team --
Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Performance improvement

2014-07-22 Thread Gayan Dhanushka
Hi Samith,

Good job. We need to come up with a strategy to load all the fields with
data at the page load time. At the moment in some pages, fields are loaded
in the UI without any data and it takes a while for the data to load. I
think it is better to load data before the page loads and just append them
to the respective fields.

Regards

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Wed, Jul 23, 2014 at 10:40 AM, Asanka Dissanayake asan...@wso2.com
wrote:




 On Wed, Jul 23, 2014 at 10:32 AM, Samith Dassanayake sam...@wso2.com
 wrote:

 Hi,

 As suggested in [1], Instead of calling ProjectUtils(which is a java
 class) directly from jaggery layer, I have exposed those methods as OSGI
 services and cached the results. This improvement reduced the page load
 time of the most of the pages by approximately 100ms.

 Good Work Samith, What kind of results you store cache. Can you mention
 some examples . Caching means those results are stored in session right?


 [1] - https://wso2.org/jira/browse/A
 https://wso2.org/jira/browse/APPFAC-2296*I h*PPFAC-2296
 https://wso2.org/jira/browse/APPFAC-2296

 Thanks.

 --
 Best Regards

 Samith Dassanayake
 Software Engineer, WSO2 Inc.


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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*

 ___
 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


[Dev] WSO2 AppFactory 2.0.1 Milestone 2 Released!

2014-07-18 Thread Gayan Dhanushka
WSO2 AppFactory 2.0.1 Milestone 2 Released!

WSO2 AppFactory team is pleased to announce the release of version 2.0.1 M2
of the WSO2 App Factory.

WSO2 App Factory is a multi-tenant, elastic and self-service enterprise
platform that enables multiple project teams to collaboratively create, run
and manage enterprise applications. Combining complete application
lifecycle management and Platform-as-a-Service (PaaS) capabilities, WSO2
App Factory makes it possible to develop, test, deploy to production and
retire applications with a single click. It also provides an easy way to
discover and consume apps and APIs through a user-friendly storefront.




 The distribution is available to download at [1] .

Bug fixes in this release can be found at [2].

Puppet manifests for App Factory can be found at [3].


We encourage you to report issues, documentation faults and feature
requests regarding WSO2 AppFactory through the public WSO2 AppFactory JIRA
https://wso2.org/jira/browse/APPFAC.

[1]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.0.1-M2/pack/wso2appfactory-2.0.1.zip
[2] https://wso2.org/jira/secure/IssueNavigator.jspa?reset=
truejqlQuery=project+%3D+APPFAC+AND+fixVersion+%3D+%
222.0.1-M2%22+AND+status+%3D+Resolved+ORDER+BY+priority+DESCmode=hide
[3]
https://svn.wso2.org/repos/wso2/scratch/appfactorycc_tags/2.0.1-M2/appfactory_2.0.0/products/appfactory/2.0.0/modules/puppet-manifests/


-- WSO2 AppFactory Team --


Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][GREG]Cannot build Endpoint Look-up Sample

2014-05-13 Thread Gayan Dhanushka
Hi,

I couldn't build the Endpoint Look-up Sample alone. Only after I built the
product 4.6.0 I was able to build it.

Following is the build failure.

[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 13:25.574s
[INFO] Finished at: Tue May 13 14:12:32 IST 2014
[INFO] Final Memory: 14M/1015M
[INFO]

[ERROR] Failed to execute goal on project
org.wso2.carbon.registry.samples.handler: Could not resolve dependencies
for project
org.wso2.governance:org.wso2.carbon.registry.samples.handler:bundle:4.6.0:
Failed to collect dependencies for
[org.apache.ws.commons.axiom.wso2:axiom:jar:1.2.11.wso2v2 (compile),
org.wso2.carbon:org.wso2.carbon.governance.api:jar:4.2.1 (compile),
org.wso2.carbon:org.wso2.carbon.registry.core:jar:4.2.0 (compile)]: Failed
to read artifact descriptor for uddi:uddi4j:jar:1.0.1: Could not transfer
artifact uddi:uddi4j:pom:1.0.1 from/to wso2-nexus (
http://maven.wso2.org/nexus/content/groups/wso2-public/): Checksum
validation failed, no checksums available from the repository - [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Thanks
Gayan

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Appfactory]

2014-04-29 Thread Gayan Dhanushka
Hi,

There is a need to resize the application Icons upon upload in appfactory.
What would be a good image library to be used to serve this purpose? it
would be good if we can use a good library that can be used throughout the
entire platform. We should be able to use it in both java and jaggery as
well.

Any thoughts?

GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] AppFactory app listing page (home page) takes a long time to load when there are about 20 apps

2014-03-08 Thread Gayan Dhanushka
Hi Amila,

AsankaD did some improvements on this page and it is working fine now even
when the number of apps is large. It is there in the latest pack. I guess
these improvements are not there in the pack hosted in cloud preview.

Thanks
GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Sat, Mar 8, 2014 at 9:09 PM, Asanka Dissanayake asan...@wso2.com wrote:

 Hi Amila,
 What is the pack in the in the cloud preview ? is it the latest one ?

 Regards,
 Asanka D


 On Fri, Mar 7, 2014 at 9:44 AM, Amila Maha Arachchi ami...@wso2.comwrote:

 Jira: APPFAC-1760 - AppFactory app listing page (home page) takes a long
 time to load when there are about 20 
 appshttps://wso2.org/jira/browse/APPFAC-1760


 On Fri, Mar 7, 2014 at 8:06 PM, Harsha Thirimanna hars...@wso2.comwrote:

 We will check this out amila.
 Thanks
 On Mar 7, 2014 7:43 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 After I sign in, I am taken to this page (index.jag). Then I experience
 this. But, when I try with a tenant with 4-5 apps, page loads in a
 considerable time.


 On Fri, Mar 7, 2014 at 7:40 PM, Harsha Thirimanna hars...@wso2.comwrote:

 This happen when you directly go to that page or when you refresh it,
 amila ?
 On Mar 7, 2014 7:36 PM, Amila Maha Arachchi ami...@wso2.com wrote:

 Hi AF team,

 $Subject. Because of this, sometimes ELB times out and suspends the
 endpoint when trying to view this page. Then it keeps loading the page
 forever coz every time the endpoint get suspended.

 Have you done any improvements to avoid this? I believe this is due
 to the retrieving data from registry?

 Regards,
 AmilaM.

 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446




 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


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




 --


 *Asanka DissanayakeSoftware Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com http://wso2.com/*

 *email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com
 http://cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com
 http://asankastechtalks.wordpress.com  mobile: +94 71 8373821*

 ___
 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] WSO2 Committers += Isuruwan Herath

2014-01-24 Thread Gayan Dhanushka
Congratzzz Isuruwan...!!!

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Jan 24, 2014 at 12:48 PM, Malintha Adikari malin...@wso2.comwrote:

 Congratulations Isuruwan ... !!!

 Regards,
 Malintha


 On Fri, Jan 24, 2014 at 12:47 PM, Waruna Jayaweera waru...@wso2.comwrote:

 Congratzz Isuruwan


 On Fri, Jan 24, 2014 at 12:37 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 Congrats Isuru1!



 On Fri, Jan 24, 2014 at 12:23 PM, Senaka Fernando sen...@wso2.comwrote:

 Hi all,

 Its my pleasure to welcome Isuruwan Herath as a WSO2 Committer.
 Isuruwan has made some great contributions to our platform during the last
 few months and in recognition of his commitment and contributions he has
 been voted as a committer.

 Isuruwan, welcome aboard and keep up the good work.

 Best Regards,
 Senaka.

 --


 *[image: http://wso2.com] http://wso2.com Senaka Fernando*
 Senior Technical Lead; WSO2 Inc.; http://wso2.com



 * Member; Apache Software Foundation; http://apache.org
 http://apache.orgE-mail: senaka AT wso2.com http://wso2.com**P: +1
 408 754 7388 %2B1%20408%20754%207388; ext: 51736*;


 *M: +94 77 322 1818 %2B94%2077%20322%201818 Linked-In:
 http://linkedin.com/in/senakafernando
 http://linkedin.com/in/senakafernando*Lean . Enterprise . Middleware

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




 --
 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




 --
 *Malintha Adikari*
  Software Engineer

 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 2312958

 ___
 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] WSO2 Committers += SumedhaS

2014-01-03 Thread Gayan Dhanushka
Congratzzz Sumedha...!!!

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Jan 3, 2014 at 2:29 PM, Tanya Madurapperuma ta...@wso2.com wrote:

 Congrats Sumedha !!!


 On Fri, Jan 3, 2014 at 2:26 PM, Shameera Rathnayaka shame...@wso2.comwrote:

 Congratzzz Sumedha !!!

 Thanks,
 Shameera.

 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT apache.org
 shame...@apache.org*
 *phone:  +9471 922 1454 %2B9471%20922%201454*

 *Linked in : *http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R


 On Fri, Jan 3, 2014 at 2:20 PM, Malintha Adikari malin...@wso2.comwrote:

 Congratulations Sumedha ..!!


 On Fri, Jan 3, 2014 at 2:13 PM, Nufail Mohamed nuf...@wso2.com wrote:

 Congrats Sumedha!


 On Fri, Jan 3, 2014 at 2:01 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Sumedha !!!

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Fri, Jan 3, 2014 at 1:58 PM, Amila Maha Arachchi 
 ami...@wso2.comwrote:


 Hi All,

 It's my pleasure to welcome Sumedha Kodithuwakku as a WSO2 Committer.
 SumedhaS has been a valuable contributor to the Cloud team during the 
 last
 few months. He worked on the Cloud Preview deployment and also developed
 the HeartBeat tool for it. In addition to that he has worked on many 
 other
 Cloud related development work. In recognition of his contributions,
 SumedhaS has been voted as a WSO2 committer.

 SumedhaS, Welcome aboard and keep up the good work!

 Regards,
 AmilaM.
 --
 *Amila Maharachchi*
 Senior Technical Lead
 WSO2, Inc.; http://wso2.com

 Blog: http://maharachchi.blogspot.com
 Mobile: +94719371446


 ___
 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



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




 --
 *Malintha Adikari*
  Software Engineer
 WSO2 Inc.; http://wso2.com
 lean.enterprise.middleware

 mobile: +94 71 2312958

 ___
 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




 --
 Tanya Madurapperuma

 Software Engineer,
 WSO2 Inc. : wso2.com
 Mobile : +94718184439
 Blog : http://tanyamadurapperuma.blogspot.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


Re: [Dev] WSO2 Committers += Shani

2013-12-16 Thread Gayan Dhanushka
Congrat...!!!

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Tue, Dec 17, 2013 at 9:54 AM, Jayanga Dissanayake jaya...@wso2.comwrote:

 Congratulations Shani :)

 Best Regards,
 JD


 On Tue, Dec 17, 2013 at 9:35 AM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Shani !!!

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Tue, Dec 17, 2013 at 9:33 AM, Hasitha Hiranya hasit...@wso2.comwrote:

 Congrats Shani!!!


 On Tue, Dec 17, 2013 at 1:42 AM, Shameera Rathnayaka 
 shame...@wso2.comwrote:

 Congratulation Shani !!!

 Cheers,
 Shameera.


 On Mon, Dec 16, 2013 at 10:55 AM, Punnadi Gunarathna 
 punn...@wso2.comwrote:

 Congrats Shani :) Keep up the good work.


 On Mon, Dec 16, 2013 at 6:13 AM, Dunith Dhanushka dun...@wso2.comwrote:

 Congrats Shani!




 On Mon, Dec 16, 2013 at 6:26 PM, Ishara Premadasa ish...@wso2.comwrote:

 Congrats Shani... :)


 On Mon, Dec 16, 2013 at 6:12 PM, Chanika Geeganage chan...@wso2.com
  wrote:

 Congratulations Shani!!


 On Mon, Dec 16, 2013 at 6:03 PM, Sajith Ravindra 
 saji...@wso2.comwrote:

 Congratulations :)


 On Mon, Dec 16, 2013 at 2:24 PM, Thayalan thaya...@wso2.comwrote:

 Congratulations Shani!!


 On Mon, Dec 16, 2013 at 2:11 PM, Bhathiya Jayasekara 
 bhath...@wso2.com wrote:

 Congratulations Shani... :)


 On Mon, Dec 16, 2013 at 1:52 PM, Nuwan Silva nuw...@wso2.comwrote:

 Congrats Shani!!!


 On Mon, Dec 16, 2013 at 1:50 PM, Ruwan Yatawara 
 ruw...@wso2.com wrote:

 Congrats Shani!

 Thanks and Regards,

 Ruwan Yatawara

 Software Engineer,
 WSO2 Inc.
  lean . enterprise . middleware

 email : ruw...@wso2.com
 mobile : +94 77 9110413
 blog : http://ruwansrants.blogspot.com/
 www: :http://wso2.com



 On Mon, Dec 16, 2013 at 1:42 PM, Harsha Thirimanna 
 hars...@wso2.com wrote:

 Congratulations...


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71
 5186770*
 * twitter: **http://twitter.com/
 http://twitter.com/afkham_azeez*
 *harshathirimann linked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

  *Lean . Enterprise . Middleware*



 On Mon, Dec 16, 2013 at 1:41 PM, Nirmal Fernando 
 nir...@wso2.com wrote:

 Congratulations Shani !


 On Monday, December 16, 2013, Dhanuka Ranasinghe wrote:

 Hi,

 Congrats Shani, and keep up the good work !!

 Cheers,
 Dhanuka

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Dec 16, 2013 at 10:55 AM, Prabath Abeysekera 
 praba...@wso2.com wrote:

 Hi All,

 It's my pleasure to welcome Shani Ranasinghe as a WSO2
 Committer. Shani has been a key member of the team since she 
 joined SS and
 has contributed greatly to SS related developments with a 
 great deal of
 enthusiasm over the last couple of months. In recognition of 
 her
 contributions, Shani's been voted as a WSO2 comitter.

 Shani, Welcome aboard and keep up the good work!


 Cheers,
 Prabath

 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

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




 --

 Thanks  regards,
 Nirmal

 Senior Software Engineer- Platform Technologies Team, WSO2
 Inc.
 Mobile: +94715779733
 Blog: http://nirmalfdo.blogspot.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



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




 --


 *Nuwan Silva*
 *Senior Software Engineer - QA*
 Mobile: +94779804543

 WSO2 Inc.
 lean . enterprise . middlewear.
 http://www.wso2.com

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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com http://wso2.com*

 *Phone: +94715478185 %2B94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax
 https://twitter.com/bhathiyax*

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




 --
 Regards,
 Thayalan Sivapaleswararajah
 Associate Technical Lead - QA
 Mob: +94(0)777872485
 Tel : +94(0)(11)2145345
 

Re: [Dev] [AppFactory] AppFactory distribution resources structure

2013-12-12 Thread Gayan Dhanushka
+1 for the new structure

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Thu, Dec 12, 2013 at 7:03 PM, Harsha Thirimanna hars...@wso2.com wrote:

 +1 for this,


 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/*
 * email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770*
 * twitter: **http://twitter.com/ http://twitter.com/afkham_azeez*
 *harshathirimann linked-in: **http:
 http://lk.linkedin.com/in/afkhamazeez**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
 http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*

  *Lean . Enterprise . Middleware*



 On Thu, Dec 12, 2013 at 6:53 PM, Manjula Rathnayake manju...@wso2.comwrote:

 Hi all,

 We need to distribute below resources with AppFactory distribution. These
 resources are copied into different servers when deploying AppFactory. This
 will increase the size of AppFactory distribution by 50MB but we can find
 all required resources in one place for setting up AppFactory. Puppet
 scripts and local setup can use these resources from AppFactory
 distribution itself.

  Carbon_HOME/resources
 ├── archtypes
 │   ├── af-archetype-1.1.0.jar
 │   ├── bpel-archetype-1.0.0.jar
 │   ├── dbs-archetype-1.1.0.jar
 │   ├── esb-archetype-1.1.0.jar
 │   ├── jaggery-archetype-1.1.0.jar
 │   ├── jaxrs-archetype-1.1.0.jar
 │   ├── jaxws-archetype-1.1.0.jar
 │   ├── php-archetype-1.1.0.jar
 │   └── webapp-archetype-1.1.0.jar
 ├── bpels
 │   ├── ApplicationCreation.zip
 │   ├── CreateArtifact.zip
 │   ├── CreateTenant.zip
 │   ├── DeployArtifact.zip
 │   └── GovernanceBPEL.zip
 ├── dashboards
 ├── extensions
 │   ├── org.wso2.carbon.appfactory.ext-1.1.0.jar
 │   ├── org.wso2.carbon.appfactory.jenkinsext-1.1.0.jar
 │   └── org.wso2.carbon.appfactory.s2.listners-1.1.0.jar
 ├── gadgets
 ├── jaggery-apps
 │   └── cloudmgt.zip
 ├── lifecycles
 │   └── configurations.xml
 ├── plugins
 │   ├── appfactory-authentication-plugin.jar
 │   ├── appfactory.gitblit.plugin-0.0.1-jar-with-dependencies.jar
 │   ├── appfactory-plugin.hpi
 │   └── dynamic-slave.hpi
 ├── rxts
 │   ├── application.rxt
 │   ├── appversions.rxt
 │   ├── database.rxt
 │   ├── databasetemplate.rxt
 │   ├── databaseuser.rxt
 │   └── eta.rxt
 ├── schemas
 │   └── rxt.xsd
 ├── toolboxes
 │   └── AF_Analytics.tbox
 └── webapps
 └── issuetracker-1.0.0.war

 thank you.


 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

 ___
 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


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


Re: [Dev] WSO2 Committers += Dunith

2013-12-06 Thread Gayan Dhanushka
Congratzzz Dunith.!!!

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Dec 6, 2013 at 9:18 PM, Shani Ranasinghe sh...@wso2.com wrote:

 Congrats...


 On Fri, Dec 6, 2013 at 8:14 PM, Gokul Balakrishnan go...@wso2.com wrote:

 Congrats Dunith!


 On 6 December 2013 01:55, Anjana Fernando anj...@wso2.com wrote:

 Hi everyone,

 It's my pleasure to announce Dunith as a WSO2 committer. Dunith has done
 many contributions to the BAM product, and has proven to be an expert in
 related technologies. I'm sure he will continue to be a valuable asset to
 the BAM team. Dunith, welcome board, and keep it up! ..

 Cheers,
 Anjana.

 --
 *Anjana Fernando*
 Technical Lead
 WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc.; http://wso2.com
 Tel: 0094 11 214 5345  |  Fax: 0094 11 214 5300

 Twitter:  http://twitter.com/gokulbs
 Mobile: 0094 77 593 5789

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




 --
 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 mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Installing App Factory in Windows machines

2013-12-04 Thread Gayan Dhanushka
Hi Krishanthi,

I think what people are suggesting here is that there may be clients which
enables us to run linux shell scripts on top of windows. If there be a
client like that you don't need to rewrite them. Yoou will just need to run
those scripts using that client.

Thanks.
GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Thu, Dec 5, 2013 at 11:57 AM, Krishanthi Samarasinghe 
krishant...@wso2.com wrote:

 Ok..do we have those scripts or do we need to write them for windows?

 Thanx


 On Thu, Dec 5, 2013 at 11:25 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Well... Ideally that requires porting shell scripts (that configures AF
 local setup) to windows.



 On Thu, Dec 5, 2013 at 11:19 AM, Krishanthi Samarasinghe 
 krishant...@wso2.com wrote:

 I wanted to do a local set up in Windows. But I have moved to Ubuntu
 since there were not any scripts for Windows.

 By the mean time I wanted to know the feasibility of setting up in
 Windows.

 Thanx.


 On Thu, Dec 5, 2013 at 10:14 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Well... we haven't tried it before... and we don't have Scripts for
 windows (yet!).
 But in my opinion nothing prevents us from doing it.
 Are you trying to do a distributed setup? or a local (everything in one
 machine) setup?



 On Thu, Dec 5, 2013 at 10:09 AM, Krishanthi Samarasinghe 
 krishant...@wso2.com wrote:

 Hi,

 Is it possible to install App Factory in Windows machines?

 --
 Best Regards,
 Krishanthi Bhagya Samarasinghe
 Senior Software Engineer

 Mobile: +94 716028280


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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671




 --
 Best Regards,
 Krishanthi Bhagya Samarasinghe
 Senior Software engineer

 Mobile: +94 716028280




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671




 --
 Best Regards,
 Krishanthi Bhagya Samarasinghe
 Senior Software engineer

 Mobile: +94 716028280


 ___
 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


[Dev] [Jaggery] Adding getUserListOfRole to the user-manager.js

2013-11-19 Thread Gayan Dhanushka
Hi,

Please merge the pull request of $subject.

merge id is #69 https://github.com/wso2/jaggery/issues/69

Thanks
GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [WSO2 Cloud] Validate ' - ' (hyphen) in organization name when creating a tenant

2013-11-04 Thread Gayan Dhanushka
Hi all,

As per now a user can give an organization comprising of the a hyphen while
registering a tenant. But this causes failures when a user tries to create
a database in a certain environment since mysql doesn't allow creating
databases comprising of the hyphen.

e.g. if tenant name is gayand-aftest.com my sql database name would be
something like t...@gayand-aftest.com which will in turn cause a sql create
database statement failure.

We need to fix this. What are your thoughts?

Thanks
Gayan


Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AppFactory] Enable deploy only if there is a successful build and after deployed one of successful build

2013-10-31 Thread Gayan Dhanushka
Hi,

IMO we really need to figure out ways to make the UIs more responsive. At
the moment they are not responsive enough. For a user it is too misleading
sometimes. After clicking the build button it should be disabled until the
build finishes. Further more I don't think that we need to look for
successful build to deploy (Don't need to go through all the builds to look
for a successful build). Considering the last build is enough. Someone who
has written new code and pushed it to the repo will not want to deploy an
earlier build as his/her is considering only the last build.

Thanks.
GayanD

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Nov 1, 2013 at 8:12 AM, Ashansa Perera asha...@wso2.com wrote:

 Hi all,

 IMO too enabling deploy button only if there is a successful build would
 need a lot of calls to jenkins as Danushka has also explained and it may
 not enough to do in page reload time too. So it would be good to show a
 notification if no successful build is there. But currently what we do is
 we programatically trigger a build if no successful build is there when
 user ask to deploy. But yes if that build fails the deployment will fail.
 If we are going to do this button disabling if no successful build is
 there, we may need to avoid building programatically.

 Regarding enabling the deploy button after the deployment successful :
 IMHO this is a main feature that we should add - a notification framework
 since most of our actions are async.
 And we should enable the button after trying to deploy ( means even the
 deployment is successful or not ) Else the user will be stuck if the
 deployment fails. But here I agree with Ramith, is there a specific reason
 for disabling the button until deployment finishes? For me too it does not
 seems to be a must thing to have.




 On Thu, Oct 31, 2013 at 6:12 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 To me also disabling buttons doesn't look attractive. But if we go down
 this path we can add a tool tip saying when the button is enabled etc.
 What seems best (and simple to implement would be) showing a dialog
 saying there is no build available yet.


 On Thu, Oct 31, 2013 at 5:56 PM, Danushka Fernando danush...@wso2.comwrote:

 Please check inline comments.

 On Thu, Oct 31, 2013 at 5:29 PM, Harsha Thirimanna hars...@wso2.comwrote:

  Hi,

 *Enable deploy only if there is a successful build*
 https://wso2.org/jira/browse/APPFAC-1644
 We can get the lastSuccessfulBuild id from jenkins to given job. When
 we click on the deploy button, we can check whether there is at least one
 lastSuccessfulBuild id and if there are no one then show the message to the
 user.

 Any suggestion about this ?

 Issue is proposing to disable the button when no successful builds are
 there. So
  1. I thought we have removed lot of disabling buttons because this
 confuses the user.
  2. If we disable buttons each time this page loads there will be lot of
 calls going to jenkins to check for successful builds to just disable the
 deploy button. And if we have 10 branches there there will be 10 calls for
 each page load.
 So without disabling the button its better to let the user click the
 button and popup a message saying there are no successful builds available.
 Please build first. This will reduce the unnecessary calls. WDYT?


 *Enable the deploy button after it is deployed*
 https://wso2.org/jira/browse/APPFAC-1645
 To do this we have to sync with deployed servers to check the
 deployment status. Then there may be lot of calls to back end according to
 the above suggestion.
 Are there any other ways to do this ?

 We do the deploy as an async operation. However lets say we implement
 this. There are two concerns for me.
  1. What happens at page reload. Does it re-enable?
  2. What happens if deploy fails for some reason. User wont be able to
 deploy that branch again.

 And I think disabling buttons will confuses the user since user doesn't
 know when this button will be enabled. WDYT?


 thanks

 *Harsha Thirimanna*
 Senior Software Engineer; WSO2, Inc.; http://wso2.com
 * http://www.apache.org/**
 email: **hars...@wso2.com* az...@wso2.com* cell: +94 71 5186770**
 twitter: **http://twitter.com/ http://twitter.com/afkham_azeez**
 harshathirimann
 linked-in: **http: http://lk.linkedin.com/in/afkhamazeez**//
 www.linkedin.com/pub/harsha-thirimanna/10/ab8/122*
 *
 *
 *Lean . Enterprise . Middleware*
 *
 *

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


 Thanks  Regards
 Danushka Fernando
 Software Engineer
 WSO2 inc. http://wso2.com/
  Mobile : +94716332729

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., 

Re: [Dev] [AppFactory] Enable deploy only if there is a successful build and after deployed one of successful build

2013-10-31 Thread Gayan Dhanushka
Hi Ashansa,

The point is not to deploy something which has been built successfully but
to build and deploy the version of the artifact that the user wants to run
and see. That's why I was referring to that.

Thanks
Gayan

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Nov 1, 2013 at 10:24 AM, Ashansa Perera asha...@wso2.com wrote:

 Hi Gayan,
 We do not specifically search for builds, but jenkins do have a tag to its
 last successful build so that we can simply use that. And we cannot use the
 last build coz if the last build is a failed build we cannot deploy an
 artifact out of that build. That is why we have used last successful build


 On Fri, Nov 1, 2013 at 9:11 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi,

 IMO we really need to figure out ways to make the UIs more responsive. At
 the moment they are not responsive enough. For a user it is too misleading
 sometimes. After clicking the build button it should be disabled until the
 build finishes. Further more I don't think that we need to look for
 successful build to deploy (Don't need to go through all the builds to look
 for a successful build). Considering the last build is enough. Someone who
 has written new code and pushed it to the repo will not want to deploy an
 earlier build as his/her is considering only the last build.

 Thanks.
 GayanD

 Gayan Dhanuska
 Software Engineer
 http://wso2.com/
 Lean Enterprise Middleware

 Mobile
 071 666 2327

 Office
 Tel   : 94 11 214 5345
 Fax  : 94 11 214 5300

 Twitter : https://twitter.com/gayanlggd


 On Fri, Nov 1, 2013 at 8:12 AM, Ashansa Perera asha...@wso2.com wrote:

 Hi all,

 IMO too enabling deploy button only if there is a successful build would
 need a lot of calls to jenkins as Danushka has also explained and it may
 not enough to do in page reload time too. So it would be good to show a
 notification if no successful build is there. But currently what we do is
 we programatically trigger a build if no successful build is there when
 user ask to deploy. But yes if that build fails the deployment will fail.
 If we are going to do this button disabling if no successful build is
 there, we may need to avoid building programatically.

 Regarding enabling the deploy button after the deployment successful :
 IMHO this is a main feature that we should add - a notification
 framework since most of our actions are async.
 And we should enable the button after trying to deploy ( means even the
 deployment is successful or not ) Else the user will be stuck if the
 deployment fails. But here I agree with Ramith, is there a specific reason
 for disabling the button until deployment finishes? For me too it does not
 seems to be a must thing to have.




 On Thu, Oct 31, 2013 at 6:12 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 To me also disabling buttons doesn't look attractive. But if we go down
 this path we can add a tool tip saying when the button is enabled etc.
 What seems best (and simple to implement would be) showing a dialog
 saying there is no build available yet.


 On Thu, Oct 31, 2013 at 5:56 PM, Danushka Fernando 
 danush...@wso2.comwrote:

 Please check inline comments.

 On Thu, Oct 31, 2013 at 5:29 PM, Harsha Thirimanna 
 hars...@wso2.comwrote:

  Hi,

 *Enable deploy only if there is a successful build*
 https://wso2.org/jira/browse/APPFAC-1644
 We can get the lastSuccessfulBuild id from jenkins to given job. When
 we click on the deploy button, we can check whether there is at least one
 lastSuccessfulBuild id and if there are no one then show the message to 
 the
 user.

 Any suggestion about this ?

 Issue is proposing to disable the button when no successful builds
 are there. So
  1. I thought we have removed lot of disabling buttons because this
 confuses the user.
  2. If we disable buttons each time this page loads there will be lot
 of calls going to jenkins to check for successful builds to just disable
 the deploy button. And if we have 10 branches there there will be 10 calls
 for each page load.
 So without disabling the button its better to let the user click the
 button and popup a message saying there are no successful builds 
 available.
 Please build first. This will reduce the unnecessary calls. WDYT?


 *Enable the deploy button after it is deployed*
 https://wso2.org/jira/browse/APPFAC-1645
 To do this we have to sync with deployed servers to check the
 deployment status. Then there may be lot of calls to back end according 
 to
 the above suggestion.
 Are there any other ways to do this ?

 We do the deploy as an async operation. However lets say we implement
 this. There are two concerns for me.
  1. What happens at page reload. Does it re-enable?
  2. What happens if deploy fails for some reason. User wont be able to
 deploy that branch again.

 And I think disabling buttons will confuses the user

Re: [Dev] Provide an existing GIT url in AppFactory

2013-09-20 Thread Gayan Dhanushka
Hi Udara,

I'm afraid it is not. We are given a git repo when we are creating the
application. It is a git repo created for your application. We can't give
an existing git url during the application creation.

Thanks.
Gayan

Gayan Dhanuska
Software Engineer
http://wso2.com/
Lean Enterprise Middleware

Mobile
071 666 2327

Office
Tel   : 94 11 214 5345
Fax  : 94 11 214 5300

Twitter : https://twitter.com/gayanlggd


On Fri, Sep 20, 2013 at 2:28 PM, Udara Liyanage ud...@wso2.com wrote:

 Hi,

 When creating an app in AppFactory we are provided a GIT url where we can
 develop our applications. Is there any way we can give our existing GIT url
 when creating a application?

 --
 Udara Liyanage
 Software Engineer
 WSO2, Inc.: http://wso2.com
 lean. enterprise. middleware

 web: http://udaraliyanage.wordpress.com
 phone: +94 71 443 6897

 ___
 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] [aPaas][Appfactory]Adding a user to a tenant

2013-09-02 Thread Gayan Dhanushka
Hi Asanka,

I would like to make a point that this is different from something like
inviting an existing user to an app as a develpoer by the app owner. In
that case the user is already there. As per my thinking this is a whole
different scenario. I would like to know whether this user is already
registered under the same organization, so that adding a user to a tenant
points to adding a user who is already there in an organization to the same
organization's appfac tenant?

Thanks!
GayanD


On Mon, Sep 2, 2013 at 12:28 PM, Sameera Perera samee...@wso2.com wrote:

 Ideally the scenario you describe should work. But, if you add x@bar.comto 
 your
 foo.com domain, how do you know to log him in to foo.com from the login
 page? What if bar.com is a tenant as well? How do you know where to log
 him in?




 On Mon, Sep 2, 2013 at 12:15 PM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 @ shiro
 #1 and #2 already there. will look in to #3.

 @sameera,
 so in that case, we are not gonna support private email addresses. For
 example I need to use aPaaS and create an organization called foo, and i
 dont't have @foo.com email adresses. I want to add users to the tenant
 with their private email addresses. I think this scenario fails if we put a
 restriction on the email address.

 If I am missing the point can you please explain me the reason for not
 allowing use arbitrary email addresses?

 cheers!!
 Asanka D



 On Mon, Sep 2, 2013 at 11:53 AM, Sameera Perera samee...@wso2.comwrote:

 Hi Asanka,

  For the cloud, can you confirm that we will not support adding user
 with any arbitrary email address for this phase?
 I.e. Only users with @tenantdomain email addresses can be added.
 Can you confirm?



 On Mon, Sep 2, 2013 at 11:48 AM, Asanka Dissanayake asan...@wso2.comwrote:

 Hi,
 User story for adding a user to a tenant is as follows.

 1- tenant admin enter the email of the user(not in the LDAP yet) and
 select a role.
 2- then tenant admin invite the user.
 3- then user receives an email containing confirmation link.
 4- upon the confirmation user is added to the tenant domain.

 According to the offline chat had with Dimuthu, we came to a conclusion
 that there is no point of adding a user to the tenant domain before sending
 the email unless it's a user within the organization.But when it comes to
 cloud, any one wouldn't like to be a developer,qa of an application without
 his permission/confirmation.

 Please give comments on the above user story. I need to get this
 finalized to start implementations. Quick reply s are highly appreciated.

 cheers!!
 Asanka D
 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94
 71 8373821*




 --

 --

 *Sameera Perera*
 Senior Manager, Cloud Technology Group
 gtalk: samee...@wso2.com
 *WSO2, Inc.* http://wso2.com/
 lean.enterprise.middleware



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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Dhanuka

2013-09-02 Thread Gayan Dhanushka
Congratzzz Dhanuka!!!


On Tue, Sep 3, 2013 at 10:01 AM, Prabath Abeysekera praba...@wso2.comwrote:

 Hi All,

 It's my pleasure to welcome Dhanuka Ranasinghe as a WSO2 Committer.
 Dhanuka has been a great contributor to SS over the last couple of months
 handling all the responsibilities entrusted to him pretty satisfactorily.
 In acknowldgement of all his contributions, he's been voted as a WSO2
 committer.

 Dhanuka, Welcome aboard and keep up the good work!



 Cheers,
 Prabath
 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com
 Mobile: +94774171471

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Gokul

2013-08-29 Thread Gayan Dhanushka
.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 *Asanka Sanjeewa*
 Senior Software Engineer
 Mobile: +94772532924
 WSO2 Inc. http://wso2.com/
 Blog: http://asanka-tech-blog.blogspot.com/


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




 --
 *Susinda Perera*
 Software Engineer
 Mobile:(+94)716049075

 WSO2 Inc. http://wso2.com/

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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/
 *Blog   :  http://isharapremadasa.blogspot.com/
 Twitter   :  https://twitter.com/ishadil
 Mobile   : +94 714445832*



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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] Welcome Lasantha Fernando as a WSO2 Committer

2013-08-26 Thread Gayan Dhanushka
Congratz Lasantha...!!!


On Mon, Aug 26, 2013 at 4:41 PM, Manoj Kumara ma...@wso2.com wrote:

 Congratulations Lasantha

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Mon, Aug 26, 2013 at 4:14 PM, Sriskandarajah Suhothayan 
 s...@wso2.comwrote:

 Hi All,

 It is my pleasure to welcome Lasantha Fernando as a WSO2 Committer.

 Lasantha joined CEP team and have contributed a lot to CEP product, He
 has also worked on Siddhi adding several improvements successfully.

 In recognition of his commitment and contributions, he has been voted as
 a Committer for WSO2.

 Lasantha, Congratulations and Welcome Aboard! Keep up the good work!!

 Regards,
 Suho

 --
 *S. Suhothayan
 *
 Associate Technical Lead,
  *WSO2 Inc. *http://wso2.com *
  http://wso2.com/*
 lean . enterprise . middleware

 *cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
 twitter: http://twitter.com/suhothayan | linked-in:
 http://lk.linkedin.com/in/suhothayan*
 *
 *

 ___
 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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committer += Ruwan Yatawara

2013-08-18 Thread Gayan Dhanushka
Congratzz Ruwan


On Mon, Aug 19, 2013 at 10:56 AM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Congratulations Ruwan !!!


 On Mon, Aug 19, 2013 at 10:52 AM, Bhathiya Jayasekara 
 bhath...@wso2.comwrote:

 Congratzz Ruwan...


 On Mon, Aug 19, 2013 at 10:49 AM, Sumedha Rubasinghe sume...@wso2.comwrote:

 It's my pleasure to welcome Ruwan Yatawara as a WSO2 Committer
 considering all the valuable contributions he has done during past few
 months.

 Ruwan,
 Welcome aboard  keep up the good work.

 --
 /sumedha
 b :  bit.ly/sumedha

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




 --
 *Bhathiya Jayasekara*
 *Software Engineer,*
 *WSO2 inc., http://wso2.com*
 *
 *
 *Phone: +94715478185*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj*
 *Twitter: https://twitter.com/bhathiyax*

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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Chanaka Fernando

2013-08-18 Thread Gayan Dhanushka
Congratzz Chanaka...!!!


On Mon, Aug 19, 2013 at 10:58 AM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 congratz Chanaka!!!

 *Dhanuka Ranasinghe*

 Senior Software Engineer
 WSO2 Inc. ; http://wso2.com

 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Aug 19, 2013 at 10:50 AM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi all,

 Its my pleasure to welcome Chanaka Fernando as a WSO2 Committer.
 ChanakaF has been contributing to ESB for last couple of months and has
 done an excellent job in recent cloud connector work.

 Chanaka, welcome aboard and keep up the good work.

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

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Tanya Madurapperuma

2013-08-15 Thread Gayan Dhanushka
Congratzz Tanya ...!!


On Fri, Aug 16, 2013 at 10:53 AM, Pulasthi Supun pulas...@wso2.com wrote:

 Congrats tanya :)


 On Fri, Aug 16, 2013 at 10:11 AM, Nuwan Bandara nu...@wso2.com wrote:

 Hi All,

 Its my pleasure to welcome Tanya to WSO2 developer community by granting
 WSO2 commitership. Tanya has been contributing to products such as Jaggery,
 UES, Enterprise Store and also was working extensively on internal
 engineering application.

 While appreciating her contribution, I wish her all the best and hoping
 to see more and more technical contributions to our products and solutions
 spaces.

 Welcome  Thank You

 --
 *Thanks  Regards,

 Nuwan Bandara
 Technical Lead; **WSO2 Inc. *
 *lean . enterprise . middleware |  http://wso2.com *
 *blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763
 9629
 *
 http://www.nuwanbando.com/

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Bhathiya

2013-08-13 Thread Gayan Dhanushka
Congratzz Bhathiya...!!


On Tue, Aug 13, 2013 at 2:08 PM, Prabath Abeysekera praba...@wso2.comwrote:

 Hi All,

 It's my pleasure to welcome Bhathiya Jayasekara as a WSO2 Committer.
 Bhathiya has been a key member of the team since he joined SS and has
 contributed greatly to SS related developments over the last couple of
 months. In acknowledgement of his contributions, he's been voted as a WSO2
 comitter. Welcome aboard and keep up the good work!


 Cheers,
 Prabath

 --
 Prabath Abeysekara
 Associate Technical Lead, Data TG.
 WSO2 Inc.
 Email: praba...@wso2.com harsha...@wso2.com
 Mobile: +94774171471

 http://harshana05.blogspot.com/

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Chanika

2013-08-07 Thread Gayan Dhanushka
Congratzz Chanika.!!!


On Tue, Aug 6, 2013 at 10:03 AM, Chamath Gunawardana chama...@wso2.comwrote:

 Congrats Chanika ..!


 On Tue, Aug 6, 2013 at 8:45 AM, Darshana Gunawardana darsh...@wso2.comwrote:

 Congratulation Chanika..!!


 On Mon, Aug 5, 2013 at 10:47 AM, Dhanuka Ranasinghe dhan...@wso2.comwrote:

 Congratulation !!!

 *Dhanuka Ranasinghe*

 Senior Software Engineer

 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 715381915


 On Mon, Aug 5, 2013 at 10:35 AM, Hasitha Aravinda hasi...@wso2.comwrote:

 Congratulation ...!!!

 Thanks,
 Hasitha.


 On Mon, Aug 5, 2013 at 9:24 AM, Anjana Fernando anj...@wso2.comwrote:

 Hi everyone,

 It's my pleasure to announce Chanika as a WSO2 commiter. Chanika has
 done many contribution in improving DSS features. And I'm sure she will
 continue to be a key member in the team. Chanika, welcome aboard and keep
 it up! ..

 Cheers,
 Anjana.
 --
 *Anjana Fernando*
 Technical Lead
  WSO2 Inc. | http://wso2.com
 lean . enterprise . middleware

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




 --
 Hasitha Aravinda,
 Software Engineer,
 WSO2 Inc.
 Email: hasi...@wso2.com
 Mobile: +94 71 8 210 200


 ___
 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




 --
 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




 --
 Best Regards,
 Chamath Gunawardana
 Technical Lead; WSO2 Inc.
 Mobile : +94776322240

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Asanka Vithanage

2013-08-07 Thread Gayan Dhanushka
Congratz Asanka!!!


On Wed, Aug 7, 2013 at 10:55 AM, Manula Chathurika Thantriwatte 
manu...@wso2.com wrote:

 Congratulations Asanka !!!


 On Wed, Aug 7, 2013 at 10:52 AM, Dunith Dhanushka dun...@wso2.com wrote:

 Congrats Asanka!


 On Wed, Aug 7, 2013 at 10:44 AM, Ushani Balasooriya ush...@wso2.comwrote:

 Congrats Asanka.


 On Tue, Aug 6, 2013 at 5:55 PM, Supun Malinga sup...@wso2.com wrote:

 Congrats!!


 On Tue, Aug 6, 2013 at 5:47 PM, Maninda Edirisooriya 
 mani...@wso2.comwrote:

 Congratulation Asanka ... !!!

 *
 Maninda Edirisooriya*
 Software Engineer
 *WSO2, Inc.
 *lean.enterprise.middleware.

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


 On Tue, Aug 6, 2013 at 10:02 AM, Chamath Gunawardana 
 chama...@wso2.com wrote:

 Congrats Asanka .. !


 On Tue, Aug 6, 2013 at 8:46 AM, Venura Kahawala ven...@wso2.comwrote:

 Congrats Asanka..


 On Tue, Aug 6, 2013 at 8:43 AM, Darshana Gunawardana 
 darsh...@wso2.com wrote:

 Congratulation Asanka..!!


 On Mon, Aug 5, 2013 at 3:41 PM, Shani Ranasinghe sh...@wso2.comwrote:

 cngrts


 On Mon, Aug 5, 2013 at 2:15 PM, Shashika Ubhayaratne 
 shash...@wso2.com wrote:

 Congrats Asanka


 Shashika Ubhayaratne
 Associate Technical Lead - QA
 WSO2 Inc: http://www.wso2.com/
 Mobile: *+94773383831*


 On Mon, Aug 5, 2013 at 1:14 PM, Manoj Kumara ma...@wso2.comwrote:

 Congratz Asanka ...

 Best Regards..


 Manoj Kumara
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/ManKuma
 Mobile: +94713448188


 On Mon, Aug 5, 2013 at 11:36 AM, Evanthika Amarasiri 
 evanth...@wso2.com wrote:

 Hi,

 I would like to welcome Asanka Vithanage as a WSO2 Committer.

 AsankaV has made great contributions for the WSO2 Carbon
 platform, specially Message Broker  App-Server products.

 Welcome aboard AsankaV  keep up the good work.

 Regards,
 Evanthika Amarasiri
 Senior Technical Lead - Quality Assurance
 Mobile: +94773125935

 ___
 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



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




 --
 *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




 --
 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




 --
 Senior Software Engineer

 Mobile: +94 71 82 300 20


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




 --
 Best Regards,
 Chamath Gunawardana
 Technical Lead; WSO2 Inc.
 Mobile : +94776322240

 ___
 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




 --
 Supun Malinga,

 Senior Software Engineer,
 WSO2 Inc.
 http://wso2.com
 http://wso2.org
 email - sup...@wso2.com sup...@wso2.com
 mobile - 071 56 91 321

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




 --
 *Ushani Balasooriya*
 Software Engineer - QA;
 WSO2 Inc; http://www.wso2.com/.
 Mobile; +94772636796


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




 --
 Regards,

 Dunith Dhanushka,
 Senior Software Engineer - BAM,
 WSO2 Inc,

 Mobile - +94 71 8615744
 Blog - dunithd.wordpress.com http://blog.dunith.com
 Twitter - @dunithd http://twitter.com/dunithd

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




 --
 Regards,
 Manula Chathurika Thantriwatte
 Software Engineer
 WSO2 Inc. : http://wso2.com
 lean . enterprise . middleware

 email : manu...@wso2.com / man...@apache.org
 phone : +94 772492511
 blog : http://manulachathurika.blogspot.com/




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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] Welcome Susankha Nirmala as a WSO2 Committer

2013-07-26 Thread Gayan Dhanushka
Congratzz Susanka.!!


On Fri, Jul 26, 2013 at 12:25 PM, Asanka Vithanage asan...@wso2.com wrote:

 Congratzz susankha !!


 On Fri, Jul 26, 2013 at 12:16 PM, Udara Rathnayake uda...@wso2.comwrote:

 Congratulations Susankha !


 On Fri, Jul 26, 2013 at 12:09 PM, Ishara Premadasa ish...@wso2.comwrote:

 Congratulations Susankha!


 On Fri, Jul 26, 2013 at 11:57 AM, Manula Chathurika Thantriwatte 
 manu...@wso2.com wrote:

 Congratulations Susankha !!!


  On Fri, Jul 26, 2013 at 11:51 AM, Sumedha Kodithuwakku 
 sumed...@wso2.com wrote:

 Congratz Susankha...!


 On Fri, Jul 26, 2013 at 11:49 AM, Pulasthi Supun pulas...@wso2.comwrote:

 Congratzz Susankha

 Regards
 Pulasthi


 On Fri, Jul 26, 2013 at 11:47 AM, Jasintha Dasanayake 
 jasin...@wso2.com wrote:


 Congratz

 /Jasintha


 On Fri, Jul 26, 2013 at 11:39 AM, Shameera Rathnayaka 
 shame...@wso2.com wrote:

 Congratzz Susankha




 On Fri, Jul 26, 2013 at 11:36 AM, Harshana Martin 
 harsh...@wso2.com wrote:

 Hi All,

 It is my distinct pleasure to welcome Susankha Nirmala as a WSO2
 Committer.

 Susankha has made some great contributions to WSO2 Developer
 Studio and the Carbon Platform during the last couple of months and in
 recognition of his commitment and contributions, he has been voted as 
 a Committer
 for WSO2.

 Susankha, Congratulations and Welcome Aboard!

 Keep up the good work!!

 Thanks and Regards,
 Harshana
  --

 Harshana Martin
 Associate Technical Lead
 WSO2 Inc. : http://wso2.com

 Mobile: +94 775 998 115
 Profile: https://www.google.com/profiles/harshana05
 Blog: http://harshana05.blogspot.com
 Twitter: http://twitter.com/harshana05


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




 --
 *Software Engineer - WSO2 Inc.*
 *email: shameera AT wso2.com shame...@wso2.com , shameera AT
 apache.org shame...@apache.org*
 *phone:  +9471 922 1454*
 *
 *
 *Linked in : *
 http://lk.linkedin.com/pub/shameera-rathnayaka/1a/661/561
 *Twitter : *https://twitter.com/Shameera_R

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




 --
 *Jasintha Dasanayake
 **Software Engineer
 WSO2 Inc. | http://wso2.com

 lean . enterprise . middleware
 *
 *
 *
 *mobile :- 077 291 6596*

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




 --
 --
 Pulasthi Supun
 Software Engineer; WSO2 Inc.; http://wso2.com,
 Email: pulas...@wso2.com
 Mobile: +94 (71) 9258281
 Blog : http://pulasthisupun.blogspot.com/
 Git hub profile: https://github.com/pulasthi

 ___
 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




 --
 *Manula Chathurika Thantriwatte*
 Software Engineer
 WSO2 Inc. ; http://wso2.com
 lean . enterprise . middleware

 phone : +94 77 2492511

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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/
 *Blog   :  http://isharapremadasa.blogspot.com/
 Twitter   :  https://twitter.com/ishadil
 Mobile   : +94 714445832*



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




 --
 *Udara Rathnayake*
 Software Engineer
 WSO2 Inc. : http://wso2.com

 Mobile : +94 772207239
 Twitter : http://twitter.com/udarakr
 Blog: http://udarakr.blogspot.com


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




 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


[Dev] Status of Dashboards in AppFactory/aPaaS : MileStone 1

2013-07-24 Thread Gayan Dhanushka
*Objective: *To have a thin slice that spans through

- Event publishing to BAM - application creation

Completed

- Creation of scripts for the captured events to convert data into UES
gadgets

Completed

- Create a store with UES gadgets which represent the events captured

Completed

- Create a default dashboard with these gadgets

Completed

- Do the above for two existing roles in AF

Completed

Thanks

Gayan



-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


[Dev] Retrieve tenant information of currently logged in user in hive scripts

2013-07-15 Thread Gayan Dhanushka
Hi all,

Is there a way we can do $subject?

In the example given in the documentation I can see that cassandra keyspace
credentials have been hard coded. For each tenant the credentials would be
different. So how can we provide it during runtime?

*CREATE EXTERNAL TABLE IF NOT EXISTS PhoneSalesTable
(orderID STRING, brandName STRING, userName STRING, quantity INT,
version STRING) STORED BY
'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
WITH SERDEPROPERTIES (
cassandra.host = 127.0.0.1 ,cassandra.port = 9160 ,
cassandra.ks.name = EVENT_KS ,cassandra.ks.username =
sinthuad...@sinthu.bam.test.com ,
cassandra.ks.password = sinthuadmin ,
cassandra.cf.name = org_wso2_bam_phone_retail_store_kpi ,
cassandra.columns.mapping =
:key,payload_brand, payload_user, payload_quantity, Version );*


Thanks

Gayan

-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] Retrieve tenant information of currently logged in user in hive scripts

2013-07-15 Thread Gayan Dhanushka
Hi Sinthuja,

That problem is solved now. Publishing all the data as super admin is
enough. We can publish tenant related information in the stream as well.
Hence there will be no need to publish data as admin.

Thanks
Gayan


On Tue, Jul 16, 2013 at 10:50 AM, Sinthuja Ragendran sinth...@wso2.comwrote:


 HI gayan,

 Can you explain your requirement in detail?

 If you wanted to do some admin related summarizing tasks, then you need to
 publish the tenant related information along with tenant domain, etc to the
 super-admin space using the super-admin credentials and then run the
 summarization as super-admin for tenant. This is how we do in the logging,
 usage-metering, etc. If you want to publish the data to tenant space, then
 of course you need to know the tenant credentials to summarize. You may
 also use the cassandra datasource name in the hive script, it that case you
 can generalize the hive script for tenants but the tenant need to create
 that data source for the successful execution of the script.

 Thanks,
 Sinthuja.



 On Mon, Jul 15, 2013 at 12:02 PM, Gayan Dhanushka gay...@wso2.com wrote:


 Hi all,

 Is there a way we can do $subject?

 In the example given in the documentation I can see that cassandra
 keyspace credentials have been hard coded. For each tenant the credentials
 would be different. So how can we provide it during runtime?

 *CREATE EXTERNAL TABLE IF NOT EXISTS PhoneSalesTable
 (orderID STRING, brandName STRING, userName STRING, quantity INT,
 version STRING) STORED BY
 'org.apache.hadoop.hive.cassandra.CassandraStorageHandler'
 WITH SERDEPROPERTIES (
 cassandra.host = 127.0.0.1 ,cassandra.port = 9160 ,
 cassandra.ks.name = EVENT_KS ,cassandra.ks.username = 
 sinthuad...@sinthu.bam.test.com ,
 cassandra.ks.password = sinthuadmin ,
 cassandra.cf.name = org_wso2_bam_phone_retail_store_kpi ,
 cassandra.columns.mapping =
 :key,payload_brand, payload_user, payload_quantity, Version );*


 Thanks



 Gayan

 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327




 --
 *Sinthuja Rajendran*
 Software Engineer http://wso2.com/
 WSO2, Inc.:http://wso2.com

 Blog: http://sinthu-rajan.blogspot.com/
 Mobile: +94774273955





-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Punnadi Goonewardena

2013-07-03 Thread Gayan Dhanushka
Congrat...


On Wed, Jul 3, 2013 at 2:15 PM, Sumedha Kodithuwakku sumed...@wso2.comwrote:

 Congratzz Punnadi!


 On Wed, Jul 3, 2013 at 2:13 PM, Ishara Premadasa ish...@wso2.com wrote:

 Congratulations Punnadi!


 On Wed, Jul 3, 2013 at 1:40 PM, Ramith Jayasinghe ram...@wso2.comwrote:

 Congrats 

 On Wed, Jul 3, 2013 at 1:37 PM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Punnadi,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer.
 Thank you for your contributions.

 thanks and best regards,
 Dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com

 Lean . Enterprise . Middleware

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/
 *Blog   :  http://isharapremadasa.blogspot.com/
 Twitter   :  https://twitter.com/ishadil
 Mobile   : +94 714445832*



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




 --
 *Sumedha Kodithuwakku*
 Software Engineer
 WSO2 Inc. : wso2.com
 lean . enterprise . middleware
 Mobile : +94718081124


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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Shafreen Anfar

2013-07-03 Thread Gayan Dhanushka
Congratzz Shafreen..!!


On Wed, Jul 3, 2013 at 2:15 PM, Sumedha Kodithuwakku sumed...@wso2.comwrote:

 Congratz Shafreen...!!


 On Wed, Jul 3, 2013 at 2:13 PM, Ishara Premadasa ish...@wso2.com wrote:

 Congratz Shafreen!


 On Wed, Jul 3, 2013 at 2:10 PM, Nihanth Joseph niha...@wso2.com wrote:

 Congrats Shafreen


 On Wed, Jul 3, 2013 at 2:08 PM, Ravi Undupitiya r...@wso2.com wrote:

 Congrats Shafreen! :)


 On Wed, Jul 3, 2013 at 2:03 PM, Kasun Indrasiri ka...@wso2.com wrote:

 Hi Folks,

 Its my pleasure to welcome Shafreen Anfar as a WSO2 Committer. He is a
 key contributor in bug fixing of 4.7 release and done a good job in ESB
 performance testing too.

 Shafreen, welcome aboard and keep up the good work.

 Thanks.

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

 cell: +94 71 536 4128
 Blog : http://kasunpanorama.blogspot.com/

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




 --
 *Ravi Undupitiya*
 Software Engineer; WSO2 Inc.; http://wso2.com
 *
 *
 *E-mail: r...@wso2.com
 **M: **+94 772 930 712*
 *
 *Lean . Enterprise . Middleware

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




 --
 Nihanth Joseph
 Senior Software Engineer
 Mob: +94719187136

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




 --
 Ishara Premasada
 Software Engineer,
 WSO2 Inc. http://wso2.com/
 *Blog   :  http://isharapremadasa.blogspot.com/
 Twitter   :  https://twitter.com/ishadil
 Mobile   : +94 714445832*



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




 --
 *Sumedha Kodithuwakku*
 Software Engineer
 WSO2 Inc. : wso2.com
 lean . enterprise . middleware
 Mobile : +94718081124


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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Asanka Dissanayake

2013-07-03 Thread Gayan Dhanushka
Congratzzz Asanka.!!


On Wed, Jul 3, 2013 at 1:40 PM, Ramith Jayasinghe ram...@wso2.com wrote:

 Congrats !

 On Wed, Jul 3, 2013 at 1:37 PM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Asanka,

 Congratulations!

 It is with great pleasure that we welcome you as a WSO2 committer. Thank
 you for your contributions.

 thanks and best regards,
 Dimuthu

 --
 Dimuthu Leelarathne
 Architect  Product Lead of App Factory

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware

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




 --
 Ramith Jayasinghe
 Technical Lead
 WSO2 Inc., http://wso2.com
 lean.enterprise.middleware

 E: ram...@wso2.com
 P: +94 776715671


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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Shameera Rathnayaka

2013-07-01 Thread Gayan Dhanushka
Congratzz Shameera !!!


On Mon, Jul 1, 2013 at 1:49 PM, Chanika Geeganage chan...@wso2.com wrote:

 Congratz Shameera 


 On Mon, Jul 1, 2013 at 1:46 PM, Balakrishnan Gokulakrishnan 
 go...@wso2.com wrote:

 Congratulations Shameera!

 On 1 July 2013 13:21, Pradeep Fernando prad...@wso2.com wrote:

 Hi Devs,

 Its my pleasure to welcome Shameera Rathnayaka as a WSO2 committer.
 He has made valuable contributions to WSO2 Carbon platform over the last
 few months. Thanks Shameera for the contributions and keep up the good work.


 Shameera, welcome aboard!!

 thanks,
 --Pradeep



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




 --
 *Balakrishnan Gokulakrishnan*
 Software Engineer,
 WSO2, Inc.; http://wso2.com

 Twitter:  http://twitter.com/gokulbs
 Mobile: +94775935789
 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Best Regards..

 Chanika Geeganage
 Software Engineer
 WSO2, Inc.; http://wso2.com

 Mobile: +94773522586

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] Build failure 4.1.3 branch /Jaggery

2013-05-31 Thread Gayan Dhanushka
Hi,

Please build this first.

https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.1.0/js/1.7.0.R4-wso2v1/

I got the same error and was able to solve.




On Fri, May 31, 2013 at 12:07 PM, Vijayaratha Vijayasingam
rat...@wso2.comwrote:

 Hi all;
 Im getting following jaggery build issue. Where should i take up for that
 particular rhino jar?It is missing in my local svn..

 [INFO]
 
 [ERROR] Failed to execute goal on project org.jaggeryjs.scriptengine:
 Could not resolve dependencies for project
 org.jaggeryjs:org.jaggeryjs.scripteng
 ine:bundle:0.9.0.ALPHA3-wso2v6: Could not find artifact
 rhino.wso2:js:jar:1.7.0.R4-wso2v1 in wso2-maven2-repository (
 http://dist.wso2.org/maven2/) -

 --
 -Ratha
 mobile: (+94)755906608

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


[Dev] [Jaggery] Content-Type of HTTP post is changed internally by Jaggery to ContentType: application/x-www-form-urlencoded; charset=UTF-8

2013-05-28 Thread Gayan Dhanushka
Hi,

Note $subject as we discovered yesterday. It is there in the latest
jaggery-0.9.0.ALPHA3-wso2v6 pack as well.

I'm sending a rest call to BAM using Jaggery and following are my optional
headers.

*{
Accept: application/json,
Content-Type: application/json,
Authorization: Basic YWRtaW46YWRtaW4=
}

*
In the BAM server log it says,

*No operation matching request path /datareceiver/1.0.0/streams is found,
Relative Path: /, HTTP Method: POST, ContentType:
application/x-www-form-urlencoded;charset=UTF-8, Accept: application/json*

I may proceed correcting this manually. What is the path for the .js file
which contains post method implementation?

Thanks.

-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] [Jaggery] Content-Type of HTTP post is changed internally by Jaggery to ContentType: application/x-www-form-urlencoded; charset=UTF-8

2013-05-28 Thread Gayan Dhanushka
Hi Nuwan,

I have two files bamUtil.js and bam.jag

bamUtil.js

*var createStream = function(createStreamDefnURL , streamDefn,
optionalHeaders){
var result = post(createStreamDefnURL, streamDefn, optionalHeaders);
 };

*
bam.jag

%
 var bamUtils = require(bamUtil.js);
var streamDefn = stringify( {
  name:stockquote.stream,
  version: 1.0.2,
  nickName: Stock Quote Information,
  description: Some Desc,
  tags:[foo, bar],
  metaData:[
   {
 name:ipAdd,
 type:STRING
   }
  ],
  payloadData:[
  {
name:symbol,
type:string
  },
  {
name:price,
type:double
  },
  {
name:volume,
type:int
  },
  {
name:max,
type:double
  },
  {
name:min,
type:double
  }
 ]
});

var events = stringify([
 {
   payloadData : [IBM, 26.0, 848, 43.33, 2.3] ,
   metaData : [123.233.0.1] ,
   timeStamp : 1312345432
 },
 {
  payloadData : [MSFT, 22.0, 233, 22.22, 4.3] ,
  metaData : [5.211.1.1]
 }
]);
var optionalHeaders = {
Accept: application/json,
Content-Type: application/json,
Authorization: Basic YWRtaW46YWRtaW4=};
   var createStreamDefnURL = '
https://localhost:9443/datareceiver/1.0.0/streams';
 var publishEventURL = '
https://localhost:9443/datareceiver/1.0.0/stream/stockquote.stream/1.0.2/';
var result = bamUtils.createStream(createStreamDefnURL,streamDefn,
optionalHeaders);
//var result1 = bamUtils.publishEvent(publishEventURL,events,
optionalHeaders);

   %

This is for the record Nuwan. Manu has fixed it thanks Manu and noted.



On Wed, May 29, 2013 at 10:33 AM, Nuwan Bandara nu...@wso2.com wrote:

 Can you share you jaggery code that does the HTTP call.

 Regards,
 /Nuwan


 On Wed, May 29, 2013 at 10:17 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi,

 Note $subject as we discovered yesterday. It is there in the latest
 jaggery-0.9.0.ALPHA3-wso2v6 pack as well.

 I'm sending a rest call to BAM using Jaggery and following are my
 optional headers.

 *{
 Accept: application/json,
 Content-Type: application/json,
 Authorization: Basic YWRtaW46YWRtaW4=
 }

 *
 In the BAM server log it says,

 *No operation matching request path /datareceiver/1.0.0/streams is
 found, Relative Path: /, HTTP Method: POST, ContentType:
 application/x-www-form-urlencoded;charset=UTF-8, Accept: application/json
 *

 I may proceed correcting this manually. What is the path for the .js file
 which contains post method implementation?

 Thanks.

 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327

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




 --
 *Thanks  Regards,

 Nuwan Bandara
 Technical Lead  Member, MC, Development Technologies
 WSO2 Inc. - lean . enterprise . middleware |  http://wso2.com
 blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763
 9629
 *
 http://www.nuwanbando.com/




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] [AppFactory] Delete a repository branch in AppFactory

2013-05-15 Thread Gayan Dhanushka
Hi all,


Completed implementing the git branch deletion functionality in the maven
scmManager API. Did a sample test run and it works.

Need to update the Appfactory RepositoryManagementService to consume the
newly written method and update the jaggery-apps to call the backend.


Thanks!


On Mon, May 13, 2013 at 11:57 AM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi Dimuthu,

 Apparently there is a new method call structure in the latest Jaggery
 version. I'll look into and use it while implementing deleting a branch.

 Thanks!


 On Mon, May 13, 2013 at 10:44 AM, Dimuthu Leelarathne 
 dimut...@wso2.comwrote:

 Hi Gayan,


 On Fri, May 10, 2013 at 9:26 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 Currently on the appfactory Repository UI you can only create a
 repository branch. A created branch cannot be edited or deleted. To create
 a repository in gitblit currently the maven scmManager [1] is used. But
 org.apache.maven.scm.manager.ScmManager doesn't provide a functionality to
 edit or delete a created. As per [2] it is convenient to provide a method
 only to delete a branch since it is more practical to delete a branch and
 create a new branch rather than editing an existing one. The following
 steps will be followed.

 1) Implement a new method to delete a branch in gitblit for
 org.apache.maven.scm.manager.ScmManager.


 +1


 2) Implement methods to call the method created in (1) from within the
 repository module of appfactory.
 3) Expose method written in (2) through the
 RepositoryManagementService  web service.


 +1


 4) Update the jaggery-apps to call the exposed service when the user
 clicks on the Delete Branch button which is a new button which will be
 added to the Repository UI.


 If Jaggery Alpha2 V5 is having the new method call structure lets use it.

 thanks,
 dimuthu




  [1] http://maven.apache.org/scm/index.html
 [2] https://wso2.org/jira/browse/APPFAC-406

 Thanks !


 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327

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




 --
 Dimuthu Leelarathne
 Architect  Chair of Solution Management Committee

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Danushka Fernando

2013-05-14 Thread Gayan Dhanushka
+1


On Tue, May 14, 2013 at 11:35 AM, Ramith Jayasinghe ram...@wso2.com wrote:

 Hi,
  Its my pleasure to welcome Danushka Fernando as a WSO2 Commiter.
  He made excellent contributions towards making the Appfactory stable and
 worked on improving the performance.

 Danushka, welcome aboard and keep up the good work.

 regards
 --
 Ramith Jayasinghe

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Danushka Fernando

2013-05-14 Thread Gayan Dhanushka
Great congratz


On Tue, May 14, 2013 at 11:41 AM, Gayan Dhanushka gay...@wso2.com wrote:

 +1


 On Tue, May 14, 2013 at 11:35 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Hi,
  Its my pleasure to welcome Danushka Fernando as a WSO2 Commiter.
  He made excellent contributions towards making the Appfactory stable and
 worked on improving the performance.

 Danushka, welcome aboard and keep up the good work.

 regards
 --
 Ramith Jayasinghe

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




 --

 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] [AppFactory] Delete a repository branch in AppFactory

2013-05-13 Thread Gayan Dhanushka
Hi Dimuthu,

Apparently there is a new method call structure in the latest Jaggery
version. I'll look into and use it while implementing deleting a branch.

Thanks!


On Mon, May 13, 2013 at 10:44 AM, Dimuthu Leelarathne dimut...@wso2.comwrote:

 Hi Gayan,


 On Fri, May 10, 2013 at 9:26 PM, Gayan Dhanushka gay...@wso2.com wrote:

 Hi all,

 Currently on the appfactory Repository UI you can only create a
 repository branch. A created branch cannot be edited or deleted. To create
 a repository in gitblit currently the maven scmManager [1] is used. But
 org.apache.maven.scm.manager.ScmManager doesn't provide a functionality to
 edit or delete a created. As per [2] it is convenient to provide a method
 only to delete a branch since it is more practical to delete a branch and
 create a new branch rather than editing an existing one. The following
 steps will be followed.

 1) Implement a new method to delete a branch in gitblit for
 org.apache.maven.scm.manager.ScmManager.


 +1


 2) Implement methods to call the method created in (1) from within the
 repository module of appfactory.
 3) Expose method written in (2) through the
 RepositoryManagementService  web service.


 +1


 4) Update the jaggery-apps to call the exposed service when the user
 clicks on the Delete Branch button which is a new button which will be
 added to the Repository UI.


 If Jaggery Alpha2 V5 is having the new method call structure lets use it.

 thanks,
 dimuthu




 [1] http://maven.apache.org/scm/index.html
 [2] https://wso2.org/jira/browse/APPFAC-406

 Thanks !


 Gayan Dhanushka
 Software Engineer
 WSO2 Inc.
 http://wso2.com

 Mobile : 0716662327

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




 --
 Dimuthu Leelarathne
 Architect  Chair of Solution Management Committee

 WSO2, Inc. (http://wso2.com)
 email: dimut...@wso2.com
 Mobile : 0773661935

 Lean . Enterprise . Middleware




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


[Dev] [AppFactory] Delete a repository branch in AppFactory

2013-05-10 Thread Gayan Dhanushka
Hi all,

Currently on the appfactory Repository UI you can only create a repository
branch. A created branch cannot be edited or deleted. To create a
repository in gitblit currently the maven scmManager [1] is used. But
org.apache.maven.scm.manager.ScmManager doesn't provide a functionality to
edit or delete a created. As per [2] it is convenient to provide a method
only to delete a branch since it is more practical to delete a branch and
create a new branch rather than editing an existing one. The following
steps will be followed.

1) Implement a new method to delete a branch in gitblit for
org.apache.maven.scm.manager.ScmManager.
2) Implement methods to call the method created in (1) from within the
repository module of appfactory.
3) Expose method written in (2) through the RepositoryManagementService
web service.
4) Update the jaggery-apps to call the exposed service when the user clicks
on the Delete Branch button which is a new button which will be added to
the Repository UI.

[1] http://maven.apache.org/scm/index.html
[2] https://wso2.org/jira/browse/APPFAC-406

Thanks !


Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] WSO2 Committers += Shamika Ariyawansa

2013-05-09 Thread Gayan Dhanushka
Congrat


On Thu, May 9, 2013 at 11:32 AM, Asanka Dissanayake asan...@wso2.comwrote:

 congratz shamika !!




 On Thu, May 9, 2013 at 11:09 AM, Manjula Rathnayake manju...@wso2.comwrote:

 Congratulations Shamika!


 On Thu, May 9, 2013 at 11:06 AM, Ashansa Perera asha...@wso2.com wrote:

 Congrats Shamika.. !


 On Thu, May 9, 2013 at 10:37 AM, Ramith Jayasinghe ram...@wso2.comwrote:

 Hi,
  Its my pleasure to welcome Shamika Ariyawansa as a WSO2 Commiter.
  Shamika has made excellent contributions in the areas of Appfactory
 and Wso2 Store. Notable contributions:
  1. Releasing the first milestone for Wso2 Store.
 2. Implementing the Jaggery feature for 'commenting' stream
 3. Implemented ETA calculation for Appfactory and submitted patches
 towards improving the Appfactory.

 Shamika, welcome aboard and keep up the good work.

 regards

 Ramith Jayasinghe


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




 --
 Thanks  Regards,

 Ashansa Perera
 Software Engineer
 WSO2, Inc

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




 --
 Manjula Rathnayaka
 Software Engineer
 WSO2, Inc.
 Mobile:+94 77 743 1987

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




 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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


Re: [Dev] [DEV][APPFACTORY] Problem with identifying the priority role (Application Owner)

2013-05-06 Thread Gayan Dhanushka
Hi Asanka,

I think the first option is better. Having a property like deletable is
easy to implement and it is safer than giving users direct access to
appfactory.xml .

+1 for having a property called DELETABLE.

Thanks



On Mon, May 6, 2013 at 8:20 PM, Asanka Dissanayake asan...@wso2.com wrote:

 Hi All,

 In App Factory application roles are defined in the appfactory.xml.
 According to the present situation there are following roles defined.
 -Application Owner
 -Developer
 -QA
 -DevOps

 Each role has different permissions. From these roles Application Owner is
 very important.
 Application owner *MUST* not be able to delete. (ATM if the application
 owner is deleted then the application becomes inaccessible ).

 To avoid deleting the appowner ,now delete button is hidden in the UI. to
 accomplish this task appOwner is hard coded and compared.  If user changed
 the role name of the app owner in the appfactory.xml, this does not work.

 to avoid this there may be following options.

 -declare a property called DELETABLE
 -or else we can give a UI to edit the content of the appfactory.xml and
 hide certain things we want such as app owner etc.. (If we provide this we
 should not allow user to open appfactory.xml directly)





 --

 *Asanka Dissanayake
 Software Engineer*
 *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
 *
 email: asan...@wso2.com ruch...@wso2.com,   blog:
 cyberwaadiya.blogspot.com, asankastechtalks.wordpress.com  mobile: +94 71
 8373821*

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




-- 

Gayan Dhanushka
Software Engineer
WSO2 Inc.
http://wso2.com

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