File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Binding of Entity Bean and database

 
Himal Chuli
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic