problem with changing the DB through an ejb

2007-07-16 Thread Viet Hung Nguyen
Hi Guys, I have an application that fetches data and is supposed to add records to some tables. Data retrieval is okay, but when I try to add information to the DB, I get the following stack trace. [INFO] 12:26:06,828 WARN [GeronimoConnectionEventListener] connectionErrorOccurred called

Re: DataSource, JNDI and EJB module ...

2007-07-16 Thread Viet Hung Nguyen
DevIn wrote: Hi there, I actually work on a EJB3 module which must access à Connection Pool on a Geronimo 2 server. I've successfully created the data source (BigDB) in the geronimo console but my EJB Deployment is unsucessfull with the folowing error : 19:53:39,207 ERROR

Re: how to access dbpool in EAR application

2007-07-06 Thread Viet Hung Nguyen
Xh wrote: Hi All, I can successfully connect to my remote bean, retrieve some results etc. But in real situation I need to access a database. In geronimo-application.xml I have: sys:dependencies sys:dependency sys:groupIdconsole.dbpool/sys:groupId

how do I deploy a security realm along with an application?

2007-06-27 Thread Viet Hung Nguyen
I am trying to deploy a security realm plan along with an application, so that I do not have to separately deploy the plan and application. I have following in my geronimo-application.xml ?xml version=1.0 encoding=UTF-8? application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.2;

Re: ejb 3.0--connecting to a DB

2007-06-20 Thread Viet Hung Nguyen
Viet Hung Nguyen wrote: I am deploying my db pool through the admin console. I am using the tranql-connector-1.3.rar found under geronimo-jetty6-jee5-2.0-SNAPSHOT\repository\org\tranql\tranql-connector-ra\1.3. I am still encountering these two problems: 1) The EJB seems to be talking

ejb 3.0--connecting to a DB

2007-06-19 Thread Viet Hung Nguyen
I am unable to get a handle on a EntityManagerFactory. I have the following configuration using Derby as the DB on Geronimo 2.0: --*persistence.xml *which is in the JAR file under META-INF-- ?xml version=1.0 encoding=UTF-8? persistence xmlns=http://java.sun.com/xml/ns/persistence;

Re: ejb 3.0--connecting to a DB

2007-06-19 Thread Viet Hung Nguyen
Thanks David, I resolved the PersistenceUnit problem from the hints that you gave me. However, once all of that was resolved I am having problems connecting to the DB I have the following: --BankPool.xml-- connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.1;

MDB trouble with references

2007-06-13 Thread Viet Hung Nguyen
I am trying to get a simple MDB to work using annotations. However, when I deploy it into Geronimo 2.0, I get the following error. This is with the ConnectionFactory and Queue set up in Geronimo already: Error: Unable to distribute order-ear-2.0-SNAPSHOT.ear: Unable to resolve resource