flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cortlandt Winters <c...@cortwinters.net>
Subject Re: Preferred way of connecting to MySql
Date Sun, 25 Aug 2013 22:09:38 GMT
I'd look into using weborb <http://www.themidnightcoders.com/> for
something like this.

It's great glueware

In particular my first thought would be to
1) export your sqllite database as a schema for mysql,
2) then use their wizard to create a mysql database
3) they will generate and deploy both the server side code, which can be
java, .NET, PHP or rails, whichever you like, and generate the actionscript
to access the new services. I can only vouch for the java server side piece
personally, but it was a brilliant piece of work with a great interface.
You really don't even need to know java in order to create a nice backend
with it, but if you do you can add your own or other java services to it
easily as well. They will even generate a flex example app to show you the
syntax to use for the service.
4) then you need to copy and paste their generated code into your app and
reglue your calls from sqllite to use the service
5) and finally, if you need to maintain the data, have your flex app read
the sqllite database data and seed the new mysql database from the old data
via the new calls.

In fact if  you want to transition to an html client some day in the
future. I believe they have an AMF bridge for javascript, so you can still
get the awesome performance of AMF that Peter is referring to.

It's not free, but they have very reasonable licensing and offer an amazon
cloud service.

Good luck with the transition.

On Sun, Aug 25, 2013 at 5:27 PM, Peter Ginneberge <p.ginneberge@gmail.com>wrote:

> IMO, amf (remoting) is the way to go, simply because you get to send back
> and forth typed objects (DTO's, VO's) and no need to convert from one
> format to another (json to ActionScript, ActionScript to json, xml to
> ActionScript, ActionScript to xml etc..).
> regards,
> Peter
> ----- Original Message ----- From: "Arne Broedel" <
> arne.broedel@googlemail.com>
> To: <users@flex.apache.org>
> Sent: Sunday, August 25, 2013 5:33 PM
> Subject: Preferred way of connecting to MySql
>  Hello,
>> I have a Flex Application that is running on Desktop with AIR and a Sqlite
>> database.
>> No I want to change it to work in the browser as a webapplication using
>> MySql.
>> What is the most common/easiest/fastest/**flexible way to to this.
>> Would you prefer for example php with amfphp/zendamf or better prefer php
>> with json?
>> The flashbuilder datawizard and most adobe tutorials use zendamf but as
>> far
>> as I know it wont be maintained anymore.
>> Or would you suggest to use Java, Hibernate...?
>> Something totally different?
>> My knowledge of PHP and Java is equally low I would guess.
>> Thank you

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message