Re: [flexcoders] Re: Java/Flex questions answered by James Ward
Uggh no wonderthey deleted my question altogether! James Ward wrote: Yeah. Turns out that the folks at Stack Overflow didn’t like the idea of the “riacowboy” tag. So you can still ask the question with sensible tags and then post a comment on my “Ask the RIA Cowboy” blog so that I know where to find it. Thanks. -James *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *ilikeflex *Sent:* Monday, September 14, 2009 10:29 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Java/Flex questions answered by James Ward Could not find the tag 'raiCowboy' http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327 http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327 It says tag 'raiCowboy' has been deleted. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, James Ward jaw...@... wrote: This would be a great question to ask on StackOverflow.com :) -James From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, September 11, 2009 11:03 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward what i am expecting that as soon as i run my flex application i should see System.out.println(getIndexList Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexValues Executing); but i see System.out.println(getIndexList Executing); System.out.println(getIndexList End Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexProfileList End Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexTradingDatesList End Executing); System.out.println(getIndexValues Executing); System.out.println(getIndexValues End Executing); I should see all the method executing simultaneously. Any help... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikeflex@ wrote: I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzinikos@ wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders
RE: [flexcoders] Re: Java/Flex questions answered by James Ward
Yeah. Turns out that the folks at Stack Overflow didn't like the idea of the riacowboy tag. So you can still ask the question with sensible tags and then post a comment on my Ask the RIA Cowboy blog so that I know where to find it. Thanks. -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Monday, September 14, 2009 10:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward Could not find the tag 'raiCowboy' http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327 It says tag 'raiCowboy' has been deleted. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James Ward jaw...@... wrote: This would be a great question to ask on StackOverflow.com :) -James From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, September 11, 2009 11:03 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward what i am expecting that as soon as i run my flex application i should see System.out.println(getIndexList Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexValues Executing); but i see System.out.println(getIndexList Executing); System.out.println(getIndexList End Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexProfileList End Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexTradingDatesList End Executing); System.out.println(getIndexValues Executing); System.out.println(getIndexValues End Executing); I should see all the method executing simultaneously. Any help... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikeflex@ wrote: I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzinikos@ wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, valdhor valdhorlists@ wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously
[flexcoders] Re: Java/Flex questions answered by James Ward
Could not find the tag 'raiCowboy' http://meta.stackoverflow.com/questions/17314/search-for-a-tag-returns-no-results/17327 It says tag 'raiCowboy' has been deleted. --- In flexcoders@yahoogroups.com, James Ward jaw...@... wrote: This would be a great question to ask on StackOverflow.com :) -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, September 11, 2009 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward what i am expecting that as soon as i run my flex application i should see System.out.println(getIndexList Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexValues Executing); but i see System.out.println(getIndexList Executing); System.out.println(getIndexList End Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexProfileList End Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexTradingDatesList End Executing); System.out.println(getIndexValues Executing); System.out.println(getIndexValues End Executing); I should see all the method executing simultaneously. Any help... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikeflex@ wrote: I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzinikos@ wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, valdhor valdhorlists@ wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1\ \ http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I
[flexcoders] Re: Java/Flex questions answered by James Ward
I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.com, fotis.chatzinikos fotis.chatzini...@... wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1\ -RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Java/Flex questions answered by James Ward
what i am expecting that as soon as i run my flex application i should see System.out.println(getIndexList Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexValues Executing); but i see System.out.println(getIndexList Executing); System.out.println(getIndexList End Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexProfileList End Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexTradingDatesList End Executing); System.out.println(getIndexValues Executing); System.out.println(getIndexValues End Executing); I should see all the method executing simultaneously. Any help... --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.com, fotis.chatzinikos fotis.chatzinikos@ wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1\ \ -RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post:
RE: [flexcoders] Re: Java/Flex questions answered by James Ward
This would be a great question to ask on StackOverflow.com :) -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, September 11, 2009 11:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward what i am expecting that as soon as i run my flex application i should see System.out.println(getIndexList Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexValues Executing); but i see System.out.println(getIndexList Executing); System.out.println(getIndexList End Executing); System.out.println(getIndexProfileList Executing); System.out.println(getIndexProfileList End Executing); System.out.println(getIndexTradingDatesList Executing); System.out.println(getIndexTradingDatesList End Executing); System.out.println(getIndexValues Executing); System.out.println(getIndexValues End Executing); I should see all the method executing simultaneously. Any help... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikef...@... wrote: I am doing something like this: if( indexListRemoteObject == null) { indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); indexListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexListRemoteObject.getIndexList(); } if( indexProfileListRemoteObject == null ) { indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexProfileListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexProfileListRemoteObject.getIndexProfileList(); } if( indexTradingDatesListRemoteObject == null ) { indexTradingDatesListRemoteObject = new RemoteObject(indexMasterDAO); indexTradingDatesListRemoteObject.addEventListener( ResultEvent.RESULT, indexTradingDatesListHandler ); indexTradingDatesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexTradingDatesListRemoteObject.getIndexTradingDatesList(); } if( indexValuesListRemoteObject == null ) { indexValuesListRemoteObject = new RemoteObject(indexMasterDAO); indexValuesListRemoteObject.addEventListener( ResultEvent.RESULT, indexValuesListHandler ); indexValuesListRemoteObject.addEventListener( FaultEvent.FAULT, faultHandler ); indexValuesListRemoteObject.getIndexValues(); } but if i put the System.out.println in different Java Methods.. i see the same sequence of order in which they are called. I am 100% sure that my first method(getIndexList) takes lot of time. So while getIndexList is executing then i should also see that atleast one of the other methods are being executed simulataneously. But this is not happening as expected. None of the other methods is able to recieve the request while getIndexList is processing. All my java methods are static. I don't think this should cause any issue. thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, fotis.chatzinikos fotis.chatzinikos@ wrote: make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, valdhor valdhorlists@ wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1\ \ http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1 -RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO
Re: [flexcoders] Re: Java/Flex questions answered by James Ward
Hi Mete You are 100% correct that i am using AMF Channel. I do not want to use HTTP Channel because then data has to be in XML format and it will make the request/response slow. At the same time i am using Remote Binding which will not be possible if i use HTTP Channel. But i put some time lag between the request then i am delaying the request. How much must be the time gap between the requests. Is anything recommended by flex experts??? Thanks for the response. -ilikeflex From: meteatamel meteata...@yahoo.com To: flexcoders@yahoogroups.com Sent: Saturday, August 15, 2009 5:13:29 PM Subject: [flexcoders] Re: Java/Flex questions answered by James Ward Are you using AMFChannel? AMFChannel uses NetConnection and NetConnection, by default, batches request that are close in a single POST. You can try to increase the time between requests or you can wait for a result/fault before sending the next request. If I remember correctly, HTTPChannel does not do this (it uses URLLoader), so you can try using HTTPChannel as well. -Mete --- In flexcod...@yahoogro ups.com, ilikeflex ilikef...@. .. wrote: Hi James I asked the question in StackOverflow. com but by mistake i tagged httprequest . Please answer this time and i will tag properly next time. Thanks ilikelfex --- In flexcod...@yahoogro ups.com, James Ward jaward@ wrote: This would be a great question to ask on StackOverflow. com. :) -James From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro ups.com] On Behalf Of ilikeflex Sent: Friday, August 14, 2009 1:59 PM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp. blogspot. com/_v7fXKpvsYl0 /SoW5_0lZl6I/ APg/ caJ1-RzjZAE/ s1600-h/Query. png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRem oteObject = new RemoteObject( indexMasterDAO ); indexProfileListRem oteObject. addEventListener ( ResultEvent. RESULT, indexProfileListHan dler ); indexListRemoteObje ct = new RemoteObject( indexMasterDAO ); indexListRemoteObje ct.addEventListe ner( ResultEvent. RESULT, indexListHandler ); Thanks ilikeflex --- In flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow. com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com [mailto:flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcod...@yahoogro ups.commailto:flexcoders% 40yahoogroups. com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Java/Flex questions answered by James Ward
I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Java/Flex questions answered by James Ward
make a remote call implementation in java that fills a hashmap or related object with all the info you want: init() { people = getPeople() ; towns = getTowns() ; etc... } if you want them 1-by-1 call them in sequence: getPeople() on responce getTowns and so on... --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I don't understand. Each call _IS_ a separate request. Even though Flex batches them up together, each remoteObject call hits the server as a separate request. They will return asynchronously. This is what you want so that you get the data back as fast as possible. --- In flexcoders@yahoogroups.com, ilikeflex ilikeflex@ wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Java/Flex questions answered by James Ward
Are you using AMFChannel? AMFChannel uses NetConnection and NetConnection, by default, batches request that are close in a single POST. You can try to increase the time between requests or you can wait for a result/fault before sending the next request. If I remember correctly, HTTPChannel does not do this (it uses URLLoader), so you can try using HTTPChannel as well. -Mete --- In flexcoders@yahoogroups.com, ilikeflex ilikef...@... wrote: Hi James I asked the question in StackOverflow.com but by mistake i tagged httprequest. Please answer this time and i will tag properly next time. Thanks ilikelfex --- In flexcoders@yahoogroups.com, James Ward jaward@ wrote: This would be a great question to ask on StackOverflow.com. :) -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, August 14, 2009 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
[flexcoders] Re: Java/Flex questions answered by James Ward
HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaw...@... wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
Re: [flexcoders] Re: Java/Flex questions answered by James Ward
Please follow the instructions in the following link to post this question: http://www.jamesward.com/blog/ask-the-ria-cowboy/ On Fri, Aug 14, 2009 at 12:58 PM, ilikeflexilikef...@yahoo.com wrote: HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.com, James Ward jaw...@... wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/
RE: [flexcoders] Re: Java/Flex questions answered by James Ward
This would be a great question to ask on StackOverflow.com. :) -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, August 14, 2009 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James Ward jaw...@... wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/ inline: image001.jpginline: image002.jpg
[flexcoders] Re: Java/Flex questions answered by James Ward
Hi James I asked the question in StackOverflow.com but by mistake i tagged httprequest. Please answer this time and i will tag properly next time. Thanks ilikelfex --- In flexcoders@yahoogroups.com, James Ward jaw...@... wrote: This would be a great question to ask on StackOverflow.com. :) -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ilikeflex Sent: Friday, August 14, 2009 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Java/Flex questions answered by James Ward HI I am using Blazeds. At the start of my application i am making couple of request to get the data from the backend. I am tracking my request through Charles Debugger. I see that all my initial request are put together in one POST request. I want that each service call to backend be a different POST request. So that i can get the data fast. Please have a look at the screen shot.(http://4.bp.blogspot.com/_v7fXKpvsYl0/SoW5_0lZl6I/APg/caJ1-RzjZAE/s1600-h/Query.png) How can i achieve this? I am using the Remote Objec to make the calls indexProfileListRemoteObject = new RemoteObject(indexMasterDAO); indexProfileListRemoteObject.addEventListener( ResultEvent.RESULT, indexProfileListHandler ); indexListRemoteObject = new RemoteObject(indexMasterDAO); indexListRemoteObject.addEventListener( ResultEvent.RESULT, indexListHandler ); Thanks ilikeflex --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James Ward jaward@ wrote: Thanks for the plug. I'm using StackOverflow.com to manage the questions. Just tag them with riacowboy so that I can find them. I'm seeing a big shift from the Adobe forums, flexcoders, etc to Stack Overflow - so hopefully many here will start getting more involved in Stack Overflow. BTW: Here is the Ask The RIA Cowboy post: http://www.jamesward.com/blog/ask-the-ria-cowboy/ -James From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of hworke Sent: Friday, August 14, 2009 11:17 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Java/Flex questions answered by James Ward Hello Devs, James Ward the Technical Evangelist for Flex at Adobe encourages all to post RIA related questions in his blog. I asked him JAVA/LCDS questions before and got instant answer from him. If you have JAVA/BlazeDS/ LCDS related questions then you can post it here: http://www.jamesward.com/blog/