• 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

CMP and mySQL

 
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 trying to deploy a simple CMP on Sun App Server 8, and I'm having a few problems with mapping the fields. DB is mySQL 4.0. It is a simple table/bean "room" having only 2 fields, id and description, both varchar/string.

I execute the following command to capture the schema:

capture-schema -username user -password pwd -dburl jdbc:mysql://localhost/ejb -driver com.mysql.jdbc.Driver -out room.dbschema -schemaname ejb -table room

The following is printed and the schema file is generated:
using dburl: jdbc:mysql://localhost/ejb
using username: user
using password: pwd
using driver: com.mysql.jdbc.Driver
using schemaname: ejb
using output file: room.dbschema
Capturing schema: ejb
Schema captured
Saving schema ...

However when I load the room.dbschema file in the deployment tool, in Create Database Mappings, no mappings are found.

Any help?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic