El Noobie [
https://community.jboss.org/people/elnoobie] created the discussion
"JBoss, Maven, DataNucleus - next steps"
To view the discussion, visit:
https://community.jboss.org/message/831281#831281
--------------------------------------------------------------
All,
I am stuck on the next steps for JBoss AS7, Maven & DataNucleus.
I posted
https://community.jboss.org/message/831214#831214
https://community.jboss.org/message/831214 and got the basics working.
The database is fully functional and I can do things using old-school
PreparedStatement/ResultSet setups.
However, I am stuck on the next steps.
For my *playtime-ear* module I created:
* src* main* resources* META-INF* jboss-deployment-structure.xml
* ra.xml
* jdopersistence.xml
I build and deploy with no issues but am having issues with getting the suggested
following code:
PersistenceManagerFactory pmf = (PersistenceManagerFactory)
context.lookup("java:/testMeDS");
PersistenceManager pm = pmf.getPersistenceManager();
There's a few questions I have now:
1. What is the proper dependency I should have in my POM for this? 1. Generic JDO (which
seems preferable) or should I go with DataNucleus specifically?
2. Currently using:
http://www.mvnrepository.com/artifact/javax.jdo/jdo-api/3.0.1
http://www.mvnrepository.com/artifact/javax.jdo/jdo-api/3.0.1
2. When I try to access my new setup as listed in the code above, I'm not seeing it
(+NameNotFoundException: testMeDS+) - why not?
3. Are the 3 files I created actually necessary for my META-INF? Am I missing any?
4. Do I need to actually deal with the rar file as mentioned in
https://community.jboss.org/docs/DOC-17094?_sscc=t Step 5? If I'm deploying via Maven
it doesn't seems like it +should+ be necessary.
I can't find too much doc online bout going through this with Maven that's for
extreme n00bs like me.
I attached my 3 META-INF files here.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/831281#831281]
Start a new discussion in Beginner's Corner at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]