Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Making sense of Java EE and Galileo
Making sense of Java EE and Galileo [message #539022] Wed, 09 June 2010 10:59 Go to next message
Eclipse UserFriend
Originally posted by: reefedjib.yahoo.com

I am splitting my questions into separate posts.

I have Galileo and Java EE 4. I installed OC4J as a Runtime Environment and
got its ejb.jar. My first question is that Java EE doesn't seem to have any
jars or libraries configured in Galileo. What is it good for?

My second question is regarding all of the projects and where files go. I
created an EJB Project (testEJB), version 3.0, which automatically created
an Enterprise Application Project (testEAR). The creation of an EJB Project
also creates a client project (testEJBClient). I am interested in
understanding the distribution of files between testEJB and testEJBClient
and what to do with these projects.

I created a Session Bean (TestSessionBean) using the Wizard and marked
creation of Local and Remote interfaces.

I see that my Bean class file in located in the ejbModule\testEJB\beans\ of
the testEJB project.
I see that my Local and Remote Interfaces files are located in the
ejbModule\testEJB\beans\ of the testEJBClient project.
In the Deployment Descriptor of the testEJB project, I see TestSessionBean
under Session Beans and it seems to hold references to both the Bean class
and the Interfaces files.

Why are these files separated in different projects?

How do I build these projects? Do I need to configure a target and an Ant
Build?

What are the targets that compiling these projects produces? The TestEAR
should produce an EAR file. Is there a WAR file (I don't think so, no Web
Project)? What do testEJB and testEJBClient produce? JAR files?

Thanks


--
Re: Making sense of Java EE and Galileo [message #539111 is a reply to message #539022] Wed, 09 June 2010 16:09 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
> I have Galileo and Java EE 4. I installed OC4J as a Runtime
> Environment and got its ejb.jar. My first question is that Java
> EE doesn't seem to have any jars or libraries configured in
> Galileo. What is it good for?

The best way to make sure that your application is compatible with the app server that you intend to deploy is to set your project to target that app server.

> My second question is regarding all of the projects and where
> files go. ...

I would recommend you look for a Java EE development book or a good tutorial.

> How do I build these projects? Do I need to configure a target
> and an Ant Build?

Eclipse builds code in your projects on the fly. With the app server configured, you can select a project and call Run As -> Run On Server to publish it to the app server and test your code. Once you are done testing, you can use various export wizard to create binaries for distribution.

- Konstantin
Re: Making sense of Java EE and Galileo [message #539313 is a reply to message #539111] Thu, 10 June 2010 11:11 Go to previous message
Eclipse UserFriend
Originally posted by: reefedjib.yahoo.com

"Konstantin Komissarchik" <konstantin.komissarchik@oracle.com> wrote in
message news:huoebo$i4n$1@build.eclipse.org...
>> My second question is regarding all of the projects and where files go.
>> ...
>
> I would recommend you look for a Java EE development book or a good
> tutorial.

Do you know of a good tutorial on EJB 2.1 on the web? Since I have to
manuall add Interfaces and Classes, I need to know what to add (Local,
Remote, Bean, Deployment Descriptor, etc)

>> How do I build these projects? Do I need to configure a target and an Ant
>> Build?
>
> Eclipse builds code in your projects on the fly. With the app server
> configured, you can select a project and call Run As -> Run On Server to
> publish it to the app server and test your code. Once you are done
> testing, you can use various export wizard to create binaries for
> distribution.

I started reading the Web Tools Project documentation, which is pretty good.
It is good to know about Run On Server to test, then export to distribute.

Rob
Previous Topic:What is the correct version of Java EE to use
Next Topic:Tomcat in Eclipse, Error 500 ClassNotFound for servlet
Goto Forum:
  


Current Time: Thu Apr 25 12:12:31 GMT 2024

Powered by FUDForum. Page generated in 0.02953 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top