Hi ! <div>This part :</div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.800000190734863px;background-color:rgb(255,255,255)">.pipes.members;</span></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">will not work as your pipe is called &quot;helloworld&quot; and not &quot;members&quot; </font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Seb</font></div><div><font color="#222222" face="arial, sans-serif"><br></font><br><div class="gmail_quote">
On Tue, Mar 19, 2013 at 2:08 PM, soumik.basu <span dir="ltr">&lt;<a href="mailto:soumik.basu@accenture.com" target="_blank">soumik.basu@accenture.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi team,<br>
  I am using the jquery as javascript library for my app. I  just thought of<br>
including aerogear Rest service call instead of Jquery ajax call, so was<br>
trying out with a small sample code. But the request was not getting fired.<br>
 I have deployed my sample Rest app as a separate project under a different<br>
context. I can acces it from my browser as :<br>
<a href="http://localhost:8080/JAX_RS_HelloWorld/helloworld" target="_blank">http://localhost:8080/JAX_RS_HelloWorld/helloworld</a>.<br>
  I am trying to access this from :<br>
<a href="http://localhost:8080/html5Start/test1.html" target="_blank">http://localhost:8080/html5Start/test1.html</a> page.<br>
I have written the code as:<br>
var memberPipe  = AeroGear.Pipeline([{<br>
                            name: &quot;helloworld&quot;,<br>
                            settings: {<br>
                                baseURL: &quot;JAX_RS_HelloWorld/&quot;<br>
                            }<br>
                        }  ]).pipes.members;<br>
                        alert(memberPipe);<br>
/I am getting undefined from this alert/<br>
   subs =       memberPipe.read();<br>
<br>
                        alert(subs);<br>
<br>
so the script is failing here. Is it compulsory that I need to access this<br>
Rest service from same context path as mentioned in the guide<br>
&quot;By default, the RESTful endpoint used by this pipe is the app&#39;s current<br>
context, followed by the pipe name. For example, if the app is running on<br>
<a href="http://mysite.com/myApp" target="_blank">http://mysite.com/myApp</a>, then a pipe named `tasks` would use<br>
<a href="http://mysite.com/myApp/tasks" target="_blank">http://mysite.com/myApp/tasks</a> as its REST endpoint.&quot;...In that case what is<br>
the way to change the base url to access the service from a different<br>
context?<br>
<br>
Please let me know if I am doing anything wrong here.<br>
<br>
Thanks in advance.<br>
<br>
Regards<br>
Soumik<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/aeroGear-pipeline-not-working-tp1968.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/aeroGear-pipeline-not-working-tp1968.html</a><br>

Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></div><br></div>