on 07-09-2007 9:14 AM
Hello, I'm tryng to write an application that must be connected to a database.
-In my EAR Project I declared a dataSource Alias (in <i>data-source-aliases.xml</i>).
-In my EJB Project in <i>ejb-jar.xml</i> (and in <i>ejb-j2ee-engine.xml</i> defining the JNDI name) I passed the dataSource alias (in reaource-ref folder).
But when I try to connect to the DB it doesn't work.
In my Java class I'm using:
<b><i>ctx = new InitialContext();
ds = (DataSource)ctx.lookup("jdbc/<DataSourceAlias>");</i></b>
Is this the right procedure or I'm missing something??
Another question: this application is a WebService, if I need to test can I use the WS Navigator's test in my Enterprice Portal??
Thank You in Advance
<b>Hi Alessandro
Refer this URL
Database Connection Context
http://help.sap.com/saphelp_nw04/helpdata/en/70/a19cc472e72c4481172909938578fc/frameset.htm
Regards
Chandran</b>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is tutorial for creating and using EJBs in Web Dynpro:
For your last question: You can use WS Navigator's test.
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.