on 03-30-2016 8:47 AM
Hi all,
I am trying to setup a multitenant test enviroment. And followed the step described here: SAP HANA Cloud Platform
But it is not clear to me how to implement a dynamic datasource. I have to account a1 and b1. I subscribe b1 to application of a1 and then what? if i try to bind a new schema with the same datasource name i get an error. but the jndi lookup specifies the name. Any help is appreciated.
Regards Mathias
Hi Mathias,
if it is feasible for you to configure the data source binding once per application, then you don't have to go for this approach. Then it is sufficient to change the binding via the HANA cloud cockpit.
Before switching to a new binding you have to delete the old one.
Best regards,
Timo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Mathias,
Are you using persistence ? In eclipselink, you can put your multitenant to use different schema.
@Multitenant(TABLE_PER_TENANT)
@TenantTableDiscriminator(SCHEMA)
In the application we built, like Timo mentioned, we configured the binding on our HCP account to which all other accounts are subscribed to ; eclipselink will handle the tenant perfectly.
Regards
Greg
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.