Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > how to connect Mysql with the EJB?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th March 12:41
cheng_lucia
External User
 
Posts: 1
Default how to connect Mysql with the EJB?



Hello,

I have one problem while developing an EJB application with Eclipse
and JBoss Server. How can I access the Database in Mysql? Where should
I give the database name and so an?

Has anyone some example code?

best regards

Lucia
  Reply With Quote


  sponsored links


2 17th March 12:41
marek lange
External User
 
Posts: 1
Default how to connect Mysql with the EJB?



Using Entity Beans, just put a mysql-ds.xml in your deploy folder.
Configure a JNDI name and put it into your jbosscmp-jdbc.xml. That's
all. You can find examples in $JBOSS_HOME/docs/examples/jca. There is no
need to code sth. for that, database configuration is done declaratively
to avoid db dependencies.

-marek
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666