Re: AJAX Client Reconnect

2007-10-15 Thread chago
g, and there is probably a better way. I was hoping that some > sort of retry logic would make it into the head so that I can use the > standard javascript files (makes maintenance a lot easier). > >--Dan > > On 10/13/07, chago <[EMAIL PROTECTED]> wrote: >>

Designing (real) applications with JMS

2007-10-13 Thread chago
Can anyone recommend a good book or article regarding the development of real-world applications using JMS? This excludes the intro to JMS books and the books discussing integration patterns. I'm looking for an informative treatise on how to build a real mid-size to large application using JMS.

Re: AJAX Client Reconnect

2007-10-13 Thread chago
Hi Dan, I'm planning on moving into application development with the AMQ AJAX code soon, so this is of interest to me also. There are two types of failure that I can foresee. One is when the webserver closes the connection due to restart or network problem. In this case, the assumption is that

Re: Able to send message to ActiveMQ but Not getting reply to Client

2007-09-28 Thread chago
essages on topic://doChat and send replies on topic://ChatTopic? -- jim JigarP wrote: > > Hi Chago, > > you have explain each scenario clearly. just want to know that at > server side/client side what sort of confuguration should i do so that > atleast it will not destroy

Re: Able to send message to ActiveMQ but Not getting reply to Client

2007-09-27 Thread chago
ent is closed along with all the consumers. Things to look for in your debug log are messages relating to the closing of consumers. Mine looks like this: 2007-09-24 20:07:19,968 DEBUG [VMTransport ] (he.activemq.broker.region.AbstractRegion) Removing consumer: ID:zd7000-2475-1190676467171-2:0:1:1 I&

Re: Able to send message to ActiveMQ but Not getting reply to Client

2007-09-26 Thread chago
The polling begins as soon as the page is loaded and the _amq.js fle is processed. It is quite probable that their are no consumers at this time. A consumer isn't created until the amq.addListener() function is invoked. Can you post your code? -- jim JigarP wrote: > > Hi Chago, &

Re: Able to send message to ActiveMQ but Not getting reply to Client

2007-09-26 Thread chago
n the early part of the doMessages() method. Would you be able to include the avtivemq-web.jar file from the head in your project to replace the 4.x version. There may be other dependencies that prevent this, but I have never tried. -- jim -- jim JigarP wrote: > > Hi Chago/James, >

Re: Able to send message to ActiveMQ but Not getting reply to Client

2007-09-25 Thread chago
I know others that have had this problem running with the 4.1.x series. Is that the case for you? -- jim JigarP wrote: > > Hi , > >I am using ActiveMQ/AJAX for my web based application. I have > integrated ajax successfully in my application but getting below issue > sometime. > > 1) I s

Re: Not getting all my messages in an Ajax client

2007-09-25 Thread chago
Can you upgrade to 5.0? I have tried to help others with the same problem, but it worked for them when they upgraded to latest code. -- jim bbuffone wrote: > > I have started using Active MQ to build an Ajax application and currently > running into problems. When I publish messages from the

Re: Detecting lost ajax clients

2007-09-25 Thread chago
Can you provide more detail regarding the problem. I assume you are using the amq.js file? If you are, the browser is constantly polling the server for data. If there is a connection problem, the browser is the first to know about it. In these cases, reconnect logic will have to exist in the brows

Re: Looking for Help ActiveMQ and Jetty

2007-09-17 Thread chago
e is nothing transfered. > > Any ideas? > > http://www.nabble.com/file/p12665375/activemq.log activemq.log > > chago wrote: >> >> http://activemq.apache.org/how-do-i-enable-debug-logging.html >> >> >> Zanderfax wrote: >>> >>>

Re: ActiveMQ performance(activemq +ajax)

2007-09-16 Thread chago
J, I'm not an authority on this topic, but I will try to carve out some time to write a js-based load test. When working on problems like this, a plugin like Firebug will help you out quite a bit. There are IE equivalents. This can help identify whether the client never sends the message, or the s

Re: ActiveMQ performance(activemq +ajax)

2007-09-12 Thread chago
The amq.js file that ships with ActiveMQ will automagically load for you, prototype.js, behavior.js and _amq.js. The real work is done in _amq.js which communicates with the AjaxServlet to create a javascript JMS client. The _amq.js needs to make some AJAX calls to the server, thus the inclusion o

Re: ActiveMQ performance(activemq +ajax)

2007-09-12 Thread chago
Can you try the amq.js file located at: https://issues.apache.org/activemq/browse/AMQ-1377 Are each of these listeners connected to a different queue or topic? How many do you have before you notice some unresponsiveness? -- jim JigarP wrote: > > Hi All, > > I had posted on issue relat

Re: Looking for Help ActiveMQ and Jetty

2007-09-12 Thread chago
http://activemq.apache.org/how-do-i-enable-debug-logging.html Zanderfax wrote: > > I made the changes with no apparent effect. Where would I look for the > debug log or stack trace if they exist? > -- View this message in context: http://www.nabble.com/Looking-for-Help-ActiveMQ-and-Jetty-t

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
ns or stack traces. -- jim chago wrote: > > It appears to be some kind of timing issue. The code above works on my > setup. > -- View this message in context: http://www.nabble.com/Looking-for-Help-ActiveMQ-and-Jetty-tf4379195s2354.html#a12535383 Sent from the ActiveMQ - User mai

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
Try this: http://www.w3.org/TR/html4/strict.dtd";> Observatory amq.uri='amq'; var myHandler = { rcvMessage: function(message) { alert("received " + message);

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
That's correct. Have you tried the examples in web demo? Zanderfax wrote: > > So I don't have to configure anything on the Jetty side to have the topics > available? > -- View this message in context: http://www.nabble.com/Looking-for-Help-ActiveMQ-and-Jetty-tf4379195s2354.html#a12533912 Se

Re: Looking for Help ActiveMQ and Jetty

2007-09-06 Thread chago
When using the javascript client (amq.js) you subscribe to topics and queues in your javascript code. For example, in the chat.js file when the 'join' button is pressed, an event fires that is coded as: amq.addListener('chat', 'topic://CHAT.DEMO', chatHandlerCallback); Any messages posted to tha

Re: Javascript -> JmsReplyTo(TemporaryDestination) -> JSONP

2007-09-04 Thread chago
northshorefiend wrote: > > Say you have a widget on a webpage. The user clicks 'send' and expects a > 'synchronous' response. > As you probably know, amq.js initiates a long-poll using an AJAX GET request. All JMS messages come down in this get pipeline, and it is always on. This means that it

Re: Looking for Help ActiveMQ and Jetty

2007-09-04 Thread chago
If you download ActiveMQ, the web demo module contains a few demos that use Jetty with an embedded broker talking to web pages using the amq.js script file. The embedded broker is configured in the web.xml file by specifying the vm://localhost value. If you want to use an external broker, you can

Re: ActiveMQ and DOJO

2007-09-04 Thread chago
This may be a bit late for you, but I have refactored amq.js to use an adapter class to allow other javascript frameworks to plug in. Writing an adapter for dojo is trivial. If still needed, I can add it. If you add it, please upload it to the "patch" which can be found at http://issues.apache.or

Re: ajax channel:// == topic?

2007-03-27 Thread chago
So did this turn out to be a bug after all? I'm looking at the 4.2 SNAPSHOT and is_topic = true for channels. Imran.Sarwar wrote: > > Hi, > > You are right, it seems to be a bug. The is_topic flag should be set to > false in case of channel > > Thanks, > Imran > -- View this message in c