• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

use third party jars in GWT App

 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yahya Elyasse
Ranch Hand
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic