RE: Translating already compiled Java?

2010-09-09 Thread Armishev, Sergey
You can automatically generate POJO classes from the same WSDL. Why are
you doing this manually?
In my GWT app I used SUN jax rpc for that
http://java.sun.com/webservices/jaxrpc/overview.html
Let me know if you need more info
-Sergey

-Original Message-
From: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Gary Madden
Sent: Wednesday, September 08, 2010 5:56 AM
To: Google Web Toolkit
Subject: Translating already compiled Java?

Hello,

Sorry if this is a silly question but I was wondering whether it's
possible to get the GWT compiler to translate already compiled Java
code into JavaScript? I know that you can specify Java source code to
translate using the source elements in the XML module file. The
reason is, I have a JAR that is generated from a WSDL. My GWT web app
makes SOAP requests using this JAR. There is a problem in that I have
to write a lot of classes at the moment that basically replicate the
POJOs in the JAR just so they can be used in GWT. This may lead to
bugs where not all the fields are properly set from the SOAP objects.
In fact, I've already found and fixed quite a few bugs relating to
this.

-- 
You received this message because you are subscribed to the Google
Groups Google Web Toolkit group.
To post to this group, send email to
google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.

/PREBRspan 
style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366'
_BR 
This electronic message and any files transmitted with it containsBR
information from iDirect, which may be privileged, proprietaryBR
and/or confidential. It is intended solely for the use of the individualBR
or entity to whom they are addressed. If you are not the originalBR
recipient or the person responsible for delivering the email to theBR 
intended recipient, be advised that you have received this emailBR
in error, and that any use, dissemination, forwarding, printing, orBR copying 
of this email is strictly prohibited. If you received this emailBR
in error, please delete it and immediately notify the sender.BR
_ 
/SPANPRE

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Translating already compiled Java?

2010-09-09 Thread lineman78
I have been battling this issue for a while and the solution really
depends on your architecture.  The question is are they truly POJOs or
do they have JAXB annotations?  If they have JAXB annotations GWT will
blow up, if not you can trick the GWT compiler into letting you use an
external library, but you will also need a jar with the source in the
classpath of the GWT compile too.  Lets assume the following package
structure:

POJOs: // you will need your ejb jar and a jar that contains the
source, but the source is only needed for the ejb compilation(you
might even be able to get away with just pointing to the src dir in
the classpath of the compile)
com.example.ejb.entity

GWT:
com.example.gwt
 EntryPointModule.gwt.xml // include
com.example.ejb.PojoResourceModule
com.example.ejb
 PojoResourceModule.gwt.xml // add this file
to allow you to include the pojos as a module, this should have
sourceentity/source

On Sep 8, 3:56 am, Gary Madden garymad...@gmail.com wrote:
 Hello,

 Sorry if this is a silly question but I was wondering whether it's
 possible to get the GWT compiler to translate already compiled Java
 code into JavaScript? I know that you can specify Java source code to
 translate using the source elements in the XML module file. The
 reason is, I have a JAR that is generated from a WSDL. My GWT web app
 makes SOAP requests using this JAR. There is a problem in that I have
 to write a lot of classes at the moment that basically replicate the
 POJOs in the JAR just so they can be used in GWT. This may lead to
 bugs where not all the fields are properly set from the SOAP objects.
 In fact, I've already found and fixed quite a few bugs relating to
 this.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Translating already compiled Java?

2010-09-08 Thread dolcra...@gmail.com
I don't think it can, although if you can get the wsdl tool to include
the source and a module xml (maybe during your build process) then it
could access the jar appropriately, but the source would need to be
there along with a module xml (you know to exclude non translatable
code).

On Sep 8, 5:56 am, Gary Madden garymad...@gmail.com wrote:
 Hello,

 Sorry if this is a silly question but I was wondering whether it's
 possible to get the GWT compiler to translate already compiled Java
 code into JavaScript? I know that you can specify Java source code to
 translate using the source elements in the XML module file. The
 reason is, I have a JAR that is generated from a WSDL. My GWT web app
 makes SOAP requests using this JAR. There is a problem in that I have
 to write a lot of classes at the moment that basically replicate the
 POJOs in the JAR just so they can be used in GWT. This may lead to
 bugs where not all the fields are properly set from the SOAP objects.
 In fact, I've already found and fixed quite a few bugs relating to
 this.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.