Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

use third party jars in GWT App

 
Ranch Hand
Posts: 510
Google Web Toolkit Eclipse IDE 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?

 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Google Web Toolkit Eclipse IDE 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
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Google Web Toolkit Eclipse IDE 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.
 
My first bit of advice is that if you are going to be a mime, you shouldn't talk. Even the tiny ad is nodding:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!