• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Database changes vanish after jboss closed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

first of all, apologies for the vagueness and potential dumbness of this question! I?ve got oracle xe set up with jboss 4.0.5 and i'm using ejb3 annotations to get everything chatting

in my database, i've a table that i'm trying to map to, the first problem is that jboss seems to go and create a neew table instead of work with my current one, iit just creates onee, with the same name but capitalised

But the more concerning problem is that as soon as i shut down jboss, all my entries vanish, new table included, and i'd like the changes to be permanent, i'm using the .flush method, but probably rather unintelligibly as it seems to make no difference. i've read about extend transaction contexts, but i'm not sure if that would solve my problem

here are my files and the most relevant seeming section of my server log



&



&





persistence.xml:



my oracle-ds file:




and server log


as you cann see when i shutdown the server, there is a bit of a hoopla in the log about my beans too






thanks in advance for any help and for reading thus far!
 
Have you no shame? Have you no decency? Have you no tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic