• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Flex to database

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
reply
    Bookmark Topic Watch Topic
  • New Topic