The .NET approach is different than the Java approach. It's unnecessary to
break this project up. I personally do not think you gain anything with this
approach other than additional complexity.

That being said, Eclipse is infinitely flexible. You can probably set it up
so that on a build, it creates a JAR file and places it in WEB-INF/lib.

On Thu, Jan 21, 2010 at 12:18 PM, Maurits
<[email protected]>wrote:

> Hi Ikai (and others),
>
> Thank you very much for your reply, I appreciate it.
>
> Although I am not yet satisfied (sorry ;) ). The thing is I am not
> just learning Java, I got the language covered, I am a seasoned C#
> programmer and have some experience with Java already. Now I am trying
> to build a serious application and would like split up the project
> into several projects (as I would do in .NET). The thing is that I
> have all the code ready and it works as long as I manually copy the
> JAR files into the "WEB-INF/lib" folder. I will go check out the link
> you supplied, but if you or any one else can provide some more insight
> I would really appreciate it.
>
> Thanks Maurits
>
>
> On Jan 21, 8:29 pm, "Ikai L (Google)" <[email protected]> wrote:
> > Hi there!
> >
> > If you're learning Java, it's probably overkill to create 4 different
> > projects, even for different layers of the application. It's probably
> enough
> > to simply create different packages and sort through them that way.
> >
> > For development, you can get away with putting the JAR files in your Java
> > classpath. Another thing you can do is to use a popular Java build tool,
> > Ant, to do this manually. It's a great opportunity to learn Ant! Here are
> > the bits related to App Engine:
> >
> > http://code.google.com/appengine/docs/java/tools/ant.html
> >
> > <http://code.google.com/appengine/docs/java/tools/ant.html>That being
> said,
> > I don't think it's necessary to break things up into four projects. It's
> > easy - almost trivial - to do so later down the line if your packages are
> > set up right.
> >
> > On Thu, Jan 21, 2010 at 1:42 AM, Maurits <
> [email protected]>wrote:
> >
> >
> >
> >
> >
> > > Hi all,
> >
> > > I am an experienced .NET developer but new to JAVA and Eclipse. I am
> > > currently experimenting with JAVA and the GAE with plans to start
> > > making more use of the GAE since I really like what is offered (Google
> > > keep up the good work ;)).
> >
> > > However I am running into a problem, I would like to build an
> > > application using multiple layers (currently a Presentation layer,
> > > Service layer, Business layer and a Data layer). My presentation layer
> > > is a GAE project created using the Eclipse plug-in, the other layers
> > > are all normal JAVA projects I created in the same workspace (so I
> > > have 4 separate projects). Now I managed to get everything compile
> > > correctly by referencing all projects with each other using the Java
> > > Build Path -> Projects dialog window.
> >
> > > However when I run the application I run into the problem that the
> > > Presentation layer cannot find the classed from my Service layer
> > > project. I figured out that I need to manually copy the output classes
> > > from the Service (and others) layer into the WEB-INF/lib folder to get
> > > it working (preferably packed into a JAR file).
> >
> > > My question is, can this be somehow automated? I read some information
> > > about using an ANT script to do so, but since I am a bit spoiled with
> > > Visual Studio (who does this automatically when I make the reference)
> > > I have no clue on how to start, I don't even know how to automatically
> > > pack the class files from the Service, Business and Data layers into a
> > > JAR file.
> >
> > > Is there someone who can get me started?
> >
> > > Many thanks,
> >
> > > Maurits
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>
>


-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
--
You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to