[JBoss Messaging] - Problem in topic consumers when lost connections
by cbolanos
Hello.
I have installed JBoss Messaging 1.4.0 SP3 in a Jboss Server 4.2.2.GA, persisted in a MySQL database, and no clustered.
I have deployed one topic and one queue, and a MDB in a the Jboss Server, and I have multiple standalone clients. The clients send messages to the queue, the MDB consumes this messages and publish them in the topic, and finally the standalone clients consumes the messages from the topic.
My problem is that when the stand alone client reconects after lossing connection with the Jboss server, (something that is very probably, because they connect through internet) it can sends messages to the queue but it cannot consume messages from the topic.
I have read before in other responses of this forum, this problem is fixed using newer versions of jboss remoting, but I have the same problem using jboss remoting 2.2.2 SP4, as recomended, and with version 2.5.0.GA
Excuse my bad english, and any help will be welcome
Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193767#4193767
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193767
16 years, 1 month
[JBoss AOP] - jboss-aop configuration help needed
by csr1978
Hi,
I am new to JBoss AOP concept and need some help in configuring it. I have a web application deployed to jboss server 4.2.0. I am trying to configure logging interceptor for the web application with aop. so far i followed these steps:
package jboss.aop.interceptor; import org.jboss.aop.joinpoint.Invocation;import org.jboss.aop.joinpoint.MethodInvocation;import org.jboss.aop.advice.Interceptor; public class MethodInterceptor implements Interceptor{ public String getName() { return "MethodInterceptor"; } public Object invoke(Invocation invocation) throws Throwable { try { MethodInvocation mi = (MethodInvocation)invocation; System.out.println("<<< Entering MethodInterceptor for: " + mi.getMethod().toString()); return invocation.invokeNext(); } finally { System.out.println(">>> Leaving MethodInterceptor"); } }}
compiled this class and created a jar file with this class.
created jboss-aop.xml file as follows:
<?xml version="1.0" encoding="UTF-8"?><aop> <bind pointcut="execution(* com.tnt.thin.servlet.DDServlet->*(..))"> <interceptor class="jboss.aop.interceptor.MethodInterceptor"/> </bind></aop>
Modified jboss-service.xml file in server/default/deploy/jboss-aop-jdk50.deployer/META-INF/jboss-service.xml to:
<attribute name="EnableLoadtimeWeaving">true</attribute>
copied the jar file to server/default/lib directory
copied the jboss-aop.xml file to server/default/deploy directory.
I restarted the jboss server after doing all of the above steps and got this error:
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: jboss.aop.interceptor.MethodInterceptor
Could anyone point me to the right direction.
Thanks,
Srikanth.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193762#4193762
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193762
16 years, 1 month
[JBoss jBPM] - Re: Cange swimlane at runtime
by pgros
When i create my process instance i set the var "SWIMLANE" to "Unknown"
i have following nodes
startstate -> node -> tasknode1 -> tasknode2
"node" sets var "swimlane" to "test"
then i overrided the enter() function of tasknode as following
| @Override
| public void enter(ExecutionContext executionContext) {
| // TODO Auto-generated method stub
| super.enter(executionContext);
|
|
|
| for ( TaskInstance ti : (Collection<TaskInstance>)getTaskMgmtInstance(executionContext.getToken()).getTaskInstances()) {
| ti.setActorId(executionContext.getVariable("SWIMLANE").toString());
| System.out.println("Set " + ti.getName() + " actor to " + executionContext.getVariable("SWIMLANE").toString());
| }
| }
|
Output:
Set node1task actor to Unknown
Set node2task actor to Test
but node1task should have been set to test, too...
seems that the variable isn't set fast enough or something like that, how can it be? ... i didn't set any asynchonous nodes
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4193761#4193761
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193761
16 years, 1 month