Thanks a lot for your help. I am going to take a look at your pointers.

Sincerely,

RSN

On Thu, Oct 15, 2009 at 4:53 AM, Ian Bambury <ianbamb...@gmail.com> wrote:

> I'm still not really clear on what you are doing, but is this any help?
> In 1.7 you can run 2 individual projects at the same time from within
> Eclipse if you use -noserver.
>
> You'll need 2 local web servers (I use Abyss) each having their document
> root pointed at one of the war folders of the projects, and each running on
> a different port.
>
> You'll need to use the -port switch in the launch file to point each
> project at the right server. Works in 2.0, too, but you also need to set
> different -portHosted settings or they'll clash.
>
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/10/15 Romeo Sanchez <romeo.sanc...@gmail.com>
>
> Basically, in my scenario, each project provides services. In theory, they
>> can be deployed individually to different servers. One of the projects, lets
>> say Project A, collects some data and sends the data to Project B. Project A
>> is basically requiring Project B to fulfill one of its goals.
>>
>> I know that I can deploy first project B somewhere, and use HTTP POST
>> requests or something alike in Project A to transmit my data to the deployed
>> Project B. However, I would like to be able to run the whole thing in hosted
>> mode, in other words, to be able to simulate the environment during
>> development, testing and debugging.
>>
>> For example, I can do that directly with two different JAVA projects in
>> Eclipse. I can manipulate both at the same time, compile and run
>> configurations, debug the projects, and see the effects of my changes. I was
>> just wondering if something similar is possible for GWT. Where, I have both
>> projects being loaded in hosted mode, the main project and the dependency
>> project. And then test cross-module functionality among them. In my case, I
>> will be transmitting data, but it could be something else.
>>
>> I do not know if I am not being clear, or if I really need to go to some
>> intensive GWT training. I understand the concept of importing modules
>> (inheriting), but I was just wondering if while inheriting you could also be
>> testing and developing not only in the main but also in the inherited
>> modules.
>>
>> Thanks for your help, I really appreciate it.
>>
>> RSN
>>
>>
>>
>>
>>
>> On Wed, Oct 14, 2009 at 5:39 PM, Ian Bambury <ianbamb...@gmail.com>wrote:
>>
>>> I think you need to (or, anyway, I need you to) take a step back and
>>> explain what you are trying to achieve here.
>>> Why do you need two projects? The usual reason is that you need to reuse
>>> code and widgets from the included project in two or more others (e.g. you
>>> are building a framework of some kind, or want to use some widgets you have
>>> developed in more than one top-level project.
>>>
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/10/15 RSN <romeo.sanc...@gmail.com>
>>>
>>>
>>>> I am kind of new with GWT, and I was hoping someone could clarify my
>>>> following questions, or at least point me out to some light. Thanks
>>>> for any help.
>>>>
>>>> The setting is as follows:
>>>>
>>>> - Eclipse 3.4.2 , GWT 1.7.1 and plugin.
>>>>
>>>> - Created two basic GWT modules with GWT Plugin under Eclipse. Both
>>>> are just copies of the GreetService application that gets generated by
>>>> default when you create a new GWT project using the plugin Wizard.
>>>>
>>>> The modules are:
>>>> -Security
>>>> -Main
>>>>
>>>> The Main module is going to inherit the Security one. So, I modified
>>>> the Main.gwt.xml file to inherit the security module.
>>>> <inherits name='org.security.Security'/>
>>>>
>>>> In addition to this, Eclipse complained about the build path for the
>>>> Main module when I did this change. So, I had to add the Security
>>>> module as a "Required project on the build path" of the Main module.
>>>> This step removed any problems in compilation time.
>>>>
>>>> So, I proceed to run the Main module. When, I ran the project, only
>>>> one single Hosted-mode browser window opened. And, these are the
>>>> problems encountered:
>>>>
>>>> - The single browser window contained elements (buttons, textboxes,
>>>> etc) from both of the modules. So, I could see all html elements in a
>>>> single window.
>>>>
>>>> First questions:
>>>> Is this the desired behavior?
>>>> Can we open more than one browser window, one per each module that has
>>>> an entrypoint and refers to a html page?
>>>> Is there a way to let each module know on which port each application
>>>> will run? In other words, both of the modules are running in
>>>> localhost, but I would like to set them to run in different ports such
>>>> that there is no conflict.
>>>>
>>>> Then, I proceed to test the functionality of the elements in the
>>>> single browser window. I clicked the button of the Main application
>>>> that greets the Server. It worked well. No problems.
>>>> Then, I clicked in the second button from the Security module to make
>>>> an RPC to the server, and it got the default message: "An error
>>>> occurred while attempting to contact the server. Please check network
>>>> connection ..."
>>>> I am guessing that the Server side of the Security module did not load
>>>> because of the port issue. Is this true, or is there something else
>>>> that I am missing?
>>>>
>>>> I get in the Hosted Mode Window also the following:
>>>> 404 - POST /main/greet (127.0.0.1) 1396 bytes
>>>>
>>>> I notice that the main module do not have a "greet" servlet (since I
>>>> refactored it). However, the Security module kept that servlet name,
>>>> should not be /security/greet instead?, where is the application
>>>> getting confused? Why the call is going to the main servlet to look
>>>> for the "greet" service instead of going to the Security module
>>>> servlet services?
>>>>
>>>> Is this feasible? I mean, can we debug and test functionality of cross
>>>> referenced GWT modules/projects in Eclipse?
>>>> I am a newbie, so is there somewhere a discussion, tutorial,
>>>> documentation that I am missing?
>>>>
>>>> Thanks,
>>>> p.s. Hope I could put some small images to better illustrate the
>>>> issues.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-toolkit@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to