[jboss-user] [JBoss jBPM] - The jbpm does not read my custom hibernate.cfg.xml

2008-09-19 Thread kadlecp
Hello I would like to have my custom hibernate.cfg.xml with my own mappings for my application entitities. I try to deploy process archive from Eclipse. But JBPM does not read my custom hibernate.cfg.xml. Does hibernate.cfg.xml have to be in some folder in process archive? What is structure

[jboss-user] [JBoss jBPM] - End process with running subprocess

2008-08-03 Thread kadlecp
Hello, I have following scenario. I have process that sometimes creates subprocess. The subprocess has several async actions (I call ESB service). The super process checks result value of the subprocess and according that value the superprocess continues. I sometimes want to end superprocess

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-19 Thread kadlecp
Hello Alex, anonymous wrote : | No updates will be ever lost with higher isolation levels. The database will ensure that no two transactions that update the same data item can proceed. | Yes, I agree. But the db will block the second update until transaction with first update commits.

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-19 Thread kadlecp
I think that optimistic locking needs READ COMMITTED isolation level of transactions. Nothing more, nothing less. Pavel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4159414#4159414 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-19 Thread kadlecp
I must rewrite my last but one reply. I was trying it ones more how it behaves and the blocking I was writing about is not truth. Hello Alex, anonymous wrote : | No updates will be ever lost with higher isolation levels. The database will ensure that no two transactions that update the same

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-18 Thread kadlecp
Hello, I was thinking about REPEATABLE_READ isolation level with optimistic locking and it seems to me that it can not work. In docs there is written that anonymous wrote : Non-Repeatable reads are a problem for optimistic locking and therefore isolation level READ_COMMITTED is not enough

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-18 Thread kadlecp
Sorry Ed, the docs is not surely yours. I have spent more time making the multithreaded job executor work, still have problems, so I am a little bit nervous. Sorry, Pavel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4158945#4158945 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-17 Thread kadlecp
Hello, I use Oracle and when I try to set isolation level of data source to TRANSACTION_REPEATABLE_READ I got exception that READ_COMMITTED and SERIALIZABLE are the only allowed isolation levels. When I try to set isolation level of data source to TRANSACTION_SERIALIZABLE it works, but I

[jboss-user] [JBoss jBPM] - Re: job executor explained in a nutshell

2008-06-17 Thread kadlecp
There is written that Oracle offers the read committed and serializable isolation levels, as well as a read-only mode that is not part of SQL92. Read committed is the default. http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10743/consist.htm Can I do something except change of

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-16 Thread kadlecp
Hello Ed, I don't know why but I thought that StaleObjectStateExceptions are errors. But in docs (chapter 6.5) and in JIRA http://jira.jboss.com/jira/browse/JBPM-995 is clearly written that StaleObjectStateExceptions are expected behaviour and it doesn't matter if these exceptions occur.

[jboss-user] [JBoss jBPM] - Hiding StaleObjectStaleException problem

2008-06-15 Thread kadlecp
Hello, when running with more threads, or when suspending running process I receive StaleObjectStaleException. I tried to get rid of them according to docs (chapter 6.5). I set log4j log4j.logger.org.hibernate.event.def.AbstractFlushingEventListener=FATAL With that log4j setting some stack

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-11 Thread kadlecp
Hello, Oracle does not help. I received | 16:35:49,036 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session | org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-11 Thread kadlecp
JBoss has one transaction manager lookup class org.hibernate.transaction.JBossTransactionManagerLookup. | property name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property | and I tried set following possibilities for

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-11 Thread kadlecp
My process definition | ?xml version=1.0 encoding=UTF-8? | | process-definition name=TestProcess | | start-state name=start-state | transition to=ForEachForkActionHandler/transition | /start-state | | node name=ForEachForkActionHandler |

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-11 Thread kadlecp
I was able to simulate the exception in join with fork instead of ForEachForkActionHandler as well. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4157471#4157471 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157471

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-10 Thread kadlecp
Yes, I've read. It seems to me that all JIRAs around this were closed with fixes available in version 3.2.2. I use 3.2.2 and still have problems. Regards Pavel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156973#4156973 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-10 Thread kadlecp
in discussion http://www.jboss.com/index.html?module=bbop=viewtopict=109636 Alex wrote anonymous wrote : | well, next problem, on a join node all incoming branches try to update the parent token, which fails | I think that that's my problem. This code in org.jbpm.graph.node.Join crashes

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-10 Thread kadlecp
I tried jBPM from CVS head as well with same result. I use hsqldb. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4157068#4157068 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157068

[jboss-user] [JBoss jBPM] - Re: Multithreaded JobExecutor with ForEachForkActionHandler

2008-06-10 Thread kadlecp
Ok, I will try to test it on Oracle. If I encounter problems, I will let you know. Regards Pavel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4157075#4157075 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157075

[jboss-user] [JBoss jBPM] - Multithreaded JobExecutor with ForEachForkActionHandler prob

2008-06-08 Thread kadlecp
Hello, I would like to have multihreaded JobExecutor. I allowed more threads by increasing nbrOfThreads attribute in jbpm.cfg.xml. I use http://wiki.jboss.org/wiki/ForEachForkActionHandler I have simple process Start StateMyNodeActionHandler-ForEachForkActionHandler Node-ESB

[jboss-user] [JBoss jBPM] - Re: subprocess problem

2008-06-08 Thread kadlecp
Hello, I think problem is that you did not specified which version of subprocess should be run. First try attributed binding with value late. If it dows not work, try attribute version with specified version id. sub-process name=sub binding=late/ Pavel View the original post :

[jboss-user] [JBoss jBPM] - Re: Splitter vs. fork

2008-05-28 Thread kadlecp
Thank you for reply. I have not tested that but it seems to be what I want from source code. Thank you very much Pavel View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4153902#4153902 Reply to the post :

[jboss-user] [JBoss Messaging] - Re: org.jboss.jms.message.JBossMessage produced null jmsMess

2008-04-30 Thread kadlecp
Hello, I reject this issue, propably it was caused by old version of jboss-messaging-client.jar or not dropping old tables. I have not encountered the exceptions since I fixed the jars and dropped all tables Sorry for the post, my fault Pavel View the original post :

[jboss-user] [JBoss Messaging] - org.jboss.jms.message.JBossMessage produced null jmsMessageI

2008-04-27 Thread kadlecp
Hello, I have checked out JBossMessaging_1_4_0_SP3_CP02 from SVN and I encounter following exception when processing a lot of messages. | 2008-04-24 13:43:49,168 ERROR [org.jboss.messaging.core.impl.ChannelSupport] Failed to handle message | java.lang.NullPointerException | at

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - How to configure hibernate to be able to work concurrently i

2008-03-05 Thread kadlecp
Hello, I have several message driven beans that access db through hibernate. These message driven beans work in scope of one JTA transaction, so they access hibernate concurrently. It seems that hibernate is not configured well because I am getting this exception. | 14:46:44,652 ERROR

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: How to configure hibernate to be able to work concurrent

2008-03-05 Thread kadlecp
My fault, my terrible fault. The exception is thrown by stateless session bean, not mdb. I reused same reference to that stateless session bean by multiple threads (I once did look up in initial context and then reused the reference). The threads then access same instance of entity manager

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate concurrency problem

2008-01-30 Thread kadlecp
Hello, I have two message driven beans and both of them persist entity through entity manager. Both message driven beans work in scope of one shared jta transaction. In this special case is it possible to call EntityManager.persist in those mdbs concurrently or shall I have to synchronize

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Hibernate concurrency problem

2008-01-30 Thread kadlecp
I think that not synchronizing is source of my problems with exception I got. Here is link to them http://forum.hibernate.org/viewtopic.php?t=983130. I will still appreciate I somebody could comment it. Thanks Pavel View the original post :

[jboss-user] [JBoss Messaging] - Re: Queue automatic deployment in MDB

2008-01-11 Thread kadlecp
I forgot to mention that I use JBoss-4.2.1.GA with JBossMessaging-1.4.0.SP3 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119163#4119163 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119163

[jboss-user] [JBoss Messaging] - Queue automatic deployment in MDB

2008-01-11 Thread kadlecp
Hello, I have tried ejb3mdb example and changed message driven's queue name to myQueue. | | @MessageDriven(activationConfig = | { | @ActivationConfigProperty(propertyName=destinationType, propertyValue=javax.jms.Queue), |

[jboss-user] [JCA/JBoss] - getting XADataSource from JNDI

2008-01-03 Thread kadlecp
Hello, I would like to get an object implementing XADataSource interface from JNDI. I use Oracle and XADataSource that I have under JNDI tree is implemented by class: org.jboss.resource.adapter.jdbc.WrapperDataSource. Unfortunately the class does not implement XADataSource interface. I use

[jboss-user] [JBossWS] - Re: asynchronous webservice posible with jboss ?

2007-11-27 Thread kadlecp
Hello, according to my testing, oneway method does not return the thread of control to the calling application prior to executing the actual business method. I have read the spec, but please can somebody know answer these questions? 1. Is it possible to call oneway method in asynchronous

[jboss-user] [JBoss jBPM] - jBPM BPEL examples

2007-10-22 Thread kadlecp
Hello, I have JBossAS 4.2.1.GA, JBossWS-2.0.0.GA and I would like to try jBPM BPEL examples. I have installed (copy jbpm-bpel.sar to jboss deploy directory) jBMP BPEL 1.1.GA from http://repository.jboss.org/jbpm/bpel/1.1.0.GA/lib. But there are no examples. So I have used examples from jBMP

[jboss-user] [JBossWS] - Basic question: EJB based WS vs. Servlet based WS

2007-10-08 Thread kadlecp
Hello, I know that I can implement web service as a stateless session bean or a servlet. I know how to implement them, but I don't know when to use servlet based and when to use EJB based web service implementation. What is the difference between those two approaches? Are there some

[jboss-user] [JNDI/Naming/Network] - Global namespace: Client network restriction

2007-10-05 Thread kadlecp
Hello, Is there any restriction on the client that looks up objects from the global namaspace? I have read this article http://jbossupdate.sadalbari.com/2007/07/ and author says that objects bound in global namaspace are available to any lookup on the SAME network. Is there such restriction

[jboss-user] [JBoss Messaging] - Re: Secure Socket Connection Example question

2007-09-27 Thread kadlecp
I have been trying to solve the problem and my solution is: public class SecureSocketExample extends ExampleSupport { ... public static void main(String[] args) { System.setProperty(SSLSocketBuilder.REMOTING_DEFAULT_SOCKET_FACTORY_CLASS, org.jboss.example.jms.common.MySSLSocketFactory);

[jboss-user] [JBoss Messaging] - ssl accessible queue

2007-09-25 Thread kadlecp
Hello, How shall I configure queue, so that the queue is accessible only by ssl connection. How shall I expose that queue? I would like to have queue authentication based on certificates/keys. I have followed secure-socket example. This example uses special secured connection factory. But my

[jboss-user] [JBoss Messaging] - Re: ssl accessible queue

2007-09-25 Thread kadlecp
Maybe my problem would solve some kide of JNDI security... Some connection factories would be internal (accessble only from local computer) a the only accessible connection factory from outside world would be SecureConnectionFactory from the example So I have to study jndi securiy, I now

[jboss-user] [JBoss Messaging] - Secure Socket Connection Example question

2007-09-21 Thread kadlecp
Hello, I was looking at Secure Socket Connection Example. Is it possible to configure client in a different way, not using system properties? For example is it possible to configure the client (truststore password, truststore path) from some decriptor or using some method parameters? View

[jboss-user] [JBossWS] - Re: WSA sample; response header contains errors

2007-07-23 Thread kadlecp
Hello, I am studding ws addressing right now and I thing I have the solution for the two times clientid. You have to delete line outProps.initializeAsReply(inProps, false) in org.jboss.test.ws.jaxws.samples.wsaddressing.ServerHandler.handleOutbound. The reason is that this line is called

[jboss-user] [JBossWS] - Re: WSA sample; response header contains errors

2007-07-23 Thread kadlecp
Sorry for not mentioning the version. I use JBossWS 1.2.1.GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4066837#4066837 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066837

[jboss-user] [JBossWS] - Re: WS-Security client?

2007-07-19 Thread kadlecp
Hello, my WS-Security client looks like this. It works. public class TestClient { /** * @param args */ public static void main(String[] args) throws Exception { BasicConfigurator.configure();

[jboss-user] [JBossWS] - Re: WS-Security client?

2007-07-19 Thread kadlecp
I use JBossWS 1.2.1.GA With JBossWS 2.0.0.GA. It works as well. But there is one small change in api. Except the line ((ServiceExt)service).setSecurityConfig(securityURL.toExternalForm()); in JBossWS 1.2.1 there is the line

[jboss-user] [JBossWS] - Asynchronous invocations

2007-07-17 Thread kadlecp
Hello, I have tested asynchronous invocations with simple web service and simple standalone client. Everything works fine except that the client's virtual machine does not end its run. Maybe ExecutorService in org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl is not ever shutdown. Is it