aspose file tools*
The moose likes GWT and the fly likes Eclipse Plugin and JEE features (EJB) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Eclipse Plugin and JEE features (EJB)" Watch "Eclipse Plugin and JEE features (EJB)" New topic
Author

Eclipse Plugin and JEE features (EJB)

Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hello to everyone reading this post,

Well, I'm a new GWT user and I have recently chose to try out the eclipse plugin for GWT. I have a lot of doubts in respect of how to make use of JEE technologies such as EJBs.
In other words, I'm not able to invoke an EJB (3.0) from my RemoteServiceServlet implementation code. My main concern has to do with the fact that inside this GWT server code not even the @EJB annotation is resolved. Why is this? What should I include ?

My final intention is to deploy my GWT web app in OC4J and invoke an EJB deployed in the same container via injection. Is this possible ?

I would also like to know (if possible), If there's a tutorial on how to configure a GWT web app to be deployed on a different JEE container from within eclipse.

I express my sincerest gratitude for all the help you can provide me.

Honestly,

Jose.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Which GWT version are you using? If I remember correctly, annotation support was added in the latter versions.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hello There,

I'm using the latest version there is, and actually I'm not concerned with compatibility with JEE features. In other words, I know for fact, having read another threads and other forums that there is annotation support.
My difficulty is related to IDE configuration, I haven't found an easy way to work with a different container than App Engine inside eclipse, I had to use a work-around to get this to work in order to have the JEE container jars available in my classpath, so that I can finally use JEE features, and consequently deploy my GWT app in that container.
I thought eclipse was more user-friendly when providing the ability to configure deployment of GWT apps to different containers, I would have thought there was a Wizard to accomplish this. Or am I wrong ?

What's the easiest way to get this done ?

As always, Thank you very much and Have a nice day.

Jose.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10376
    
    8

Is your application based on google app engine? Are you planning to host it on the app engine site? Is it using any of the app engine features? I am not sure I understand properly where app engine comes into the picture. As far as my knowledge goes, it is not possible to deploy an app engine application on JBoss or Tomcat

If you are not using app engine, then it is just a matter of bundling it into a proper war/ear as required and deploy it on JBoss/Tomcat like any other application. The proper route to make other jars available to your code would be to place them under WEB-INF/lib and adding them to your project classpath
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hello!

Thanks for all your replies. To reiterate, my application is not intended for production deployment in App Engine. Its final deployment destination will be OAS.
So my question was about how to develop GWT applications from within eclipse and deploy them from within eclipse to OAS as well. I was hoping there was a way to do this without all the error-prone packaging you just mentioned, and instead configure it using a wizard or something (which of course doesn't exist by the looks of it)

Thanks anyway. and let me know What's the best practice for doing what I just described above.

Good day,

Sincerely,

Jose.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse Plugin and JEE features (EJB)