cancel
Showing results for 
Search instead for 
Did you mean: 

Define Datasource alias in NWA without restart

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Yordan,

thank you for the help!

The testalias refers to a JDBC Custom Data Source. I created it using NWA.

Creating the alias within the application solved to problem! The deployment succeeds without warning.

Best Regards,

Kevin

Answers (0)