Skip to Content

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

Define Datasource alias in NWA without restart

Hi,

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.

Best regards,

Kevin

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:

http://help.sap.com/saphelp_nwce10/helpdata/en/45/07d2eeea3e0485e10000000a155369/frameset.htm

http://help.sap.com/saphelp_nwce10/helpdata/en/45/c82cd460a42e96e10000000a155369/frameset.htm

I hope that helps!

Regards,

Yordan

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