[jboss-user] [EJB 3.0] - Entity Inheritence Bug?

2008-01-18 Thread kotlusa
I'm on a project that has a base class entity, HistoricalEntity, that is extended when we want an entity that keeps track of its changes. This entity is extended by several other, sometimes unrelated, entities. Although everything works, Hibernate generates some extremely long sql queries

[jboss-user] [EJB 3.0] - Multiple @ManyToMany Relationships to the Same Entity

2008-01-18 Thread kotlusa
I am having a problem, which I believe may be due to a bug, where having multiple @ManyToMany relationships to the same entity is causing BatchUpdateExceptions. Example Entities: Television: a television set Channel: a television channel television-sportsChannels: ManyToMany between Television

[jboss-user] [EJB 3.0] - Clustered ServiceBeans (@Service @Clustered)

2007-12-24 Thread kotlusa
Hello, I'm a big fan of the @Service EJB 3.0 extension because makes it easy to write singleton EJB's. Unfortunately, I haven't had much luck with these in a clustered environment. It appears that, even with the @Clustered annotation, each node of the cluster gets it's on singleton instance

[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?

2007-11-13 Thread kotlusa
For anyone that is interested, this bug is fixed in Seam 2.0 GA on JBoss 4.2.1 GA 4.2.2 GA. It may also work with earlier versions of JBoss but I haven't had a need to test it. Thanks again for the help, Austin View the original post :

[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?

2007-10-28 Thread kotlusa
If I could attach the code I would but since I see no way, here's some more inline code. I modified the booking application and deployed it on both 4.2.1GA and 4.2.2GA, both of which appear to have the same FlushMode issue. In addition to my changes to get it working with JSF 1.2 RI I did

[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?

2007-09-30 Thread kotlusa
You were absolutely correct. I didn't catch that the SMPC was actually a Seam Component and need to be retrieved with @In rather than @PersistenceContext. After making this change I have learned several things and found one that I believe to be a bug. SMPC's only manage entity beans for the

[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?

2007-09-13 Thread kotlusa
I obtain a persistence context like this: @PersistenceContext(type=PersistenceContextType.EXTENDED) | private EntityManager em; | I changed my managed persistence context to match my code (since I use it as em in several places): core:managed-persistence-context name=em |

[jboss-user] [JBoss Seam] - FlushModeType not working in Seam 1.2.1 GA?

2007-09-12 Thread kotlusa
Environment: I have tried this in serveral environments... Seam 1.2.1 JBoss 4.0.5 and 4.2.1 Myfaces (JSF 1.1) and JSF 1.2 RI Windows XP and Solaris 10 HSQLDB and Oracle Scenario: I have a basic situation where I want to edit an entity (and it's related entities on an edit page), go to a

[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?

2007-09-12 Thread kotlusa
I believe that I am using a seam managed persistence context... From my components.xml |core:managed-persistence-context name=entityManager | auto-create=true |persistence-unit-jndi-name=java:/myEntityManagerFactory/ | From my