• 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

jaws.xml configuration not loading for cmp entity beans

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm upgrading an application from jboss 3.2.5 to jboss 4.2. One of the problems I'm having is that the cmp enitity beans are not being loaded from the tables as defined in META-INF/jaws.xml file within the ejb.jar that is deployed in the ear file. This was working in jboss 3.2.5. I can see from the server.log file that the bean is being loaded with a sql statement that selects from fields and table name that are the same as the cmp-feild names and ejb name - instead of the column-names and table-name defined in the jaws.xml. Inside jaws.xml, I do see that the type-mapping value is "MS SQLSERVER" eventhough the application uses oracle; however, this worked with jboss 3.2.5. I'm not sure how important this type-mapping element is and I don't know what to change it to anyway. Here's is an exceprt from the jaws.xml:


 
Donald Savory
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to Redhat, jaws.xml is not supported. So I used jbosscmp-jdbc.xml instead. Everything is working fine now. There is much, much work migrating the information in jaws.xml to jbosscmp-jdbc.xml.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic