[jboss-user] [Installation, Configuration & DEPLOYMENT] - Classloader isolation problems in JBoss AS 4.2.3.GA

2009-03-20 Thread sonicfab
Hi. I am having some serious classloader-related problems when deploying an EAR on JBoss AS 4.2.3. The EAR contains a WAR and a lib directory at the root of the EAR contains all the librairies. I have not defined a jboss-app.xml file and therefore no EAR-specific loader repository, BUT I have sw

[jboss-user] [JBossCache] - startService() in Local (non-replicated) mode ?

2007-03-22 Thread sonicfab
Hi all. I have a distributed architecture which is such that I don't need cache replication. Thus I plan to use the plain TreeCache and not PojoCache. My question is : in non-replicated mode, do I need to call the startService() method or do I just need to instantiate a TreeCache and that's it ?

[jboss-user] [JBossCache] - Starting a cache instance at application startup

2007-03-22 Thread sonicfab
Guys, can you give me advice on the good way(s) to start a cache instance when on application startup (in my case on Weblogic) ? My idea is this : a CacheManager singleton is instanciated by the classloader (or by the Spring BeanFactory, whichever), the TreeCache instance -myCache- is an attrib

[jboss-user] [JBossCache] - PojoCache or TreeCache if no replication ?

2007-03-22 Thread sonicfab
Are there any advantages in using PojoCache instead of TreeCache if no replication is required ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4030692#4030692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4030692 _

[jboss-user] [JBossCache] - Transactions in Local mode

2007-03-26 Thread sonicfab
Hi. I'm using TreeCache 1.4.1 with no replication. I understand that each calling thread will start an internal transaction, even if there is no transactional context in the client. - Does that mean that I need to configure a TransactionManager in the cache config file ? - Is there any way of

[jboss-user] [EJB 3.0] - EJB3 MDB lifecycle problem when reading a message

2008-06-15 Thread sonicfab
Hi. I'm using JBoss 4.2.2.GA with EJB3 MDBs and Spring to inject the MDB's business logic. I'm getting an error related to the MDB's lifecyle. Here's my MDB code : package com.acme.impl; | | | import javax.annotation.Resource; | import javax.ejb.ActivationConfigProperty; | import javax

[jboss-user] [Messaging, JMS & JBossMQ] - EJB3 MDB error when reading a message in JBossMQ

2008-06-15 Thread sonicfab
Hi. I'm using JBoss 4.2.2.GA with EJB3 MDBs and Spring to inject the MDB's business logic. I'm getting an error related to the MDB's lifecyle. Here's my MDB code : package com.acme.impl; | | | import javax.annotation.Resource; | import javax.ejb.ActivationConfigProperty; | import javax

[jboss-user] [JBoss Messaging] - JBoss Messaging and Spring Message Listener Container

2008-06-16 Thread sonicfab
Hi. I am considering using Spring's Message Listeners with JBoss Messaging (as an alternative to MDBs). Can anyone tell me if it actually works ? On the JBM wiki there is a warning about using JmsTemplates but there is no mention of the Message Listeners. View the original post : http://www.jb

[jboss-user] [JBoss Messaging] - JNDI name of JCA-managed connection factory (non-clustered)

2008-06-18 Thread sonicfab
Hi. I would like to benefit from the JCA-managed connection factory's ability to cache connections. In a non-clustered configuration, what is the JNDI name of that connection factory ? Does ConnectionFactory map to it ? Should I use the same JNDI name inside JBoss and in a standalone client ? V

[jboss-user] [JBoss Messaging] - Best practice for managing connections in JMS Publishers

2008-06-18 Thread sonicfab
Hi all. Could I please get some pointers on best practices for managing connections in JMS publishers that send messages to JBoss Messaging ? I read on the Wiki that the JCA-managed connection factory caches connections, so is it ok to simply open and close a connection for each message ? Or shou

[jboss-user] [JBoss Messaging] - Re: Best practice for managing connections in JMS Publishers

2008-06-18 Thread sonicfab
Thanks Clebert. How do I make sure I am using that JCA based connection factory ? Is its JNDI name java:/JmsXA ? Does the JNDI name ConnectionFactory map to it ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159015#4159015 Reply to the post : http://www.jbo

[jboss-user] [JBoss Messaging] - Re: Best practice for managing connections in JMS Publishers

2008-06-19 Thread sonicfab
I did check out the Wiki AND the JBM documentation, but there are still some open points for me. The page that discusses the issue of JmsTemplates and connection open/close says to use the JCA-managed connection factory with JNDI name java:/JmsXA. (http://wiki.jboss.org/wiki/JBMSpringJMSTemplateN

[jboss-user] [EJB 3.0] - Failed to acquire the pool semaphore

2008-08-02 Thread sonicfab
We are using EJB3 MDBS on JBoss 4.2.2GA, and we keep getting the following exception. Any ideas ? 2008-08-02 16:41:43,033 124733 DEBUG [org.springframework.jms.listener.DefaultMessageListenerContainer] (listenerContainer-1:) Consumer [EMAIL PROTECTED] of session [EMAIL PROTECTED] did not rece

[jboss-user] [JBoss jBPM] - How to programmatically set a timer on a workflow

2007-09-07 Thread sonicfab
Hi. I am a complete jBPM newb, so forgive me if this question has been answered before. I would like to know how to programmatically tell jBPM to set a timer on a particular instance of a workflow, so that the process will resume at a specified date. I am using Spring Modules, and know how to r

[jboss-user] [JBoss jBPM] - Re: How to programmatically set a timer on a workflow

2007-09-07 Thread sonicfab
Could you please be more specific, with some URLs or the useful classes in the javadoc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082202#4082202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082202 ___

[jboss-user] [JBoss jBPM] - Obtain Timer properties from ContextInstance variables

2007-09-18 Thread sonicfab
Hi guys. Is it possible to set a node's timer properties (e.g. duedate, repeat, etc.) by getting them from the process instance's context variables ? Is this something that can be done with jPDL's expression language ? If so, could you give me pointers on the correct EL syntax for that ? Thanks.

[jboss-user] [JBoss jBPM] - Help needed : missing scheduler while testing a timer

2007-09-20 Thread sonicfab
Hi. I'm testing a simple process with one node and a timer at that node, and I get the following error : | 16:34:23,466 INFO [STDOUT] 16:34:23,466 ERROR [GraphElement] action threw exception: service 'scheduler' unavailable | org.jbpm.svc.JbpmServiceException: service 'scheduler' unavailabl

[jboss-user] [JBoss jBPM] - Re: Help needed : missing scheduler while testing a timer

2007-09-20 Thread sonicfab
OK, problem solved, the DBSchedulerServiceFactory definition was missing in the jbpm.cfg.xml file. I now get another problem : | 2007-09-20 18:05:48,493 INFO [STDOUT] 18:05:48,493 ERROR [JobSession] org.hibernate.TransientObjectException: object references an unsaved transient instance - sa

[jboss-user] [JBoss jBPM] - Re: Problem with timers (org.jbpm.JbpmException: couldn't ex

2007-09-20 Thread sonicfab
See my post here (my reply, not the original issue) : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=119241 I think I'm getting the same problem as you are. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086786#4086786 Reply to the post : http://ww

[jboss-user] [JBoss jBPM] - Timer problem

2007-09-21 Thread sonicfab
I am testing a very simple process containing only one node, in which a basic timer is declared. The process is called by the doGet method of a basic servlet : | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { |

[jboss-user] [JBoss jBPM] - Re: Help needed : missing scheduler while testing a timer

2007-09-21 Thread sonicfab
OK, I created the new topic. I hope that I will get more useful answers than this one. "kukeltje" wrote : Fabian, | | New problems belong in new topics | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087131#4087131 Reply to the post : http://ww

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

2007-09-21 Thread sonicfab
It's really simple. All the timer is supposed to do is wait for one minute. I just deploy a servlet so that I can use my browser to signal the process instance. You have the servlet's doGet method code above. Nothing else is needed, because it encapsulates the process definition in XML. What I c

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

2007-09-21 Thread sonicfab
PROBLEM SOLVED : Apparently jBPM cannot use a timer when the corresponding process definition has only been instantiated in memory from an XML definition but has not been persisted (at least in the Hibernate L1 cache if not in the DB). When I add this call after instantiating the process defini

[jboss-user] [JBoss jBPM] - Problem using expression language in a process definition (T

2007-09-24 Thread sonicfab
I'd like to use jBM's expression language so that a Timer can obtain its duedate parameter from the ContextInstance of the process. I've tried this : | | | | | | | | | | | and I get an error message telling me that my XML i

[jboss-user] [JBoss jBPM] - Re: Problem using expression language in a process definitio

2007-09-24 Thread sonicfab
"kukeltje" wrote : correct... not all params can be EL. The duedate e.g. can't. File a jira issue for thisor better, look in the source of jbpm to see how to achieve this (it is realy easy) I appreciate your answer, but also find it somewhat weird : if you know the answer, and if it is inde

[jboss-user] [JBoss jBPM] - Re: Problem using expression language in a process definitio

2007-09-25 Thread sonicfab
Ok I've looked into it a bit, and it seems that the quickest way to achieve this, without modifying the jPDL schema, is to override the read(Element actionElement, JpdlXmlReader jpdlReader) method of class org.jbpm.scheduler.def.CreateTimerAction. The overriden method can then call the org.jbpm

[jboss-user] [JBoss jBPM] - Re: Problem using expression language in a process definitio

2007-09-26 Thread sonicfab
Why do I talk about modifying the schema ? Well, I had a look at the jpdl-3.2 schema, and apparently all the objects that can handle EL have a "expression" attribute, whereas objects that can't don't seem to have one. For example, the action element : | | | |

[jboss-user] [JBoss jBPM] - Command service vs. direct API calls

2007-09-26 Thread sonicfab
Hi. I am using an architecture where business logic and jBPM are co-located in the same JVM and share the same classloader. I am wondering whether I should systematically use the Command Service interface to interact with jBPM, versus directly using the public methods exposed by the jBPM object

[jboss-user] [JBoss jBPM] - [HOW-TO] Programmatically create and cancel Timers

2007-10-11 Thread sonicfab
I spent some time on finding out how to programmatically create and cancel timers, so I thought it might be a good idea to share this with you. (Note : this works with jBPM-jPDL 3.2.1 and 3.2.2). 1- Define a scheduler service in jbpm.cfg.xml : 2- Start a job executor thread (we do it via Spring

[jboss-user] [JBoss jBPM] - Re: How to programmatically set a timer on a workflow

2007-10-11 Thread sonicfab
I've figured it out. I posted the solution here : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=120995 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094086#4094086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply

[jboss-user] [JBoss jBPM] - Re: [HOW-TO] Programmatically create and cancel Timers

2007-10-11 Thread sonicfab
Ok here it is below. (Maybe I should start a blog ;-), or independent paid consultancy ;-)) ) | public class JbpmLifeCycleListener { | | /** Keylogger. */ | private static KeyLogger keyLogger = KeyLoggerFactory.getLogger(JbpmLifeCycleListener.class); | | /** Jbpm

[jboss-user] [JBossWS] - level of J2EE required by JBossWS

2007-06-12 Thread sonicfab
Hi. I see on the Wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossWSSpecStatus) that JBossWS require J2EE 5 for HTTP, SOAP and JAX-RPC support. I also read on the JBossWS FAQ that JBossWS runs on JBoss AS 4.0.4, which to my knowledge is at the J2EE 1.4 level. I'm a bit puzzled. View the or

[jboss-user] [JBossWS] - Re: level of J2EE required by JBossWS

2007-06-13 Thread sonicfab
Can I get an answer on this please ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053858#4053858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053858 ___ jboss-user mailing

[jboss-user] [JBossWS] - Re: level of J2EE required by JBossWS

2007-06-14 Thread sonicfab
Strangely enough, I am not getting any answer to this question. Maybe it is stupid or badly worded. Let me put it another way then : what is the most recent version of JBossWS that I can use on a J2EE 1.4 compliant application server, such as JBoss 4 ? All I want to do is use SOAP 1.2 over http,