Results 1 to 3 of 3

Thread: Design Question

  1. #1
    robmills is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default Design Question

    Hey everyone - first post here. I'm getting up to speed with Java after coming from a .NET background. I've been developing web apps using ASP.NET but want to transition over to using Java instead.

    My question has to do with best practices. With .NET we normally would split each logical layer into its own project and compile into a separate dll. I'm curious if the same is possible in Java and if that's considered a best practice. I guess you would export each project into its own jar is that right?

  2. #2
    Jodokus's Avatar
    Jodokus is offline Senior Member
    Join Date
    Jan 2011
    Location
    Amsterdam, the Netherlands
    Posts
    230
    Rep Power
    4

    Default

    I guess you would export each project into its own jar is that right?
    Yes, that's right. In Eclipse (which I'm using) you can tell (Project->Properties->JavaBuildPath) which other projects your project depends on. The main pitfall is to avoid circular dependencies (They seem to work fine until you switch to another IDE. Then you have a chicken-egg compiling issue.).

    Other IDE's and frameworks (Netbeans, Spring) have their own higher order mechanisms to organize code in modules, but I'm no expert on that.
    Last edited by Jodokus; 03-10-2011 at 04:03 PM.

  3. #3
    robmills is offline Member
    Join Date
    Mar 2011
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by Jodokus View Post
    Yes, that's right. In Eclipse (which I'm using) you can tell (Project->Properties->JavaBuildPath) which other projects your project depends on. The main pitfall is to avoid circular dependencies (They seem to work fine until you switch to another IDE. Then you have a chicken-egg compiling issue.).

    Other IDE's and frameworks (Netbeans, Spring) have their own higher order mechanisms to organize code in modules, but I'm no expert on that.
    Excellent. Thanks for the reply!

Similar Threads

  1. A little design (pattern?) question...
    By raindog308 in forum New To Java
    Replies: 1
    Last Post: 01-26-2011, 10:12 AM
  2. Design Question.
    By MadJack in forum New To Java
    Replies: 0
    Last Post: 09-27-2010, 05:21 AM
  3. Design question: where to put sql
    By Armadillo in forum JDBC
    Replies: 3
    Last Post: 07-30-2010, 06:53 PM
  4. Design question
    By mac in forum New To Java
    Replies: 2
    Last Post: 05-26-2010, 03:48 PM
  5. Design question
    By kfunk in forum New To Java
    Replies: 4
    Last Post: 10-10-2008, 04:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •