Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with cmp at jboss 3.x

 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I deploy a entity bean on jboss sucessfully.
I can create a record through ejbcreate method and find this one through ejbfind method.
But I cann't see any record at database!
Help!!!
 
Volodymyr Shram
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stub Wang:
I deploy a entity bean on jboss sucessfully.
I can create a record through ejbcreate method and find this one through ejbfind method.
But I cann't see any record at database!
Help!!!

ok, please describe in details your problem. You can find your record via finder. So after that you may get any field of your "record". You said "But I cann't see any record at database!". What does that means? Describe in details please and we'll find the solving I think
Regards.
 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.
[env]
jboss3.x + mysql
[problem]
I create a record by ejb create method.It's ok.
I get the record by ejb finder method.It's ok.
I execute select * from some-table through dba
tools,there is none record!!!
 
HanMing Low
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm not exactly sure of the details.
But it is very likely that the record has gone into HyperSonic, JBoss's default database.
A quick check on the server.log should let you know which DataSource it uses.
If it use hsqldbDS, then, yup yup, it's the problem.
Otherwise, , then sorry I'm not sure.
Cheers.

Han Ming
 
Sam Wang
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic