• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Binding of Entity Bean and database

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic