1. #1
    Ext User
    Join Date
    Sep 2008
    Posts
    6
    Vote Rating
    0
    elvisd79 is on a distinguished road

      0  

    Default GWT, GXT and EJB3

    GWT, GXT and EJB3


    Hi all,

    we are starting refactoring our the 'next gen' application.
    We have chosen to use gwt.
    We are trying out gxt.
    Our persistence model is ejb3 + dao and so on (no spring)

    do someone have some examples? Even with 1 bean and 1 gwt/gxt 'page'?
    Maybe using the BeanModel concept?

    Thank you, kindly

    elvisd

  2. #2
    Ext User
    Join Date
    Sep 2008
    Posts
    6
    Vote Rating
    0
    elvisd79 is on a distinguished road

      0  

    Lightbulb


    just to be clear i'd like to have, if possible, two eclipse project.
    - The first as ejb project with min. 2 pojos (user / post / ... ) and respective daos.
    - The second one will be a gwt project, using gxt libraries. Presenting a login page with user credential check on user table, user data save on session (current user id, current role, group and so on) and listing of user's posts, ev. with add/modify functionalities (using ejbs and daos)

    POJOS
    User{username:String,PK; password:String; Role:String; Group:String}
    Post{id:Integer,PK; username:String:FK; title:String; body:String; date: Date}

    have someone such simple example?
    could someone help me figure out how to do it? maybe we could open a new google code project to host this ejb-gwt+gxt example...
    What do you think?

    Thank you
    Kindly

    elvisd
    Last edited by elvisd79; 25 Sep 2008 at 11:54 PM. Reason: removing typo-smilies

  3. #3
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Posts
    4
    Vote Rating
    0
    jplessinger is on a distinguished road

      0  

    Default


    There is nothing inherently special about using EJBs with Gxt. The general pattern I follow is one RCP servlet per EJB.

    The work flow would be:
    User press button to do foo.
    GXT app calls foo method on RPC servlet.
    RPC servlet calls foo method on EJB.

    As far as using the EJBs they work the same as they would from a servlet. The only thing you have to keep in mind is you can't just serialize any object and expect it to work on the client. Spcificly hibernate(JPA) objects over to the client. You will need a DTO (I use a DTO) for the hibernate object, or use something like hibernate4gwt(that name might be wrong).

  4. #4
    Sencha User
    Join Date
    May 2011
    Location
    Dhaka, Bangladesh
    Posts
    28
    Vote Rating
    0
    tanvirr is on a distinguished road

      0  

    Default Please

    Please


    Can anybody provide me a web url-link for an example for ext-gwt, ejb3. Please help me to provide me any helpful tutorial or example project.

  5. #5
    Sencha User
    Join Date
    May 2011
    Location
    Dhaka, Bangladesh
    Posts
    28
    Vote Rating
    0
    tanvirr is on a distinguished road

      0  

    Default DTO & DAO

    DTO & DAO


    What is the deference between DTO and DAO. I Know the full meaning of DTO and DAO. But I need to clear when and where I need to use them?

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi