You can easealy use your ejb like in the servlet.

Simple create a referance into the gwt.server someServiceImpl
@EJB
private yourEjbRemote/local yourEjbname;

after this you can call this ejb from the servlet method

 public String hello(String s) {
        // Do something interesting with 's' here on the server.
        return yourEjbname.hello();
    }

In the client mode, you need to creat a proxy for this servlet across
your async interface like this way:

http://code.google.com/intl/hu/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideMakingACall


On ápr. 16, 22:58, Mohamed Chakroun <chakroun.moha...@gmail.com>
wrote:
> Hello
> Thank you Jason.
> In my project  i have create myEJBand alsoGWTbut my t problem how
> to use theEJBmethode to call with server.
> How can i  use a method from  EJB
> For exemple in my project i have 2 textbox(id and name) and i like to
> insert in my data base with a methode fromEJB
>
> Can you help me please  (I need an example or a tutoriel).
>
> thanks
>
> ---------------------------------------------------------------------------­-----------------------
> Envoyé par : Chakroun Mohamed
>
> chakroun.moha...@gmail.com || chakroun.moha...@planet.tn
--~--~---------~--~----~------------~-------~--~----~
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