Hey!

I am using Jboss (CVS build) and PostgreSQL for my entity bean
experimentation.  As the discussion on this list has oh so amply
described it, I should not need to create a jboss.xml.  I create an
ejb-jar.xml file with the appropriate cmp fields as well as a resource
ref:

     <resource-ref>
       <res-ref-name>Postgresql</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <res-auth>Container</res-auth>
     </resource-ref>

I also create a jaws.xml file that sets the mapping of the bean to
PostgreSQL type-mappings, etc.  I understand that soon, this too will
not be needed for deployment.

When I deploy the beans, they always end up using the default datasource
(InstantDB) despite the resource ref mentioned in ejb-jar.xml. (Yes, I
have PostgreSQL setup as a datasource in jboss.conf, etc., bound to
Postgresql jndi name).  Why?  Is this the correct behavior?

I can only get the bean to use postgres if I create a jboss.xml file
that contains the same info - the bean is an entity bean, Default CMP
EntityBean conf, resource-ref is Postgresql.  Seems like overkill to
have to do this twice?  Or am I confusing the meaning of the two
resource-refs?

-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to