This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud and have Kyle Brown, Bobby Woolf and Joseph Yodor on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic