[HELP] Netbeans EJB with 2 Databases problem
3 Message(s) by 2 Author(s) originally posted in java beans
| From: julien |
Date: Thursday, May 25, 2006
|
Hi,
I'm a french student and I have an
EJB Project.
I've a little problem.
I've two EJB entity linked to 2 postgresql
database .
I explain my problem. In the
file sun-ejb-jar.xml, you must specify the
JNDI name (CMP resource). But I've 2 resource name :
"etud_einstrumentation" and "etud_journal" for my 2 EJB. So I can just
specify one. Theferore, when I deploy my EJB, I can access to only one
(only the ejb specified in JNDI name works).
If I specify "etud_einstrumentation" in the field, the EJB linked to
the database etud_einstrumentation works and the other say :
NestedException: org.postgresql.util.PSQLException: ERROR: relation
"etud_journal" doesn't exist
If I specify "etud_journal" in the field, the EJB linked to the
database etud_journalworks and the other say :
NestedException: org.postgresql.util.PSQLException: ERROR: relation
"etud_einstrumentation " doesn't exist
You've an idea to specify the two JNDI resource ?
Tks
| From: Frank Langelage |
Date: Thursday, May 25, 2006
|
wrote in message:
Hi,
I'm a french student and I have an EJB Project.
I've a little problem.
I've two EJB entity linked to 2 postgresql database.
I explain my problem. In the file sun-ejb-jar.xml, you must specify the
JNDI name (CMP resource). But I've 2 resource name :
"etud_einstrumentation" and "etud_journal" for my 2 EJB. So I can just
specify one. Theferore, when I deploy my EJB, I can access to only one
(only the ejb specified in JNDI name works).
You will have to build two ejb.jar file, one for database one with the
entity accessing this database and one for database two with the other
entity.
Then you put both together in one ear file and deploy this.
| From: julien |
Date: Thursday, May 25, 2006
|
Ok, I think I have understand the problem now.
Thanks, I will create a second EJB project for the second database and
add the 2 project to an EAR.
Regards
Next Message: webservices
Blogs related to [HELP] Netbeans EJB with 2 Databases problem
JavaONE Monday 27th, June 2005
The information age implies there is a vast
database in the sky that we as people
... It is integrated with
NetBeans IDE, support
Java System ESB and
... There will be geatly simplified
EJB deployment and together a new persistence
EJB.
...
The Javacast: Bruce Tate & Beyond Java
Although we expected to cover the
problems with
EJB 2.1 and how Spring & Hibernate
... Now, I am checking out AJAX,
NetBeans?, Javapedia, Hibernate and Spring.
... based
java applications in general are
database-vendor independent.
...
My CV
Technical QualificationSUN Certified
Java Programmer(SCJP)
... For this data product contains 2 Leg information, So if any
problem registered for
... Using
EJB we are securing the transactions.Technologies used on this project include
...
NetBeans 4.1 code freeze
One click install, and you can create web applications,
EJB Modules or J2EE
... create web services, consume web services, use
databases, call other EJBs,
... Need some
help? Here it is, in the embedded
Java BluePrints Solutions Catalog
...
Curriculum Vitae of Lam Tran Tuan
Creating presentation and demo application to
help Java team apply these technologies.
... Websphere Studio Application Developer 5, Eclipse,
EJB, XML.
... Databases: Microsoft SQL Server 7/2000, Oracle 8.16/8.17, IBM Lotus Notes 5.
...
Test-Driven Development on Legacy Code
I thought my unit tests would break if there was a
problem created by my changes.".
... is to promote loose coupling between services such as
EJB session beans,
... IDE (Integrated Development Environments) such as Eclipse or
NetBeans.
...