spring-attic / spring-tenancy

Spring Tenancy
Apache License 2.0
46 stars 23 forks source link

[question] this works with @Async? #4

Open plentz opened 11 years ago

plentz commented 11 years ago

I've looked at the code and didn't found anything that made me believe it will work with @Async methods. Am I right?

ghost commented 11 years ago

@plentz the spring-tennancy framework does not currently have anything specific related to @Async. I haven't looked at it closely, but it could just be a matter of implementing another TenancyContextHolderStrategy.

rpraes commented 10 years ago

@plentz I´m using spring-tenancy in my project . Did you solve this issue with @Async methods or have any workaround?

plentz commented 10 years ago

@rpraes not really. There's other points of this structure that doesn't fully cover a multi-tenancy application, so I really recommend you to test it before calling your app multi-tenant - you could have some unpleasant surprises.

rpraes commented 10 years ago

@plentz Yeah, i´m testing this architecture. There are some details that could be a problem in large applications, for example, changing only the schema you will not be able to use database cluster, but i think for small applications it can be used as starting.