[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread akazakov
Which version of JBoss Tools and what Application Server do you use?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265654#4265654

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Ordered Redelivery of Messages

2009-11-14 Thread glutters
Hi,
we are developing a jms application and we need of messages reordering when an 
exception occour, such as when ack messages are lost. Jboss jms implementation
take care of ordered redelivery of messages, as Weblogic do? 
Thanks in advance.
Gianfranco.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265660#4265660

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265660
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: how can i reuse jbpm-console on JBPM4.2

2009-11-14 Thread kukeltje
best way to start is to have a look at the code of the console and see kow it 
uses the jbpm api

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265663#4265663

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265663
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Jbpm 4 setup on existing JBOSS server

2009-11-14 Thread kukeltje
why use 4.0.1 CR1? it does not even exist. so I'd start with 4.2

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265664#4265664

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265664
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: jBPM 4.1 Problems running the Demo package

2009-11-14 Thread kukeltje
looks like alow level db error that has nothing to do with jBPM. try searching 
with the real error on e.g. google

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265665#4265665

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265665
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI and Naming] - Discovery of JCA ConnectionFactory without resource-ref conf

2009-11-14 Thread maffeis
Hi

I have a JBoss 5.1 server with some JCA connectory deployes as RAR files.
Each connector has its -ds.xml file holding the jndi-name declaration of the 
connector.

Now I can load my ConnectionFactories from a web application (Servlet in a 
WAR), if I put a resource-ref declaration into the web.xml file.

Is there a way of making such a JNDI lookup possible from a Servlet, without 
adding a resource-ref declaration to the web.xml file? Meaning, I would like 
my Servlet to dynamically discover the existence if any deployed RAR connector, 
without having to declare it in web.xml.

I tried listing the JNDI context but my ConnectionFactory only appears if I 
declare it in web.xml.

Thanks for your advice!

Silvano

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265666#4265666

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Tasks assignment jbpm 4.1 or 4

2009-11-14 Thread kukeltje
you have to edit this in the xml for now

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265667#4265667

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: takeTask() race condition

2009-11-14 Thread kukeltje
I think eventually jBPM should be able to cope with this situation and return a 
more batural error like task already taken by 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265668#4265668

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265668
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Database configuration

2009-11-14 Thread kukeltje
if you are lucky that is indeed all you  need to do and change the driver as 
well. It still is Oracle you know...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265670#4265670

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265670
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread mjstrong
JBoss Seam Tools 3.0.2.v2009151014R-H192-GA
JBoss 5.1.0 GA
Eclipse 3.4.2


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265672#4265672

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265672
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - facing issues while assigning parallel task in jbpm using fo

2009-11-14 Thread anjaliaggster

Hi,
We creating an application n structs and hibernate and we also using jbpm as a 
workflow engine i have a query.
I've created a workflow process, but I'm unable to proceed further. 

Requirement: 
1) Run Two Parallel Tasks  
2)In Both sides means LHS and RHS I have a couple of nodes before join them. 
but  flow got stuck to first node of both LHS and RHS for solving this I 
have used Super state so my problem is solved now in LHS flow is moving to next 
flow but now it won't able to initiate RHS flow. 
Please help me to resolve my issue. 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265674#4265674

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265674
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Database configuration

2009-11-14 Thread saraswati.santanu
I believe thats all you need to do. I did use Jbpm3.2 with Oracle 11g without 
any special effort. Hopefully for Jbpm4 also it will not be much different.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265675#4265675

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265675
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: facing issues while assigning parallel task in jbpm usin

2009-11-14 Thread saraswati.santanu
If you can give a snippet of the jpdl it might be easier to understand what is 
going wrong.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265676#4265676

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265676
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - How can I find out the in-process message count for Queues i

2009-11-14 Thread rbenko
In JBossMQ, QueueMBean had a getInProcessMessageCount().  However, I haven't 
found an equivalent to it in JBoss Messaging.  Can anyone help?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265678#4265678

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265678
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence] - JPA Locale Mapping

2009-11-14 Thread garethwebbley
I am trying to use JPA where possible but I have a class containing a Locale 
which I would like to map to (and from) a String in the correponding table. I 
cannot seem to find a way to do this using standard JPA - can anyone tell me a 
way to do this please?

From what I can find from googling I think I need to use a Hibernate Tuplizer 
- is this correct? However I can't seem to find any good examples of a 
Tuplizer that I can adapt for my purposes. Does anybody know of any good 
examples please?

Thanks in advance.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265681#4265681

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265681
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - How do I define attributes in a service bean?

2009-11-14 Thread rnicholson10
Any methods I define in my Management Interface are displayed as operations. 
However I don't know how to define attributes.

I have tried annotating the methods in question with @ManagementAttribute but 
they do not appear as attributes in the JMX console.

Furthermore, how do I supply a description to the arguments of an operation or 
attribute?

Thanks for your help.

Ross

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265684#4265684

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265684
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: takeTask() race condition

2009-11-14 Thread sebastian.s
Maybe you should create a JIRA issue asking the developers to investigate this.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265688#4265688

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265688
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: jboss 5.1 runtime server is not doploying ear

2009-11-14 Thread marcilio.grisotto
Sorry for the bad english on the previous message and for revisiting this 
subject after such a long time. 

I downloaded JBT 3.1.0 - M4, and tried again to publish a simple Seam Web 
Application using JBoss 5.1 Runtime. 

The application does not get publish. It is show as synchronized under Jboss 
5.1 Runtime but the web application is not available: The requested resource 
(/teste) is not available.

When I change the runtime to Jboss 4.2.3 it works perfectly.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265689#4265689

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265689
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread akazakov
Could you check if the application is deployed to the server correctly?
Please open JBoss Server View and select Explore in pop-up menu for 
your-seam-project-name. Is there jboss-seam.jar?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265692#4265692

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265692
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Jbpm 4.2 how to enable variable history

2009-11-14 Thread xalperte
Buff, I'm looking inside the HistoryVariableImpl class and it only maintains a 
String representation of the original variable value, its not enough, to be 
functional the HistoryVariableImpl should maintain the exact value and type of 
the original variable.

I think the better approach is not delete the process instances when they are 
ended, and extends the ProcessInstanceQuery with the ended flag. This could be 
a short term solution. Why do you deletes the instances when it were ended? 
because the performance? the number of records in the tables?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265695#4265695

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265695
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread mjstrong
The jboss-seam.jar is not there; however there are many jboss-seam-*.jar files 
where * is a variety of things such as ui, mail. ioc, etc.

The jboss-seam.jar is in my EAR project:

C:\Users\Mike\workspace342\RaisedInAmerica-ear\EarContent.

I did not explicitly put any jar anywhere.  This is where they fell from the 
project generation.

I take it I should move that jar over to the EJB project, right?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265700#4265700

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265700
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: takeTask() race condition

2009-11-14 Thread kukeltje
no, discuss this on the dev forum first

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265701#4265701

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265701
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread mjstrong
No, sorry.  It should not go in the EJB project.  It's just some deployment 
problem, I think.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265702#4265702

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265702
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: facing issues while assigning parallel task in jbpm usin

2009-11-14 Thread kukeltje
not only a jpdl snippet, a full testcase as described in the sticky post in 
this forum helps the most

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265703#4265703

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265703
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: Jbpm 4.2 how to enable variable history

2009-11-14 Thread kukeltje
don't draw conclusions... the jira issue is about fixing history stuff. We 
*know* there are issues. And they (mostly) will be fixed in the 4.3 release.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265704#4265704

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265704
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools Users] - Re: SeamResourceServlet and SeamListener Problem

2009-11-14 Thread mjstrong
FOUND THE PROBLEM!

If you right click on the server and go to Add and Remove Projects, it showed 
that it had only included the WAR and data source.  The EAR was not included.

I removed all, then added back ALL, and now it's fine.

Thanks, for helping me!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265705#4265705

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265705
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Re: Can't acquire lock in 0 ms

2009-11-14 Thread rs1050
apologies, the log was too long for forum. This is shorter version before the 
exception:


  | Nov 14 18:49:13,194 [main] TRACE 
EvictionInterceptor:registerEvictionEventToRegionManager:254 - Registering 
event ADD_ELEMENT_EVENT on node /hphRTp4/0:0_2
  | Nov 14 18:49:13,194 [main] TRACE 
TcpDelegatingCacheLoader:invokeWithRetries:129 - About to invoke operation 
protected java.lang.Object 
  | 
org.jboss.cache.loader.TcpDelegatingCacheLoader._put(org.jboss.cache.Fqn,java.lang.Object,java.lang.Object)
 throws java.lang.Exception
  | 
  | Nov 14 18:49:13,192 [EvictionTimer-0] TRACE LRUAlgorithm:shouldEvictNode:64 
- No idle or max time limit!
  | Nov 14 18:49:13,197 [EvictionTimer-0] TRACE LRUQueue:getNumberOfNodes:172 - 
LRUQUeue.size() = 1
  | Nov 14 18:49:13,197 [EvictionTimer-0] TRACE 
RegionImpl:processEvictionQueues:127 - Processing eviction queue for region 
[/hphRTp3].  Queue size is 2
  | Nov 14 18:49:13,197 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:process:142 - process(): region: /hphRTp3
  | Nov 14 18:49:13,197 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:processQueues:223 - processed 2 node events
  | Nov 14 18:49:13,197 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:emptyRecycleQueue:522 - Recycle queue is empty
  | Nov 14 18:49:13,199 [EvictionTimer-0] TRACE LRUAlgorithm:shouldEvictNode:64 
- No idle or max time limit!
  | Nov 14 18:49:13,199 [EvictionTimer-0] TRACE LRUAlgorithm:shouldEvictNode:64 
- No idle or max time limit!
  | Nov 14 18:49:13,199 [EvictionTimer-0] TRACE LRUQueue:getNumberOfNodes:172 - 
LRUQUeue.size() = 3
  | Nov 14 18:49:13,199 [EvictionTimer-0] TRACE 
RegionImpl:processEvictionQueues:127 - Processing eviction queue for region 
[/hphMTp4].  Queue size is 0
  | Nov 14 18:49:13,200 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:process:142 - process(): region: /hphMTp4
  | Nov 14 18:49:13,200 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:processQueues:223 - processed 0 node events
  | Nov 14 18:49:13,200 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:emptyRecycleQueue:522 - Recycle queue is empty
  | Nov 14 18:49:13,200 [EvictionTimer-0] TRACE LRUQueue:getNumberOfNodes:172 - 
LRUQUeue.size() = 0
  | Nov 14 18:49:13,201 [EvictionTimer-0] TRACE 
RegionImpl:processEvictionQueues:127 - Processing eviction queue for region 
[/hphMTp1].  Queue size is 0
  | Nov 14 18:49:13,201 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:process:142 - process(): region: /hphMTp1
  | Nov 14 18:49:13,201 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:processQueues:223 - processed 0 node events
  | Nov 14 18:49:13,201 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:emptyRecycleQueue:522 - Recycle queue is empty
  | Nov 14 18:49:13,202 [EvictionTimer-0] TRACE LRUQueue:getNumberOfNodes:172 - 
LRUQUeue.size() = 0
  | Nov 14 18:49:13,203 [EvictionTimer-0] TRACE 
RegionImpl:processEvictionQueues:127 - Processing eviction queue for region 
[/rdp5].  Queue size is 0
  | Nov 14 18:49:13,203 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:process:142 - process(): region: /rdp5
  | Nov 14 18:49:13,203 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:processQueues:223 - processed 0 node events
  | Nov 14 18:49:13,203 [EvictionTimer-0] TRACE 
BaseEvictionAlgorithm:emptyRecycleQueue:522 - Recycle queue is empty
  | Nov 14 18:49:13,204 [EvictionTimer-0] TRACE LRUQueue:getNumberOfNodes:172 - 
LRUQUeue.size() = 0
  | 
  | Nov 14 18:49:13,206 [main] TRACE 
TcpDelegatingCacheLoader:invokeWithRetries:131 - Completed invocation of 
protected java.lang.Object 
org.jboss.cache.loader.TcpDelegatingCacheLoader._put(org.jboss.cache.Fqn,java.lang.Object,java.lang.Object)
 throws java.lang.Exception
  | Nov 14 18:49:13,207 [main] TRACE ReadCommittedNode:commitUpdate:136 - 
Updating node [/hphRTp4/0:0_2].  deleted=false valid=true changed=true 
created=false
  | Nov 14 18:49:13,208 [main] TRACE MVCCLockingInterceptor:cleanupLocks:374 - 
Releasing lock on [/hphRTp4/0:0_2] for owner Thread[main,5,main]
  | 
  | Nov 14 18:49:13,208 [main] TRACE MVCCLockManager:unlock:145 - Attempting to 
unlock /hphRTp4/0:0_2
  | Nov 14 18:49:13,208 [main] DEBUG 
InvalidationInterceptor:handleWriteMethod:244 - Is a CRUD method
  | Nov 14 18:49:13,209 [main] DEBUG 
InvalidationInterceptor:invalidateAcrossCluster:381 - Cache 
[192.168.1.104:61141] replicating InvalidateCommand{fqn=/hphRTp4/0:0_2}
  | 
  | Nov 14 18:49:13,209 [main] TRACE InvalidationInterceptor:replicateCall:140 
- Broadcasting call InvalidateCommand{fqn=/hphRTp4/0:0_2} to recipient list null
  | Nov 14 18:49:13,213 [main] TRACE InvalidationInterceptor:replicateCall:156 
- Setting call recipients to null since the original list of recipients passed 
in is null.
  | Nov 14 18:49:13,214 [main] TRACE RPCManagerImpl:callRemoteMethods:736 - 
callRemoteMethods(): valid members are null methods: 
ReplicateCommand{cmds=InvalidateCommand{fqn=/hphRTp4/0:0_2}} Using OOB? false 
modeToUse: 2
  | Nov 14 18:49:13,215 [main] TRACE 
CommandAwareRpcDispatcher:invokeRemoteCommands:205 - 

[jboss-user] [jBPM Users] - Re: takeTask() race condition

2009-11-14 Thread saraswati.santanu
This is a nice feature to have, specially if you need to show something on the 
UI.

But, this will be very difficult to achieve as well. With FlushMode.Auto, 
hibernate can do a flush at any point it thinks suitable. So when you call 
takeTask method, hibernate may not complain at all, but at some later point 
it, when it tries to clear the action queue, then it will complain. So you 
never know when this exception comes.

One strategy for this might be is to have an exception translator at the 
DBSession level. But that will be almost as generic as Hibernate exception 
translator. So whether the Task is taken by somebody or something else happened 
to the task will be difficult to decide.

But the flip side of this is, a generic exception is caught to give some 
message which is more context specific then re-thrown - this will also pollute 
the exception stack trace a bit. As a developer, who is using Jbpm API, I wont 
like that to happen. I personally would prefer to deal in 
StaleObjectStateException and inspect what is stale and why. Custom exception 
on top of that may make finding to root cause a bit difficult for a developer.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265708#4265708

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265708
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - [jBPM 4.2] Problem completing a Task

2009-11-14 Thread xalperte
Error when we try to complete a Task and the next activity is also a Task 
Activity with the notification tag set.

Something wrong happens in the MailListener during the process.

Without the  tag the test runs without errors.

I'm using MySQL (with org.hibernate.dialect.MySQLInnoDBDialect configured).

The process definition is this:


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | process description=This is a test process to test: task, swimlines, 
reminder/notifications, timers. name=Test Websale 
xmlns=http://jbpm.org/4.2/jpdl;
  |swimlane candidate-groups=sales name=Sales Representative/
  | 
  |   start g=265,19,48,48 name=Create new web sale order
  | transition g=14,-11 name=Start web sale to=Evaluate web order/
  |   /start
  | 
  |   task form=tasks/form.evaluate.xhtml g=213,110,153,57 name=Evaluate 
web order swimlane=Sales Representative
  | transition g=14,-10 name=More info needed to=Fix web order data/
  |   /task
  | 
  |   task assignee=rex form=tasks/form.fix.xhtml g=207,218,169,43 
name=Fix web order data
  | notification /
  | transition g=11,-10 name=End Process to=To end/
  |   /task
  | 
  |   end g=270,303,48,48 name=To end state=completed/
  | 
  | /process
  | 

And the Test Case used to force the error is this:


  | public class SimpleTestCase extends JbpmTestCase {
  | 
  | String deploymentId;
  | 
  | String salesDept;
  | String clients;
  | 
  | protected void setUp() throws Exception {
  | super.setUp();
  | 
  | // create identities
  | salesDept = identityService.createGroup(sales);
  | clients = identityService.createGroup(clients);
  | 
  | identityService.createUser(joe, Joe, Smoe, j...@smoe);
  | identityService.createMembership(joe, salesDept, sales-repre);
  | 
  | identityService.createUser(rex, Rex, Frez, r...@frez);
  | identityService.createMembership(rex, clients, client);
  | 
  | // deploy process
  | deploymentId = repositoryService.createDeployment()
  | .addResourceFromClasspath(test-simple-websale.jpdl.xml)
  | .deploy();
  | 
  | // the tearDown of the parent class will dispose the registered 
deployments  
  | registerDeployment(deploymentId);  
  | }
  | 
  | protected void tearDown() throws Exception {
  | 
  | // delete identities
  | identityService.deleteUser(joe);
  | identityService.deleteUser(rex);
  | 
  | identityService.deleteGroup(salesDept);
  | identityService.deleteGroup(clients);
  | 
  | super.tearDown();
  | }
  | 
  | public void testWebSaleProcess() throws Throwable {
  | // Starting a new instance of the process
  | ProcessInstance instance = 
executionService.startProcessInstanceByKey(Test_Websale);
  | String processInstanceId = instance.getId();
  | 
  | // Looking for the group tasks
  | ListTask taskList = taskService.findGroupTasks(joe);

  | Task task = taskList.get(0);
  | 
  | // lets assume that joe takes the task
  | taskService.takeTask(task.getId(), joe);  
  | 
  | // looking for the new personal task 
  | taskList = taskService.findPersonalTasks(joe);
  | task = taskList.get(0);
  | 
  | // Completing Task. 
  | taskService.completeTask(task.getId());
  | }
  | 
  | }
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265710#4265710

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265710
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: how can i reuse jbpm-console on JBPM4.2

2009-11-14 Thread optixpro
thank for help. ^^ 

but i already try to understand how it work in gwt before but my skill in 
javascript is too low. the point is i want to create bpm console for my 
application in best easy way i can. i saw this example 
http://www.jboss.org/feeds/view/jbossjbpm
it can make sense to me what they call what thay get what mapping

but in for this  
apache-tomcat-6.0.20\webapps\jbpm-console\org.jboss.bpm.console.Application

i can't any find some idea from this can you give me someway thanksyou

ps. sorry for english skill

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265712#4265712

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265712
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Web Services Users] - JBoss 5.1.0 Apache Axiom

2009-11-14 Thread rams.rapo
Hi,

I've been using SAAJ for a long time with spring webservices. 
Application is deploying fine on jBoss 5.1.0.GA with jdk 1.6. 

Recently read about the improvements with Apache Axiom and wanted to try it 
out. 

Just wanted to hear from group if anyone has tried this before and is it 
suggestable to go to production with Axiom instead of SAAJ?

Thanks,
Rams


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265714#4265714

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265714
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - jbpm.wire.bindings.xml

2009-11-14 Thread rams.rapo
Hi,

I had to update jbpm.wire.bindings.xml to customize Task Activity and had it in 
my src/main/resources folder under a module. When i try to deploy it as ear 
file on jboss, it takes the jbpm.wire.bindings.xml present in jbpm-pvm jar and 
not the one i have it in my local. I tried putting it in various folders but 
ain't any luck so far. 

I notice WireParser having references to two xml files but it seems to be 
picking up from inside of it's own jar rather than on the classpath

Any workarounds? It's been long time since i had classpath issues :)



  |   public static final String[] DEFAULT_WIRE_BINDING_RESOURCES = new 
String[]{
  | jbpm.wire.bindings.xml,
  | jbpm.user.wire.bindings.xml
  |   }; 
  | 
  | My Env: 
  | Jbpm 4.0
  | JBoss 5.1.0.GA
  | 


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265716#4265716

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265716
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Re: jbpm.wire.bindings.xml

2009-11-14 Thread rams.rapo
I wish i could inject wire bindings through spring.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4265717#4265717

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4265717
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user