geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Garth Keesler <>
Subject Re: OpenEJB DBDictionary w/postgres null value
Date Sun, 30 Dec 2007 14:39:23 GMT
Garth Keesler wrote:
> I think that this comes down to the right way to associate a 
> persistence context with a gmo dbpool database (other than Derby). 
> It's probably very simple but I've not found the right combo to make 
> it work. Still trying...
> Pointers welcome.
> Thx,
> Garth
> .
Sorry to keep replying to myself...

Here are the two files in the Bank app that I think are causing the probs.

First is the BankPool.xml file and, in particular, I think the 
<resourceadapter> section has a problem with the <name>. I've tried a 
variety of different names but am not sure if it should be the same as 
the dbpool name or not.

<?xml version="1.0" encoding="UTF-8"?>
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
<connector xmlns="">




Second is the persistence.xml file. I'm not sure what the 
<jta-data-source> name should be. I've tried using "OES", 
"console.dbpool/OES", and several others but none seem to work. The 
<non-jta-data-source> has been commented out to simplify.

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=""
xmlns:xsi="" version="1.0"
<persistence-unit name="BankPU">
<description>Entity Beans for Bank</description>
<property name="openjpa.jdbc.SynchronizeMappings" value="false" />
<property name="openjpa.jdbc.DBDictionary" value="postgres"/>

I've googled for suggestions but have not found anything of value so far.


View raw message