• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse Plugin and JEE features (EJB)

 
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which GWT version are you using? If I remember correctly, annotation support was added in the latter versions.
 
Jose Campana
Ranch Hand
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 339
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic