Hi Mohammad, Glad to read your are progressing.
1. If you run compiled server+imap in eclipse and run james main class from within eclipse, you can debug it just like any other java application. Instead of selecting "Run as...", select "Debug as..." (btw, I will add a section on the web page).
2. I would say, start with the mapping files in the same package as the domain classes (but in src/main/resources, otherwise they won't be taken into account in the build) - we will arrange to change their place with infra code once you will be ok (we are used to move stuff :)
Maven and Eclipse are great friends,... except for JPA... When changing JPA annotations in domain classes, I have to "mvn install", and let the container-spring project depend on the locally installed jar (in other words, "resolve dependency in workspace" sucks for JPA).
Tks, Eric On 21/11/2010 19:30, Mohammad Naghavi wrote:
Hi every body, after compiling the James and IMAP fom the SVN and learning somethings about JPA, I wanted to start moving the persistence related data out of class definitions but as I'm completely new to both James and JPA these two questions came to me. it would be very great to help me finding an answer for them: 1. I know how to run James which I checked out from * https://svn.apache.org/repos/asf/james/server/trunk* and also know how to compile IMAP from *https://svn.apache.org/repos/asf/james/imap/trunk *but is it also possible to debug both of them (I mean IMAP in server) from Eclipse or I have to depend on just log data for debuging? 2. Second question which came to my mind was where shall I put meta data map-file for JPA? this is places in the same folder as the class itself in tutorial but can I put it there? how would it be copied to output? a great place for output position would be a new folder under conf folder like: conf\JPA\mapfilename.xml but how is it organised to be copied there in Maven projects? thanks to any respond. MN ________________________________________ PHP& ASP .Net 3.5 web developer Java& C# desktop developer www.mohamnag.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
