Author Message
AlexBuckhurst
Joined: Feb 11, 2014
Messages: 23
Offline
Hi,

is it possible to update the datasource of a database node (dbop) at run time?

i am aware that it possible to update the web.xml file with the new end point but unfortuantly that doesnt work because its static.

i am wanting to choose the database source based on a variable like incoming dnis. is this possible?

Alex
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
You would need to have all the data sources pre-defined. Then in the constructor of the dbop java class, it's the matter of changing the data source name in the setDataSourceName method. You need to customize the code right after the "//}}END:CLASS:CONSTRUCTOR" marker to avoid the code getting overwritten by code generation.
Go to:   
Mobile view