[jboss-user] [jBPM] - Re: some problems with jBpm5.3 using mysql

2013-05-06 Thread dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion Re: some problems with jBpm5.3 using mysql To view the discussion, visit: https://community.jboss.org/message/816229#816229 -- Hi Irshad: Thanks

[jboss-user] [jBPM] - Re: some problems with jBpm5.3 using mysql

2013-05-06 Thread dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion Re: some problems with jBpm5.3 using mysql To view the discussion, visit: https://community.jboss.org/message/816271#816271 -- Hi I already

[jboss-user] [jBPM] - Re: some problems with jBpm5.3 using mysql

2013-05-05 Thread dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion Re: some problems with jBpm5.3 using mysql To view the discussion, visit: https://community.jboss.org/message/816116#816116 -- Hi Firstly thanks a lot

[jboss-user] [jBPM] - some problems with jBpm5.3 using mysql

2013-04-25 Thread dapeng king
dapeng king [https://community.jboss.org/people/dapengking] created the discussion some problems with jBpm5.3 using mysql To view the discussion, visit: https://community.jboss.org/message/810404#810404 -- Hi,everyone! I am a new

[jboss-user] [JBoss Seam] - Re: Scope of EntityManager

2007-12-19 Thread dapeng
Hi, I found the problem and it is a bug in the ajax4jsf in the class org.ajax4jsf.resource.ResourceLifecycle. There in the method processPhaseListeners all PhaseListener except the first 1 will be notified about the after phase. The loop end condition should definitely be i = 0. Under this

[jboss-user] [JBoss Seam] - Re: Scope of EntityManager

2007-12-18 Thread dapeng
anonymous wrote : The way your have everything configured Seam should never be attempting to create a transaction before a conversation is created. | Can you elaborate on this statement. I already posted my configuration. I enabled the seam transaction management and using a layered

[jboss-user] [JBoss Seam] - Re: Scope of EntityManager

2007-12-18 Thread dapeng
Hi, I think I've found the reason for this problem. I think it is a bug in combination with richfaces. The error occurd when serving a request for anonymous wrote : /mywebapp/a4j_3_1_1-SNAPSHOTorg/richfaces/renderkit/html/css/modalPanel.xcss/DATB/eAGLZKr5DAADWQHL which is a resource for a

[jboss-user] [JBoss Seam] - Scope of EntityManager

2007-12-12 Thread dapeng
What is the default scope of a jpa entity manager in Seam? My experience is that it is CONVERSATION. Is that correct? I often get an error message on the console that the transaction can not be started, when I access a page, which contains no component reference in the cnversation scope. The

[jboss-user] [JBoss Seam] - Re: Conversation and Manual Flush Mode

2007-11-23 Thread dapeng
If you have transaction enabled in seam, it will start 1 tx for phase 1 to 5 of JSF lifecycle. Then commits the 1 tx, which should lead to a flush. Then Seam will start a 2 tx for phase 6 of JSF lifecycle and immediately commits that after that. View the original post :

[jboss-user] [JBoss Seam] - Re: Exception handling of PersistenceException

2007-11-23 Thread dapeng
I am using Seam in JSF layer + tx (SeamPhaseListener) and Persistence context management. Spring in the middle layer. and JPA for persistence. My problem is: new JSF request, seam starts tx, jsf layer calls spring, which calls JPA daos. Jpa dao executes several statements, the call returns

[jboss-user] [JBoss Seam] - Re: Custom validator disables hibernate default validator

2007-11-14 Thread dapeng
Jira bug is filed. http://jira.jboss.org/jira/browse/JBSEAM-2245 I would also like to help to push Seam forward. How can I contribute? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4104414#4104414 Reply to the post :

[jboss-user] [JBoss Seam] - Re: SpringTransaction exception handling enhancement require

2007-11-14 Thread dapeng
Done. http://jira.jboss.org/jira/browse/JBSEAM-2244 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4104413#4104413 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4104413 ___

[jboss-user] [JBoss Seam] - Re: Conversation and Manual Flush Mode

2007-11-13 Thread dapeng
Hi, Pete, I know the difference bet. tx-commit and persistence context flush. My question is, whether the manual flush is always the best strategy for a conversation, when I don't want to see modified data in the database permaturely, before the conversation is completed. in Seam examples

[jboss-user] [JBoss Seam] - Re: Conversation and Manual Flush Mode

2007-11-13 Thread dapeng
How will you then design your application? Get rid of the layered architecture? anonymous wrote : You can control the flushmode both through annotations/xml and programatically through PersistenceProvider.instance().setManualFlushMode(em); You have to use a Seam Managed Persistence Context

[jboss-user] [JBoss Seam] - SpringTransaction exception handling enhancement required

2007-11-13 Thread dapeng
Hi, currently if a tx will be rollbacked, the SpringTransaction class kind of swallow the root cause in the following code catch (TransactionSystemException e) | { | log.error(Exception cause:, e); | throw new SystemException(e.getMessage()); | } |

[jboss-user] [JBoss Seam] - Re: Exception handling of PersistenceException

2007-11-13 Thread dapeng
. The exception handling mechanism doesn't allow me to hook in user defined exception handler, so that I can check the exception stack, so some logic. I think the redirect, end-conversation and http error are not enoughj under all circumstances. Like to know your opinion. Dapeng View the original post

[jboss-user] [JBoss Seam] - Re: Exception handling of PersistenceException

2007-11-13 Thread dapeng
The default flush mode of hibernate persistence context is transaction, which means a flush will occur 1) when flush is called manually 2) when tx commits 3) when a query must be executed, which may require a flush For conversation I chose to manually flush the session, so that I can also

[jboss-user] [JBoss Seam] - Conversation and Manual Flush Mode

2007-11-12 Thread dapeng
Hi, I hope that I understand everything in the right way. Seam always starts and commits 2 Tx for each request. By default flush type of AUTO, hibernate entity manager will also commit the 2 txs. (Is there an optimization to handle the second tx for render response phase in a read-only mode?

[jboss-user] [JBoss Seam] - Exception handling of PersistenceException

2007-11-12 Thread dapeng
Hi, Hibernate executes the statements only on flushing, which is most of the time at the end of a tx. It means, any database related exception (foreign key constraint or unique constraint etc.) will be thrown in a deferred fashion(not at the time of invocation, but at the time of tx

[jboss-user] [JBoss Seam] - Custom validator disables hibernate default validator

2007-10-29 Thread dapeng
Hi, on one column (property) of my entity, a unique constraint needs to be defined. To avoiding a duplication of this property, I implemented a custom validator method to check the uniqueness. So far it works fine. But I found out, that the default hibernate validator doesn't work anymore

[jboss-user] [JBoss Seam] - DataSource problem in spring example of Seam 2.0.0cr01

2007-09-24 Thread dapeng
and defined MySqlDS datasource in embedded JBoss. Obviously the application is working with the HSQL datasource defined locally in spring context and not the MySQL one configured in embedded jboss. Is it a bug? What can I do to get rid of the unnecessary data source reference. regards Dapeng

[jboss-user] [JBoss Seam] - Re: TransactionalSeamPhaseListener + Spring @Transactional

2007-08-16 Thread dapeng
anonymous wrote : You only need RC1 or snapshot if you wish to use spring managed local transactions that are automatically created and committed by seam in a faces request. Of if you want to use Seam's @Transactional annotation. Is there a configuration example for using spring managed local

[jboss-user] [JBoss Seam] - Re: Seam managed transaction in Tomcat

2007-08-16 Thread dapeng
anonymous wrote : a) use Seam transaction manager That is the point. I want to use spring instead of seam tx, because the same method will be invoked by non-jsf requests. Is that possible to tell Seam to start local tx managed by spring tx manager? anonymous wrote : declare your datasource in

[jboss-user] [JBoss Seam] - Re: TransactionalSeamPhaseListener + Spring @Transactional

2007-08-16 Thread dapeng
It will be really great if you have working example which uses spring managed local tx for non-JTA environment. A couple of anippets from components.xml, applicationContext.xml and persistence.xml will also be helpful. View the original post :

[jboss-user] [JBoss Seam] - Re: TransactionalSeamPhaseListener + Spring @Transactional

2007-08-15 Thread dapeng
Hi, thanks for your answer. It is the first answer I get for my posts in the seam forum. Maybe I have been asking odd questions. Some points are still not quite clear: 1. I am not able to locate the class TransactionalSeamPhaseListener in Seam 2.0? Has it been replaced by the general

[jboss-user] [JBoss Seam] - Re: Seam managed transaction in Tomcat

2007-08-15 Thread dapeng
I have jboss-embedded-all.jar in WEB-INF/lib View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074415#4074415 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074415 ___ jboss-user

[jboss-user] [JBoss Seam] - Re: Seam managed transaction in Tomcat

2007-08-15 Thread dapeng
Do I have to use embedded-jboss container, if I just want to use the JSF enhancements of Seam and no EJB3 functions? My plan is to have a JPA POJO and service layer completely managed by Spring and a JSF web layer on top of it. Is it necessary to have the embedded-jboss in that case? View the

[jboss-user] [JBoss Seam] - Re: TransactionalSeamPhaseListener + Spring @Transactional

2007-08-15 Thread dapeng
Hi, thank you for your helpful answer. I plan to have a seam independent persistence and service layer using spring + JPA and only use seam in the web layer because of its powerful JSF enhancements. Do I understand it right: 1. It is possible to use spring manged the local transaction instead

[jboss-user] [JBoss Seam] - TransactionalSeamPhaseListener + Spring @Transactional

2007-08-14 Thread dapeng
Hi, can anyone explain me the effect, when I combine Seam TransactionalSeamPhaseListener with Spring @Transctional annotation in my service layer? regards dapeng View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4073849#4073849 Reply to the post : http

[jboss-user] [JBoss Seam] - Seam managed transaction in Tomcat

2007-08-14 Thread dapeng
/ into components.xml to disable the seam managed tx, but to use Spring @Transactional. I got something like Seam Cannot create resource instance. Can anyone explain me how to configure the tomcat to enable the seam managed transaction? Thanx. Dapeng View the original post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Transaction Handling in Seam + Spring

2007-08-09 Thread dapeng
annotation activated, so that one can handle JSF requests for GUI and the other can handle web service requests? Any feedback is appreciated. Dapeng View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4072576#4072576 Reply to the post : http://www.jboss.com/index.html

[jboss-user] [JBoss Seam] - Persistence Strategy for Seam + Spring

2007-08-09 Thread dapeng
? 3.) What is the best way to handle PersistenceContext or HibernateSession? Configure and manage it in Seam? But how can I get them injected into my Spring DAOs without using Seam annotation? Any feedback is appreciated. Dapeng View the original post : http://www.jboss.com/index.html?module