You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Javier Leyba <xl...@gmail.com> on 2006/04/21 09:40:58 UTC

Ajax

Hi

I want to try to make a client with ajax. I've tried to download
amq.js from Activemq home page and wiki but all links are broken.

Where could I download it ?


Thanks in advance

J

Re: Ajax

Posted by Javier Leyba <xl...@gmail.com>.
I'll try...tnx !


On 4/21/06, James Strachan <ja...@gmail.com> wrote:
> You're best bet is grabbing the code from subversion
> http://activemq.org/Source
>
> and using maven 2 to build the example web application that
> demonstrates the Ajax client (the activemq-web-demo/module)
>
> On 4/21/06, Javier Leyba <xl...@gmail.com> wrote:
> > Hi
> >
> > I want to try to make a client with ajax. I've tried to download
> > amq.js from Activemq home page and wiki but all links are broken.
> >
> > Where could I download it ?
> >
> >
> > Thanks in advance
> >
> > J
> >
>
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>

Re: Ajax

Posted by Naby <us...@abwesend.de>.
Thx James, the demo is running again.
Now I see that the chat doesn't works with listeners in 2 or more browser
windows/tabs (same browser).

Does anybody know if it is a limitation of Ajax or of the scripts/classes
from AMQ ?

As i can see the listeners/clients are stored with their sessionid and the
browser windows/tabs return the same id. Can this be fixed if allowing more
than one listener per sesssionid?

Thx
--
View this message in context: http://www.nabble.com/Ajax-t1485063.html#a4135425
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Ajax

Posted by James Strachan <ja...@gmail.com>.
On 4/27/06, Christopher G. Stach II <cg...@ldsys.net> wrote:
> Naby wrote:
> > Hi there,
> > today i have 2 questions :)
> >
> > 1) The current source seems to be broken. During the run of the web demo i
> > get the following error:
> >
> > [INFO] Error building POM (may not be this project's POM).
> >
> > Project ID: incubator-activemq:activeio:pom:3.0-SNAPSHOT
> >
> > Reason: Cannot find parent: incubator-activemq:activemq for project:
> > incubator-activemq:activeio:pom:3.0-SNAPSHOT
> >
> > Can someone repair this?
>
> It seems that Maven 2 is not supported.  It's very unfortunate from a
> convenience standpoint.  I don't think any AMQ version works in M2.  It
> looks like you might need to add the Apache snapshot repository to your
> POM, though.

If you install maven 2.0.4 (and trashing your ~/.m2 directory helps)
then you can grab the latest code of ActiveMQ and from the activemq
directory type

mvn clean install -Dmaven.test.skip=true

and it does build; though the m2 still a little brittle and not as
stable as the m1 build.

There's instructions on using the Web Console (a little web app for
working with ActiveMQ) using the m2 build here
http://activemq.org/Web+Console

--

James
-------
http://radio.weblogs.com/0112098/

Re: Ajax

Posted by "Christopher G. Stach II" <cg...@ldsys.net>.
Naby wrote:
> Hi there,
> today i have 2 questions :)
> 
> 1) The current source seems to be broken. During the run of the web demo i
> get the following error:
> 
> [INFO] Error building POM (may not be this project's POM).
> 
> Project ID: incubator-activemq:activeio:pom:3.0-SNAPSHOT
> 
> Reason: Cannot find parent: incubator-activemq:activemq for project:
> incubator-activemq:activeio:pom:3.0-SNAPSHOT
> 
> Can someone repair this?

It seems that Maven 2 is not supported.  It's very unfortunate from a
convenience standpoint.  I don't think any AMQ version works in M2.  It
looks like you might need to add the Apache snapshot repository to your
POM, though.

-- 
Christopher G. Stach II

Re: Ajax

Posted by Naby <us...@abwesend.de>.
Hi there,
today i have 2 questions :)

1) The current source seems to be broken. During the run of the web demo i
get the following error:

[INFO] Error building POM (may not be this project's POM).

Project ID: incubator-activemq:activeio:pom:3.0-SNAPSHOT

Reason: Cannot find parent: incubator-activemq:activemq for project:
incubator-activemq:activeio:pom:3.0-SNAPSHOT

Can someone repair this?

2) Could it be that Ajax/AMQ couldn't handle 2 or more browser windows
listening and sending to the same topic?
--
View this message in context: http://www.nabble.com/Ajax-t1485063.html#a4119732
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Ajax

Posted by Naby <us...@abwesend.de>.
Thx James. The demo is running now.

But could you reproduce that the chat client sometimes doesn't get the first
login message if the log-in happens shortly after the page load? ( I load
the page with emptied browser cache before. )

In M4 the client doesn't get messages for 10-20 sec. after a page load. With
the current source this happens very rarely.
--
View this message in context: http://www.nabble.com/Ajax-t1485063.html#a4082333
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Ajax

Posted by James Strachan <ja...@gmail.com>.
I hit this yesterday ;). I hacked the pom.xml a little to explicitly
add the J2EE jars into the pom (though I didn't think we'd need that
given that we depend on activemq-core and the parent pom but maven is
frequently random magic to me these days).

So please try grabbing the latest from SVN HEAD and trying that as its
working for me now.

James

On 4/25/06, Naby <us...@abwesend.de> wrote:
>
> Hi
>
> I try to run the web-demo with maven2 ( mvn.bat jetty6:run ) but it always
> says
>
> :INFO:  Started SelectChannelConnector @ 0.0.0.0:8080
> :WARN:  failed Server@1dccedd
> [INFO] Jetty server exiting.
> [INFO] -----------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] -----------------------------------------------
> [INFO] javax/jms/Destination
> [INFO] -----------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError: javax/jms/Destination
>
> I try the snapshot package and the current source from subversion.
>
> Where is the problem?
>
> Thx
> --
> View this message in context: http://www.nabble.com/Ajax-t1485063.html#a4079455
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


--

James
-------
http://radio.weblogs.com/0112098/

Re: Ajax

Posted by Naby <us...@abwesend.de>.
Hi

I try to run the web-demo with maven2 ( mvn.bat jetty6:run ) but it always
says 

:INFO:  Started SelectChannelConnector @ 0.0.0.0:8080
:WARN:  failed Server@1dccedd
[INFO] Jetty server exiting.
[INFO] -----------------------------------------------
[ERROR] FATAL ERROR
[INFO] -----------------------------------------------
[INFO] javax/jms/Destination
[INFO] -----------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError: javax/jms/Destination

I try the snapshot package and the current source from subversion.

Where is the problem?

Thx
--
View this message in context: http://www.nabble.com/Ajax-t1485063.html#a4079455
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Ajax

Posted by James Strachan <ja...@gmail.com>.
You're best bet is grabbing the code from subversion
http://activemq.org/Source

and using maven 2 to build the example web application that
demonstrates the Ajax client (the activemq-web-demo/module)

On 4/21/06, Javier Leyba <xl...@gmail.com> wrote:
> Hi
>
> I want to try to make a client with ajax. I've tried to download
> amq.js from Activemq home page and wiki but all links are broken.
>
> Where could I download it ?
>
>
> Thanks in advance
>
> J
>


--

James
-------
http://radio.weblogs.com/0112098/