aspose file tools*
The moose likes Flex and the fly likes Flex to database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Flex to database" Watch "Flex to database" New topic
Author

Flex to database

K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi Satish,

We cannot connect directly to the database using flex unlike Java. Is there any alternative approach given in your book? Please let me know.

Regards,
Kiran.
Satish Kore
Author
Ranch Hand

Joined: Feb 10, 2004
Posts: 43
Kiran,

In web architecture having direct connectivity with database from client side is a dangerous wish, be it Java or any other technology so in Flex having no direct database connectivity was intentional, read my below reply on one of the other thread

Flex does not have any API to connect directly with database that is justified since Flex essentially runs on client side inside Flash Player plug-in of your browser as compared to JSP that gets executed on the Server side and only result is passed to the client as HTML. So having direct connectivity from client application is not recommended and there is a risk of exposing your database credentials and table structure. However Adobe AIR provides SQL database engine for local database (SQLite) for providing offline/online functionality into Desktop based applications


Flex integrates very closely with Server side technologies such as Java/PHP/.NET etc. you can always have database connectivity logic in middle tier and that is advisable. I have covered the database connectivity part in my book thoroughly.

Thanks,

Satish Kore
"Flex 3 with Java" @ packtpub.com and amazon.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Flex to database