hi folks,
i am trying hard to get access to database from
EJB in WSAD. here is what i am doing,
I have a Oracle Database named "marsh"
create an EntityBean and map it to RDB
Target Database: Oracle8i
Database Name: marsh
Also,
configured DataSource in server perspective as follows;
in DataSource dialog:
name=HelloWorldDataSource
JNDI Name=jdbc/OracleDataSource
(am not sure if how this JNDI gets connected to my Datasource 'marsh')
then i tried Binding this DataSource with EntityBean(CMP) as follows:
opening the ejb-jar.xml in EJB Extension Editor and selecting Binding Tab
JNDI Name=hello/HelloWorldEntity
DataSource JNDI=jdbc/DataSource
and saved them.
i tried Run On Server by right clicking my HelloWorldSession Bean which actually access EntityBean. it says "Publishing failed" and
"The data source "jdbc/OracleDataSource" in the "helloworldproject" jar is not defined in the server configuration. Define the data source in the configuration, and
"The data source "jdbc/OracleDataSource" in the "helloworldEntity" jar is not defined in the server configuration. Define the data source in the configuration,
i don't know what is this mean? what wrong am i doing? please help me.
thank.