• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Porting cmp from jboss 3.2.1 to 3.2.3 for postgresql

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using CMP in jboss for my application with Postgresql. In the jbosscmp-jdbc.xml file, I have:
<entity>
<ejb-name>Some ejb</ejb-name>
<table-name>some table</table-name>

<cmp-field>
<field-name>some field</field-name>
<column-name>some column</column-name>

</cmp-field>

<unknown-pk>
<unknown-pk-class>java.lang.Integer</unknown-pk-class>
<auto-increment/>
</unknown-pk>
<entity-command name="postgresql-get-generated-keys" class="org.jboss.ejb.plugins.cmp.jdbc.postgres.JDBCPostgresCreateCommand">
</entity-command>
<!-- jboss 3.2 features -->
<!-- optimistic locking does not express the exclusions needed -->
</entity>

This works for jboss 3.2.1, but seems to have changed for 3.2.3 as I get a class not found exception for the JDBCPostgresCreateCommand. Something seems to have changed, but I don't have the documentation as to how to fix it.

Can anyone help?

Thanks,
G
reply
    Bookmark Topic Watch Topic
  • New Topic