I am running ejb3 on a Jboss 4.0.5 server that accesses data on an iseries.
I am wondering, how one can dynamically set a schema (library) to retrieve table data.
I am able to get data back if I use a single schema inside a data source, but this does not help me. The system is set up, where Table A exists in Schema 1 and Table B exists in Schema 2, and my JSF component needs to access both Table A & B. There also cases where I need to dynamically set the schema for a certain Table.
I do this with JDBC with no problems, but I am not sure with EJB 3 and the persistance API.
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001152#4001152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001152
In Yuan & Heute's book version 12/6/2006 in section 9.4 "Simulate a Multi-page Transaction" ...
method confirm() is annotated @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) and contains a call em.flush().
Per javax.persistence.EntityManager though for method flush() it @throws TransactionRequiredException if there is no transaction.
You see that, TransactionAttributeType.NOT_SUPPORTED would trigger that @throws TransactionRequiredException if there is no transaction, right?
Is section 9.4 speculation (as of 12/6/2006) or is anyone really using it? Any insights?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001131#4001131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4001131