This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes GWT and the fly likes use third party jars in GWT App Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "use third party jars in GWT App" Watch "use third party jars in GWT App" New topic
Author

use third party jars in GWT App

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Hello,
GWT does'nt accept any kind of external jars unless these jars include java source files and also gwt.xml modules files so we can inherit theses jars as modules in main gwt application.
isn't this a very limiting factor for GWT framework? what if i want my GWT to call some code in some third party jars that i have no control over? does this means GWT will never accept these jars?

seems very weird to me! if we cannot reuse third party jars what's the usefulness of GWT?
i guess there might be some way to call third party jars in a gwt application but i don't know where this third party jars call should occur in a GWT app? some says in server side code. does this means i need to build some proxy classes under server package of gwt app ?
any clarification about this issue?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Since GWT converts your java code to JS files, it requires the source files as well.
Which external jars do you wish to use? If it is some widget designed for GWT then the source files will be readily available.


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

Joined: Jul 07, 2005
Posts: 510

Maneesh Godbole wrote:Since GWT converts your java code to JS files, it requires the source files as well.
Which external jars do you wish to use? If it is some widget designed for GWT then the source files will be readily available.


I want to use the documentum dfs libraries. i don't think those libs were designed for GWT.
i probably need to call the documentum dfs code logic inside a gwt rcp server method that don't take any arguments that are references to classes from these external jars nor return a type that references a class from these documentum external jars.
if i do this, will this workaround works? i probably will need to run my gwt app in a java web container to get the documentum dfs calls to work in server side ? right?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

I have not used document dfs so I cannot comment on that.
But yes, you can use them on the server side without any problem. There is not requirement of source files on the server side.
And you are correct, you will need a web server to run that code.

Remember GWT is about the UI. Everything else can happen on the server side.
Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Maneesh Godbole wrote:I have not used document dfs so I cannot comment on that.
But yes, you can use them on the server side without any problem. There is not requirement of source files on the server side.
And you are correct, you will need a web server to run that code.

Remember GWT is about the UI. Everything else can happen on the server side.


yes thank you. it seems this is working now fine. (calling external jars in the server side via gwt rpc)

thanks.
 
 
subject: use third party jars in GWT App
 
Similar Threads
class loading issue in Jboss
JMS
property files in ejb tier
GWT Entry point Configuration
Third party place for EJB.