I have a project with 3-4 java projects
com.my.company.persistence
com.my.company.management
com.my.company.util
and 1 GWT project with xyz.gwt.xml
com.my.company.uisrc
Now one of my foreign java project has Hibernate POJO which i want to
use in GWT RPC. I tried using <source> in xyz.gwt.xml which allowed me
to use those java files which were in same GWT project may be in
different package.
But i want to use the classes at client side from different Java
Project i tried giving the entry like
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<!-- Specify the app entry point class. -->
<entry-point class='com.dexterra.ui.client.PortalApplication'/>
<source path="com.my.company.persistence"/>
<servlet class="com.dexterra.ui.server.PortalManagerImpl"
path="/PortalManager"/>
</module>
Any help would be appreciated.
Thanks a ton
i am simply confused with so many thoughts coming in my mind. :-) and
doing RnD
HELP PLEASE!
> Your application's gwt.xml needs an inherit statement that includes
> the module name of the included jar.
Now since i have to inherit that in my GWT module that means my
persistence project should also contain some persistence.gwt.xml. If
yes then don't we have any other option because my persistence project
is already existing one for other purposes and i want to avoid doint
any GWT stuff in that.
Please confirm.
thanks.
> > > Thanks a ton- Hide quoted text -
>
> - Show quoted text -
If the included java project whose class i want to use will have to
have some gwt.xml then what contents will it have....will it be empty?
<module>
</module>
In my ParentApp.gwt.xml which is the mai GWT module i gave
<module>
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User'/>
<inherits name='com.mycompany.persistence.MyClass'/>
<!-- Specify the app entry point class. -->
<entry-point class='com.mycompany.ui.client.PortalApplication'/>
<servlet class="com.mycompany.ui.server.PortalManagerImpl" path="/
PortalManager"/>
</module>
MyClass is in 'com.mycompany.persistence' it can be simple class or
shud implement serializable at any cost. Tried both. Then placed my
persistence.jar in build path of eclipse and the classpath of launch.
I am not using Myapp.shell.cmd.
thanks in advance for help
On Aug 2, 1:37 pm, mP <miroslav.poko...@gmail.com> wrote: