<?xml version="1.0" encoding="UTF-8"?>
<!--
	~ Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
	~
	~ Licensed under the Apache License, Version 2.0 (the "License");
	~ you may not use this file except in compliance with the License.
	~ You may obtain a copy of the License at
	~
	~ http://www.apache.org/licenses/LICENSE-2.0
	~
	~ Unless required by applicable law or agreed to in writing, software
	~ distributed under the License is distributed on an "AS IS" BASIS,
	~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	~ See the License for the specific language governing permissions and
	~ limitations under the License.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head></head>
	<body>
		<p>
			[
			<a
				href="http://dist.wso2.org/products/wsas/java/@wso2wsas_version@">
				Download
			</a>
			] | [
			<a href="index_docs.html">Documentation Home</a>
			] | [
			<a href="release_notes.html">Release Note</a>
			]
		</p>


       <h1>How to use JNDI data source to create Data Service?</h1>

		<p>
			<strong>
				You can find grammar for Data Service configuration file
				in the following URL.
				<a
					href="http://wso2.org/wiki/display/wsf/Data+Services+and+Resources">
					Data Services Specification
				</a>
			</strong>
		</p>



		<p>
			Your feedback on WSO2 WSAS is most appreciated. Please send
			them to our
			<a href="mail-lists.html">mailing lists</a>
			.
		</p>

		<p>
			<strong>Before we begin :</strong>
			In this example, we have created a mysql data source inside
			Jboss-4.0.4 and bound it to the JNDI name 'ProjectDS'. Step 1
			shows mysql-ds.xml file we used. 
			Similarly you can use any other server(eg. Tomcat) to create data source and bind it to a jndi
			name. Make sure server selected allows you to expose a JNDI
			data source outside server's JVM.
		</p>


		<p>
			<strong>Step 1 :</strong>
			<br />
			<br />
			<img src="images/data_guide/jndi/screen-1.jpg" alt="Step 1" />
		</p>

		<p>
			<strong>Step 2 :</strong>
			You need to copy JBOSS_HOME/client/jbossall-client.jar to
			WSAS_HOME/lib
		</p>

		<p>
			<strong>Step 3 :</strong>
			<br />
			<br />
			<img src="images/data_guide/jndi/screen-2.jpg" alt="Step 3" />
		</p>

		<p>
			<strong>Step 4 :</strong>
			<br />
			<br />
			<img src="images/data_guide/jndi/screen-3.jpg" alt="Step 4" />
		</p>


	</body>
</html>
