Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Database changes vanish after jboss closed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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!
 
I want my playground back. Here, I'll give you this tiny ad for it:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic