Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 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|] 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.

Best regards,


Former Member
Former Member replied

Hi Kevin,

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!



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question