Re: [Dev] The correct way to switch the Tenant in a thread pool?

2017-02-10 Thread wenxing zheng
Hi Experts, please kindly advice as it really blocks our release. Thanks again, Wenxing On Fri, Feb 10, 2017 at 1:11 PM, wenxing zheng wrote: > Appreciated for any advice as I need to find the way a.s.a.p so that we > don't block the release. > > Kind Regards, Wenxing > &g

Re: [Dev] The correct way to switch the Tenant in a thread pool?

2017-02-09 Thread wenxing zheng
Appreciated for any advice as I need to find the way a.s.a.p so that we don't block the release. Kind Regards, Wenxing On Fri, Feb 10, 2017 at 12:05 PM, wenxing zheng wrote: > Dear all, > > I have introduced the Quartz Scheduler into our application based on AS > 5.3.0.

[Dev] The correct way to switch the Tenant in a thread pool?

2017-02-09 Thread wenxing zheng
Dear all, I have introduced the Quartz Scheduler into our application based on AS 5.3.0. Now we met with a situation like the following: - Quartz Scheduler will start up a Thread pool to run the Job being scheduled - Tenant user may schedule its own job with JobContext, like: TenantID,

[Dev] 400 Bad Request on AS 5.3.0

2017-02-08 Thread wenxing zheng
Dear all, I got a 400 Response immediately from AS 5.3.0 while trying to login the user. The issue happened occasionally. From the Debug log, I didn't see the request coming into the org.apache.cxf.transport.servlet.ServletController, as there was not any log something like: *[2017-02-09 11:00:13,

Re: [Dev] Polymorphic in the JAX-RS Service Interface in JSON

2017-01-12 Thread wenxing zheng
return new Dog();* * }* * else{* * return new Cat();* * }* *}* By the way, I am working on AS 5.3.0. Appreciated for your advice. Kind Regards, Wenxing On Fri, Jan 13, 2017 at 9:35 AM, wenxing zheng wrote: > Dear all, > > I have an interface to create a object, like the followings. My

[Dev] Polymorphic in the JAX-RS Service Interface in JSON

2017-01-12 Thread wenxing zheng
Dear all, I have an interface to create a object, like the followings. My question is: *how to annotate the Animal and Dog/Cat to make sure the input "animal" can be the instance of Dog/Cat after de-serialization?* My expectation is that the service createAnimal can be used for all the sub-classe

Re: [Dev] About the Role & Permission on the AS 5.3.0

2017-01-06 Thread wenxing zheng
/tests-integration/tests/src/test/ > java/org/wso2/appserver/integration/tests/usermgt/ > UserManagementWithAdminUserTestCase.java#L165 > > Thanks > Thusitha > > > On Fri, Jan 6, 2017 at 1:54 PM, wenxing zheng > wrote: > >> Dear all, >> >> With AS 5.3.0, we are able to create multiple tenant

[Dev] About the Role & Permission on the AS 5.3.0

2017-01-06 Thread wenxing zheng
Dear all, With AS 5.3.0, we are able to create multiple tenants, and per tenant, we can create its own users with different roles. Regarding the Role definition in the DB, we have several kinds of roles, including: 1. UM_ROLE 2. UM_USER_ROLE 3. UM_SYSTEM_ROLE 4. UM_SYSTEM_USER_ROLE 5. UM_HYBRID_R

Re: [Dev] Any way to know the life-cycle of a tenant on AS?

2016-12-05 Thread wenxing zheng
ce.core/src/main/java/org/wso2/ > carbon/ndatasource/core/DataSourceAxis2ConfigurationContextObserver.java > > > On Mon, Dec 5, 2016 at 1:41 PM, wenxing zheng > wrote: > >> Thanks to Dilan. >> >> One example is to load/unload some special data of a specific tenant >

Re: [Dev] Any way to know the life-cycle of a tenant on AS?

2016-12-05 Thread wenxing zheng
*Dilan U. Ariyaratne* > Senior Software Engineer > WSO2 Inc. <http://wso2.com/> > Mobile: +94766405580 <%2B94766405580> > lean . enterprise . middleware > > > On Mon, Dec 5, 2016 at 11:48 AM, wenxing zheng > wrote: > >> Dear all, >> >> I need t

[Dev] Any way to know the life-cycle of a tenant on AS?

2016-12-04 Thread wenxing zheng
Dear all, I need to do some customization on following AS tenant states: 1. loaded 2. unloaded Beside the one mentioned in [1], any other way? [1]: http://wso2.markmail.org/search/?q=list%3Aorg.wso2.dev+tenant+loaded+event#query:list%3Aorg.wso2.dev%20tenant%20loaded%2 0event+page:9+mid:mla6cls7g

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-12-02 Thread wenxing zheng
. > > Thanks, > Manuri > > On Fri, Dec 2, 2016 at 8:47 AM, wenxing zheng > wrote: > >> I fixed the issue with a workaround by introducing a >> ServletContextListener in order to first create my singleton object: >> MasterDataSource.java -> the object wil

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-12-01 Thread wenxing zheng
at 6:59 PM, wenxing zheng wrote: > Please kindly advice how to fix this issue as it blocked our work. > > Note: we are working on AS 5.3.0 and it's a WEB application. > > Thank you very much > Regards, Wenxing > > On Thu, Dec 1, 2016 at 4:10 PM, wenxing zheng >

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-12-01 Thread wenxing zheng
Please kindly advice how to fix this issue as it blocked our work. Note: we are working on AS 5.3.0 and it's a WEB application. Thank you very much Regards, Wenxing On Thu, Dec 1, 2016 at 4:10 PM, wenxing zheng wrote: > Hello all, > > How to make sure the ConfigurationContextSer

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-12-01 Thread wenxing zheng
Hello all, How to make sure the ConfigurationContextService is Active whenever I need to access to the DataSource? Is there any way to make it? Thanks, Wenxing On Wed, Nov 30, 2016 at 3:11 PM, wenxing zheng wrote: > Hi Maduranga, > > In the wso2as-5.3.0\repository\conf\datasourc

Re: [Dev] Any risk to upgrade the Carbon Core to 4.4.10 on AS 5.3.0

2016-11-30 Thread wenxing zheng
Appreciated for anyone can confirm whether this would be an issue or not. If it's an issue, please further advice how to do the upgrade in more detail. Thanks again, Wenxing On Wed, Nov 30, 2016 at 12:32 PM, Farasath Ahamed wrote: > Since these are patch versions will there be a problem in simp

Re: [Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-11-29 Thread wenxing zheng
text ctx = new InitialContext(); >> dataSource = (DataSource) ctx.lookup(dataSourceName); >> >> >> Thanks! >> >> Rajith >> >> >> On Wed, Nov 30, 2016 at 7:22 AM, wenxing zheng >> wrote: >> >>> Dear all, >>> >>>

Re: [Dev] Any risk to upgrade the Carbon Core to 4.4.10 on AS 5.3.0

2016-11-29 Thread wenxing zheng
Thanks to Rajith. The problem is how to tell the versions of all the dependent components? Need to check all the release notes of the dependent components and choose the one with the same Core version? -- Original -- *From: * "Rajith Roshan";; *Send time:* Tuesday,

[Dev] javax.naming.NameNotFoundException Name [jdbc/WSO2CarbonDB] is not bound in this Context

2016-11-29 Thread wenxing zheng
Dear all, I met with an issue in getting the JNDI datasource with the callstack below. Appreciated for any hint on this problem: AS: 5.3.0 javax.naming.NameNotFoundException: Name [jdbc/WSO2CarbonDB] is not bound in this Context. Unable to find [jdbc]. at org.apache.naming.NamingContext.l