[jboss-user] [JBoss Seam] - Complete, working Example-Implementation for EntityHome<Obje

mugwump do-not-reply at jboss.com
Mon Mar 26 12:49:38 EDT 2007


After struggling a while with getting an implementation for  EntityHome running, I am about to give up: A comlete example, that is actually running and can be deployed, would be helpful - the docs are too sparse to get this things really up and running: Here is my problem:

Given the example from the docs: 


  | @Stateful
  | @Name("personHome")
  | public class PersonHome extends EntityHome<Person> implements LocalPersonHome {
  | 

The docs say: 
anonymous wrote : A second advantage is that your classes may be EJB stateful sessin beans, if you like. (They do not have to be, they can be plain JavaBean components if you prefer.)

However, if I don't make the PersonHome either  stateful or a stateless SessionBean, I get JTA-Transaction-Excpetions. But if I make them Stateful, I have to figure out which methods are needed on the Interface, as all Classes above (EntityHome and Home) are abstract and don't have any interface I could simply extend. 

Overall, this approach looks only half-finished (lacking proper documentation, examples and refactoring) - which is really a shame, as it is not flagged "experimental" and naive users like me are tempted to give it a try (although I should know it better by now and wait for at least two iterations for the api to stabilize...)

If anyone has gotten this baby to run, I would really appreciate any hints/examples!!

cheers
stf

PS: Please don't misunderstand this post, I absolutely love seam, but it would be really helpful to flag new and untested parts of the framework accordingly instead of mixing them with the stable ones....




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031689#4031689

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031689



More information about the jboss-user mailing list