Hi,
I want to use SQLJ in a JSP Dynpro Portal Component, and have followed the example given in "Getting started with relational persistence". The problem is that the document does not explain about creating a data source (which is what I assume I need to create the context with java:comp/env/[datasource alias]).
When I try to create a datasource alias in NWDS, it looks for an Enterprise Application project in which to create it, but my project is obviously not applicable.
Please help.
Thanks,
Martin
P.S. I see in the online help that you can add a data-source-aliases.xml file to your META-INF folder (is this applicable to EP projects?). Also, in the data-source-aliases.xml file, you still need to add the name of the datasource - so what is the name of the Default datasource?
Hi Martin,
> you can add a data-source-aliases.xml file to your
> META-INF folder
> so what is the name of the Default datasource?
See http://help.sap.com/saphelp_nw04/helpdata/en/c3/4f7770b21b9f459cb13424296726b1/frameset.htm - you can generically use a variable.
> is this applicable to EP projects?
I won't expect this (as a portal project isn't a J2EE application itself but part of another).
Anyhow, the datasources (and with them their alias within the J2EE engine) are managed via VisualAdmin, see http://help.sap.com/saphelp_nw04/helpdata/en/11/4963a6cf52ad429b3b3b65e003f2d1/frameset.htm
Hope it helps
Detlev
PS: Please consider to reward points if answers are helpful. Thanks in advance!
Add a comment