-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: entity bean - only xml - no annotation - hibern & ejb3
PostPosted: Sun May 28, 2006 8:37 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
I have a couple entity beans whos .class compiled files will be reused in multiple business domain contexts. Therefore, it would not be appropriate to embedd the queries or one-to-many etc dependancies in the actual java source. I found some good docs on using external XML files to configure this however, the info on the DTD tells what the entity is without really describing it well. There are also no docs on how to load the xml for ejb3 bmp/cmp without introducing hibernate dependancies.

The goal is to be able to do this in ejb3 standalone and jboss4 and glassfish.

ref link:
http://docs.jboss.org/ejb3/app-server/H ... index.html
http://java.sun.com/javaee/5/docs/tutorial/doc/
http://jcp.org/aboutJava/communityproce ... index.html

best ref i could find.. and its not complete:
http://www.hibernate.org/hib_docs/annot ... iding.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 12:03 pm 
Beginner
Beginner

Joined: Fri Mar 17, 2006 7:30 pm
Posts: 32
I'm not sure what you are wanting to do here. I never use annotations for Hibernate (or anything for that matter) as they are a very bad idea and will tie you to a particular data schema. I use the XML file in the class path. Are you asking to be able to use an XML file that is not in the class path?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 12:12 pm 
Newbie

Joined: Sun May 28, 2006 11:24 am
Posts: 13
yes. an xml file from "anywhere" perhaps specified with a URL.

going beyound this, just trying to find the specs and a demo that uses ONLY XML and no annotations.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.