[JBoss jBPM] - Re: Don't see running process in JBPM
by DeanDeen
jBPM is properly configured for seam.
This is the code form jboss-service.xml.
<!--
| ==================================================================== -->
| <!-- Transactions -->
| <!-- ==================================================================== -->
|
| <!-- JBossTS JTA -->
| <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
| name="jboss:service=TransactionManager">
| <attribute name="TransactionTimeout">300</attribute>
| <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>
| </mbean>
|
| <mbean code="org.jboss.util.threadpool.BasicThreadPool"
| name="jboss.jca:service=WorkManagerThreadPool">
| <!-- The name that appears in thread names -->
| <attribute name="Name">WorkManager</attribute>
| <!-- The maximum amount of work in the queue -->
| <attribute name="MaximumQueueSize">1024</attribute>
| <!-- The maximum number of active threads -->
| <attribute name="MaximumPoolSize">100</attribute>
| <!-- How long to keep threads alive after their last work (default one minute) -->
| <attribute name="KeepAliveTime">60000</attribute>
| </mbean>
|
| <mbean code="org.jboss.resource.work.JBossWorkManager"
| name="jboss.jca:service=WorkManager">
| <depends optional-attribute-name="ThreadPoolName">jboss.jca:service=WorkManagerThreadPool</depends>
| <depends optional-attribute-name="XATerminatorName">jboss:service=TransactionManager</depends>
| </mbean>
|
| <!--
| | The CachedConnectionManager is used partly to relay started UserTransactions to
| | open connections so they may be enrolled in the new tx.
| -->
| <mbean code="org.jboss.resource.connectionmanager.CachedConnectionManager"
| name="jboss.jca:service=CachedConnectionManager">
| <depends optional-attribute-name="TransactionManagerServiceName">jboss:service=TransactionManager</depends>
|
| <!-- Enable connection close debug monitoring -->
| <attribute name="Debug">true</attribute>
|
| </mbean>
Does it help you? Or where should I look for this.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222598#4222598
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222598
15 years, 9 months
[JBossMQ] - How can we change DefaultJMSProvider for an MDB?
by sboddapati
Hi,
I am getting an exception when my MDB gets deployed.
It is trying to use DefaultJMSProvider. Can we change the default JMS provider to Websphere MQ JMS provider?
>From the logs default user is null. Should we have user/pwd in configuration?
Here is the log:
Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@422a422a(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)3fd43fd4 destination=queue/toILR isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
java.lang.ClassCastException: com.ibm.mq.jms.MQQueue incompatible with org.jboss.mq.SpyDestination
at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:110)
at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:128)
at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:289)
at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:89)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:585)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:323)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
Thanks
Siva
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222583#4222583
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222583
15 years, 9 months
[Persistence, JBoss/CMP, Hibernate, Database] - JPQL: "LIKE" comparison between a numeric column and a Strin
by negora
Good morning:
I'm still a rookie with the Java Persistence API and the Java Persistence Query Language, and have a doubt about the implementation of the LIKE operator. On SQL, I use this operator to compare not only text strings between the each other but also a numeric value to a text pattern. I've checked and proved that I can do exactly the same in JPQL. Something like this:
SELECT s FROM Student s WHERE s.age LIKE '%5'
Being "s.age" a column of type Integer, I would get every student whose age ends in a 5. For example: 5, 15, 25, 35... Everything is OK.
I need to do exactly the same but in a case in which the string to compare with is not specified literally but with an input parameter which is of type String:
SELECT s FROM Student s WHERE s.age LIKE :age
However, this returns a failure because it expects the named parameter "age" to be of the same type that the column, thus an Integer. Is there any way to avoid that?
By now I've found a workaround which I didn't expect to work, sincerely... I wrapped the "a.age" column with the function TRIM in order to force the left term to be a String (meaning an implicit casting). I didn't think that it could work, because the documentation from Sun states that the parameter of TRIM must be of type String. However, this works:
SELECT s FROM Student s WHERE TRIM (s.age) LIKE :age
This also works using CONCAT, but not with UPPER or LOWER. Is there a "cleaner" way to achieve the same target?
I don't know if this is a problem from the implementation of JBoss or it's caused by the Java EE specifications. Just in case that it's a known issue, I'm using JBoss v. 4.2.2 GA. I would love using the version 5.x, but we began this project prior to the release of that version and still are messed up with lots of stuff.
Thank you very much for your help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222574#4222574
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222574
15 years, 9 months