Define Datasource alias in NWA without restart
I'm trying to define the datasource alias testalias in NWA and using it in an application which is developed in NWDS. Creating the alias and configure it for the application is no problem. However if I deploy the application there is following warning:
Application sap.com/XYZ has a weak reference to resource testalias with type javax.sql.DataSource but the resource is not available and the application may not work correctly.
This only happens when a new datasource alias is created. If I restart the server the warning is gone. The [CE-Library|http://help.sap.com/saphelp_nwce10/helpdata/en/51/735d4217139041e10000000a1550b0/frameset.htm] says that a restart is only necessary if the Defaul Data Source is changed.
So is there a way to activate the alias without restarting because in our productive system we cannot always perform a restart when a alias is created.
What DataSource does your testalias refer to?
- If it is a custom DataSource, you must have created this custom DataSource also.
- If it is the default DataSource, you shouldn't have this problem in general...
In either case, you can try deploying your DataSource and/or DataSource alias together with your application:
I hope that helps!