• 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
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

use third party jars in GWT App

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
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
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
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
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
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
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic