Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Build/Compile EJB
Build/Compile EJB [message #213363] Fri, 01 June 2007 20:52 Go to next message
Eclipse UserFriend
Originally posted by: pjackson.txfb-ins.com

I've created an EJB project, a package called mybeans, and declared a
public class with one very simple method.
Project tree looks like;
EJB Projects
- psjbean1
+ Deployment Descriptor
- ejbModule
- mybeans
+ psjbean1.java
+ META_INF

Now, how do actually compile the thing so that I can use the bean from a
jsp page? I tried right clicking and selected deploy, but that didn't
seem to do anything.

I add the tag to the jsp page:
<jsp:useBean class="mybeans.psjbean1" id="pjbean" scope="page" />
But it errors saying "broken link - mybeans.psjbean1"
So i gather that no executable module has yet been created?

thanks,

phil
Re: Build/Compile EJB [message #213444 is a reply to message #213363] Sat, 02 June 2007 21:23 Go to previous messageGo to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Phil Jackson wrote:

> I've created an EJB project, a package called mybeans, and declared a
> public class with one very simple method.
> Project tree looks like;
> EJB Projects
> - psjbean1
> + Deployment Descriptor
> - ejbModule
> - mybeans
> + psjbean1.java
> + META_INF

> Now, how do actually compile the thing so that I can use the bean from a
> jsp page? I tried right clicking and selected deploy, but that didn't
> seem to do anything.

> I add the tag to the jsp page:
> <jsp:useBean class="mybeans.psjbean1" id="pjbean" scope="page" />
> But it errors saying "broken link - mybeans.psjbean1"
> So i gather that no executable module has yet been created?

> thanks,

> phil

Hi Phil. I don't know if this is what you are looking for, but the link
below from last October suggests that the WebTools project has features
for building and testing Java beans. Hope this helps. Mark Dexter

http://dev.eclipse.org/newslists/news.eclipse.newcomer/msg11 702.html
Re: Build/Compile EJB [message #213452 is a reply to message #213444] Sat, 02 June 2007 21:31 Go to previous message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
A little more information. It appears that the JST Components subproject
under the WTP project includes the following use cases:

Develop an EJB Application
Add an EJB
Add methods/fields/relationships/mappings to an EJB
Edit the deployment descriptors
Package the contents of an EJB-JAR
Generate necessary classes
Run, Test, Debug EJBs

Here is the URL.

http://www.eclipse.org/webtools/jst/main.php

So, I would assume there is one or more plug-ins that add this
functionality to Eclipse. Hope this helps. Mark Dexter
Previous Topic:Plug In development - Wizard creation
Next Topic:NoClassDefFoundError
Goto Forum:
  


Current Time: Sat Apr 27 02:24:43 GMT 2024

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

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

Back to the top