File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Flex to database

 
K Kiran Kumar
Ranch Hand
Posts: 109
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic