Wednesday, May 29, 2013

JNDI Resources in NetWeaver

Login to Netweaver Administrator

Create a database resource:
Go to Configuration Management > Infrastructure > Application Resources
 Create a JDBC resource for a database in Microsoft SQL Server


Check your resource is available in JNDI:

Go to Troubleshooting and JNDI Browser:



In your Spring application access the JNDI as:

<jee:jndi-lookup id="dataSource" jndi-name="<Object Name as shown in the picture>"  resource-ref="true" expected-type="javax.sql.DataSource" />

Export as war convert to sda, using \usr\sap\MII\J01\j2ee\deployment\scripts\make_SDA.bat command.

Deploy java application in Telnet.

Access your application: http://<nwa ip>:<nwa port>/<sda name>

Go to nwa > troubleshooting > log viewer for any errors/warnings.
Logs are available on file system at: usr\sap\MII\J01\j2ee\cluster\server0\log


No comments:

Post a Comment