[Messaging, JMS & JBossMQ] - Re: Monitoring new connections to a topic
by adrianï¼ jboss.org
"chris05atm" wrote :
| Using subscribe() my Interceptor will broadcast a message to the topic whenever a client connects. The problem is I guess the message is broadcast before the connecting client starts receiving messages. Every other connected client receives the broadcasted message except the client that caused the subscribe() method to fire.
|
Ok, then why don't you intercept receive()? i.e. on the clients first request
to receive a message.
subscribe() just means they created the subscription (receiver/subscriber), not they
did receive() in the jms api.
But even then you don't know if it will actually be receiving.
You'd need to know whether the client has also done setEnabled(true)
i.e. whether it invoked connection.start()
You'd also have to trap unsubscribe() and connectionClosing()
to tidyup whatever state you use to remember that you already did
the broadcast on the first receive().
On the generic timing issue, you just do the broadcast AFTER the invocation
to the server.
public void subscribe(...) throws JMSException
{
super.subscribe(...);
// Here we know the subscription was successful
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062428#4062428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062428
18Â years, 10Â months
[JBoss jBPM] - Problems with deploying process with mail nodes or elements
by rossputin
Hi Guys,
I am new to this, and so far very impressed with the whole thing, it is the best working, best graphical editor and generally best thought out architecture I have seen with regards to workflow engines.. I tried quite a few, but ended up with buggy imlpementations with very poor documentation.. anyhow, I ran into a problem today when trying to deploy a process definition from the graphical tool in eclipse containing any kind of mail functionality.. my exception from the logs is...
for mail-node
---------------
org.jbpm.jpdl.JpdlException: [[ERROR] line 47: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mail-node'. One of '{"urn:jbpm.org:jpdl-3.1":swimlane, "urn:jbpm.org:jpdl-3.1":start-state, "urn:jbpm.org:jpdl-3.1":node, "urn:jbpm.org:jpdl-3.1":state, "urn:jbpm.org:jpdl-3.1":task-node, "urn:jbpm.org:jpdl-3.1":super-state, "urn:jbpm.org:jpdl-3.1":process-state, "urn:jbpm.org:jpdl-3.1":fork, "urn:jbpm.org:jpdl-3.1":join, "urn:jbpm.org:jpdl-3.1":decision, "urn:jbpm.org:jpdl-3.1":end-state, "urn:jbpm.org:jpdl-3.1":action, "urn:jbpm.org:jpdl-3.1":script, "urn:jbpm.org:jpdl-3.1":create-timer, "urn:jbpm.org:jpdl-3.1":cancel-timer, "urn:jbpm.org:jpdl-3.1":event, "urn:jbpm.org:jpdl-3.1":exception-handler, "urn:jbpm.org:jpdl-3.1":task}' is expected.,
and for mail action on leaving node
----------------------------------------
org.jbpm.jpdl.JpdlException: [[ERROR] line 35: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mail'. One of '{"urn:jbpm.org:jpdl-3.1":action, "urn:jbpm.org:jpdl-3.1":script, "urn:jbpm.org:jpdl-3.1":create-timer, "urn:jbpm.org:jpdl-3.1":cancel-timer}' is expected.]
my jbpm webapp version is starters kit 3.1.4
and my jpdl designre plug in in eclipse is 3.1.0beta1
can anyone tell me which versions I should be using, if I want to adapt the faces webapp sample as it is in 3.1.4, so I can deploy mail related functionality from the designer tool?
Thankyou very much for your help
regards
Ross
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062424#4062424
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062424
18Â years, 10Â months