0 Replies Latest reply on Jan 10, 2006 4:24 AM by Pieter-Jan Malfait

    EJB3 GUI Design quetion

    Pieter-Jan Malfait Newbie

      I develop a EJB3 application with a Swing GUI client.

      is it appropiate to design EJB3 Entity beans as regular JavaBeans. In specific i mean letting the fire PropertyChangeEvents as regular JavaBeans to, this isn't really GUI code, but it isn't strictly domain data code either.

      I'm thinking of designing my EJBs like this to make them connect to the client GUI smoothly..

      Is this bad code? I'm in doubt but don't really see another nice and clean option to use my objects in the GUI (except the modelToView and viewToModel methods, but that's not really clean in my opinion). It's a big project so i don't want to start on the wrong foot. Thanks a lot for the help!