@Filippo De Luca
i undersand what u mean but i'm a beginner in dévloppment so can u
give me a tutorial or a video that can show me how can i exactelly do
to integrate spring and GWT , thinks.

2012/3/9, Filippo De Luca <[email protected]>:
> Usually I implement the Service interface in a Spring bean, and I write the
> RemoteServlet implementation delegating all method to the Spring bean.
> Because the servlet is outside Spring transactional demarcation. You an
> also use threadlocal to pass request and response to the Spring bean (as
> GWT do).
>
> On Friday, March 9, 2012 3:33:19 AM UTC, Xybrek wrote:
>>
>> On 3/8/2012 11:33 PM, Akram Moncer wrote:
>> > hello everybody;
>> >
>> > can some one help me and give me how can i create webapp with spring
>> > framwork on back-end and GWT on front-end ?
>> >
>> > --
>> > Akram MONCER
>> > Personne
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Google Web Toolkit" group.
>> > To post to this group, send email to
>> > [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>> In most cases, Spring code is in the GWT RPC (server-side code). Best
>> approach would be through maven, also you might want to use Spring STS
>> Plugin if you are using Eclipse.
>>
>> If you are able to have your GWT project a "Spring nature" then on your
>> GWT RPC code, you can apply the standard Spring codes, i.e
>> in your ServiceImpl code you can override:
>>
>> @Override
>> public void init() ...
>> {
>>   super.init();
>>   WebApplicationContext ctx =
>> WebApplicationContextUtils.getWebApplicationContext(getServletContext());
>>   // Beans
>>   dao = (MyDao)ctx.getBean("myDao");
>> }
>>
>> @Override
>> public void doSomething() {
>>   String something = dao.getSomething(...);
>> }
>>
>>  From here, you can use the beans to do something your app need to
>> accomplish.
>>
>> Of course you should fix your applicationContext.xml and web.xml which
>> you can easily search the web on how to do this.
>>
>> This is just the basic way to integrate GWT and Spring, as the topic is
>> very broad, you can integrate other complex things like Spring
>> authentication etc.
>>
>> Hope this helps.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/_fMVfXDgoaoJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Akram MONCER
Personne

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

Reply via email to