cancel
Showing results for 
Search instead for 
Did you mean: 

Datasource alias

Former Member
0 Kudos

Hi,

I was going through some matter on creating a data dictionary project with a corresponding web module project at:

http://help.sap.com/saphelp_nw04/helpdata/en/6c/c8bbdc13a8435fa4e0d7ccd97bb1ea/frameset.htm

But Im stuck here with 2 doubts:

When I created New -> Persistence, it created a java file for me with

public class Ctx { ....

. Should I overwrite it with

#sql public context Ctx with (dataSource = "java:comp/env/TMP_PERSISTENCE_EXAMPLE");

Secondly, if I have to use the default Datasource alias, I have to create an xml file: "New -> META-INF/data-source-aliases.xml". I have created a dictionary project for the tables and a web module proj. for the classes and the jsp. How do I go about creating the data source alias. I d not get the option for doing so as mentioned above.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Àny help on this one please?

Thanks in advance

Former Member
0 Kudos

Hi,

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/fe/9e362f3d954e8e8555007d8030df63/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/fe/9e362f3d954e8e8555007d8030df63/content.htm</a>

try to use this for creating datasource aliases

Best Regards,

Violeta Georgieva