Is it just me or does anyone else notice that TransporterClient.java seems to lack coherent constructors and create methods.
just today i added this very simple "hack" createTransporterClient method as there seemed to be no way to actually use the feature for LoadBalancing in a proxy manner (and i thought Transporters was all about simple & proxy!).
The total code i added to make Transporter loadbalancing useable:
public static Object createTransporterClient(String locatorURI, Class
targetClass, LoadBalancer loadbalancer) throws Exception {
Object rem = createTransporterClient(locatorURI, targetClass,
true); ((TransporterClient)Proxy.getInvocationHandler(rem)).loadBala
ncer = loadbalancer;
return rem;
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025583#4025583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025583
from the hibernate reference
"
Rolling back the database transaction doesn't put your business objects back into the state they were at the start of the transaction. This means the database state and the business objects do get out of sync. Usually this is not a problem, because exceptions are not recoverable and you have to start over after rollback anyway.
"
so if there is a rollback, you (or I) should throw away the session and create a new one.
can you find how we could fix this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025568#4025568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025568
"tom.baeyens(a)jboss.com" wrote : is it reproducable ? if it is a bug as i expect, should be fairly easy to reproduce.
In the web console inside the EAR with my config modifications, it happens every time. But I don't have a separate test case yet. I'll try and get some more information - specifically I'm trying to figure out if this is specific to the EAR, or JTA, or whether it's just a new bug that was introduced in the transaction code.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025559#4025559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025559