[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-17 Thread [EMAIL PROTECTED]
Ask on EJB3 forum.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129933
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-10 Thread gsegura
Ok, perhaps the correct question is:

Does EJB3 persistence honors this aspects of Entity Bean Life Cycle (these 
behaviour is described in 
http://www.ubookcase.com/book/Sams/JBoss.4.0.The.Official.Guide/0672326485/ch05lev1sec4.html):

anonymous wrote : With the default configuration of JBoss there is only one 
active instance of a given entity bean in memory at one time

and the locking policy defined in each container configuration in 
standardjboss.xml:

org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock


I think if this two pieces are honored, then all I have to assure is the proper 
container-configuration (Standard CMP 2.x EntityBean) is in effect on my entity 
bean, what do you think??

please keep in mind by any means I'm not suggesting any disrespect via 
disinformation. I'm just kindly asking for some insight about this pessimistic 
locking issue, which at some point one self have to face.

regards,


PS: The reason I formulate the question as that is because the book Pro EJB3 
JPA says the JPA doesn't support a portable way to do pessimistic locking.




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-08 Thread gsegura
The problem is I don't use hibernate directly but through JPA, besides the 
hibernate's documentation says:
anonymous wrote : Hibernate will always use the locking mechanism of the 
database, never lock objects in memory!

But can't find description of behaviour when some thread tries to access an 
already locked row. It willl be blocked? an exception thrown?

Do you think is it possible to achieve this at the object level? by means of 
locking the entity bean itself? 

It would be great to do this via some stablished and robust api, the previously 
cited documentation (Jboss 4.0 official guide) mentions something about it, but 
not in a useful hands-on way (at least to my taste).

Otherwise, is the only option left to implement this ?
http://www.martinfowler.com/eaaCatalog/pessimisticOfflineLock.html


best regards

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127981
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: serializing access to resource

2008-02-08 Thread [EMAIL PROTECTED]
I think I'd try pessimistic (db) locking.  I'd suggest asking in the Hibernate 
forums to find out the best way to get the type of locking you want.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127944
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user