!--a11y-->
Deploying a DataSource Alias with an
Application 
Use this procedure to add a DataSource alias to your J2EE application, and to deploy it on the J2EE Engine using the SAP NetWeaver Developer Studio.
You must have:
1. In the J2EE Explorer view open the context menu of the Enterprise Application Project and choose New ® META-INF/data-source-aliases.xml.
2.
Enter a name for
the alias. You can use uppercase letters, digits, slash and underscore
only. Choose Finish. The system adds a
data-source-aliases.xml
to the project. It defines an alias for the default
DataSource.
3. In the context menu of the Enterprise Application Project, choose Build EAR File. The system informs you if the build process has been successful.
4. Choose the generated EAR file and open its context menu. Choose Deploy to J2EE engine to deploy the application on the SAP J2EE Engine using the SDM. The system displays a message to inform you that the deployment process has finished successfully.
You can now access the DataSource using the alias that you have specified. You can use the same alias to look up the default DataSource from other applications as well.

If you remove the application with the alias from the SAP J2EE Engine, the alias is destroyed and cannot be used.
