Hi Sahil,
U have a standard way of writing the ejbs which can be deployed on any of the application servers.
In "weblogic-ejb-jar.xml" u will be specifying the JNDI Name of the home interfaces..like:
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>ABCEJB</ejb-name>
<jndi-name>MyJndiName</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
and in the "weblogic-cmp-rdbms-jar.xml" will be specifying the datasource name as:
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>ABCEJB</ejb-name>
<data-source-name>MyDataSource</data-source-name>
</weblogic-rdbms-bean>
For DataSource creating u shoud have to first of all create the connection pool where u will specifying the following parameters:
Name of the Connection Pool: "MyConnPool"
Driver class : "sun.jdbc.odbc.JdbcOdbcDriver"
URL : "jdbc
dbc
SNNAME"
Now since the connection pool is ready with u, you can create the datasource by providing the following parameters:
Name of the Data Source : MyDataSource
Connection Pool Name : MyConnPool
JNDI-Name : "MyJndiName"
hope above will work..
sameer