-
1. Re: Dynamic VDB
rareddy Feb 8, 2019 9:46 AM (in response to mahavird)You need to implement a custom metadata repository [1] to do the special DO_SECURITY call before actual metadata is read from the database. You can also extend the NativeMetadataRepository [2] that Teiid uses to read metadata from Database and add in necessary hooks there. Once you implement the class, you need to create a module out and install in the WildFly and then you need to configure the VDB to use this custom repository to fetch the metadata. See for more details here [3] & [4]
HTH
Ramesh..
[1] teiid/MetadataRepository.java at master · teiid/teiid · GitHub
[2] teiid/NativeMetadataRepository.java at master · teiid/teiid · GitHub
-
2. Re: Dynamic VDB
mahavird Feb 8, 2019 10:43 AM (in response to rareddy)Hi Ramesh Reddy,
Thanks for the reply.
We need to reload the metadata after calling the security function DO_SECURITY("SCHEMA_NAME").
The DO_SECURITY("SCHEMA_NAME") will be called inside the procedure in VDB.
Is there any way to reload the metadata after the DO_SECURITY is called from VDB ?
Thanks
Mahavir
-
3. Re: Dynamic VDB
rareddy Feb 8, 2019 12:00 PM (in response to mahavird)As I mentioned above you do that in the CustomMetadataRepository, not in VDB.
-
4. Re: Dynamic VDB
mahavird Feb 11, 2019 12:25 AM (in response to rareddy)Hi Ramesh Reddy,
When this CustomMetadataRepository hook will be called ?
Thanks,
Mahavir
-
5. Re: Dynamic VDB
mahavird Feb 11, 2019 4:05 AM (in response to mahavird)Hi Ramesh Reddy,
I have to refresh the metadata each time after calling the security function DO_SECURITY(...).
Is it possible to refresh multiple times the meta data in custom metadata repository?
Thanks & Regards,
Mahavir Dhanadevan
-
6. Re: Dynamic VDB
rareddy Feb 11, 2019 10:11 AM (in response to mahavird)A VDB can be loaded only at the time of deployment, that means metadata can be loaded only at the time of VDB deployment. If you need reload you need to redeploy the vdb.
Ramesh..