-->
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.  [ 2 posts ] 
Author Message
 Post subject: Accessing hibernate SAR packages
PostPosted: Wed Nov 19, 2003 6:44 pm 
Beginner
Beginner

Joined: Wed Oct 01, 2003 3:57 am
Posts: 33
Location: Alpharetta, Georgia
I have successfully employed the hibernate as SAR with JBoss, it loads, it deploys, all that good stuff. Everything is packaged in com.hagelnx.hibernate

The problem I'm having is accessing those packages from other parts of my project. For example, in a web project I want to:

import com.hagelnx.hibernate.*

but this will not compile. the SAR is on the classpath, but java says that the package does not exist.

I tried creating a third jar project that declares all the interfaces and including those in both the web and the hibernate project ... but this is leading to great complexity, particularly when trying to write DAOs

So that's the question: How can I access/import the package(s) in the SAR during my builds of other artifacts?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 19, 2003 7:33 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The SAR package is used, for example, by JBoss for deployment purposes. JBoss will place the code in the applications classpath.

For development why not have the build directory in the class path. If you use an IDE (say eclipse for example) then have two projects. One the domain model and the EJB/DAO tier. If both projects are in the workspace then the classpaths will be setup for you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.