Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-12-2010, 03:52 PM   #1
Registered User
Join Date: Apr 2010
Posts: 2
Default BlazeDS and object instantiation?

I'm a bit new to BlazeDS. I have set up a POJO that does the following:

1-in the no-arguments constructor it connects to a database.
2-in a method called 'searchResults' it queries the database and returns only 15 items at most from the database. These result sets are small, only 3 columns.

However, it is ridiculously slow. It makes me think it is calling the constructor before each call to the method instead of instantiating the object, then using that established connection to connect each time.

my questions are these:

1-when is an object instantiated in BlazeDS?
2-Is it possible to instantiate an object manually by calling the constructor in my MXML, then hold it in memory and refer back to it?
3-any suggestions for speeding this up?

thanks in advance.
peteandrus is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:28 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.