t.knip at suite75.com
Thu Oct 13 06:44:02 PDT 2005
A few remarks:
1. fail on startup: table 'mmug' not found... (needed to add a mmug-table)
2. needed to download/intstal MySql connector
a. classname: 'business' and 'vo' not added to the classname
b. methodname: 'delete' fails to compile on MTASC (delete is a
reserved word) suggestion: 'deleteOne' ?
c. methodname: 'get' (suspicious: also reserved keyword) suggestion:
Van: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] Namens
Verzonden: donderdag 13 oktober 2005 9:17
Aan: General List for Ariaware RIA Platform users and developers
Onderwerp: Re: [Arp] Is ARP too much trouble?
just wanted to inform you about Muse, a project I'm working on to
generate code for different projects (ARP, AMFPHP, etc). It's written in
C# for .NET 1.1. I already posted this on the OSFlash list, so here's
the original message.
I have been working on a tool that
generates (stub) code for projects made with ARP and/or AMFPHP. The
generated code is template based and can easily be modified.
It currently creates:
- a PHP DataSource to encapsulate the type of database you're using
(currently only MySQL)
- PHP DAO's (Data Access Objects)
- PHP VO's (Value Objects)
- PHP AMFPHP Services (1 per business entity)
- AS2 ARP Commands to get/save/delete entities
- AS2 VO's (Value Objects)
- AS2 ARP Business Delegates
- a AS2 ARP Service Locator
To generate code:
- start the tool and enter your MySQL database credentials
- click "Connect", the database tables are shown in the checkboxlist
- select the entities (tables) you want to generate
- enter a package name
- enter the Flash Remoting gateway URL
- select the classes you want to generate
- click "Generate"
The code should now be created in an "output" folder in the same folder
where you started the executable.
Note that this is just a very basic idea. I have only started working on
it Saturday (listening to Muse, hence the name) and wanted more of proof
of concept before coding the whole tool. The generated code has not even
been tested (!!!), I'm just wondering if people would be interested in
such a tool.
Feedback is welcome !
Some of the code it generates is hard-coded at the moment. I've been
changing it since to be 100% template based. You can even create your own
templates for a project based on Cairngorm (don't shoot me ARP'ers ;-)) for
instance since you get a whole list of keywords you can use. Grant (ARP
extension mastah!) has been asking about creating code from EJB's, but since
have no background in that I can't answer now. We'll be looking into it.
Again, any feedback is much appreciated !
If this project is of any interest, maybe we can make it an OS one on
>I agree with some of what the person said:
>We definitely need a way to generate a stub application. A python script
>perhaps. I thought someone had something like this already... or was it
>that Python 20 minute video I was watching recently?
>Commands are definitely reusable. Perhaps the use of viewRef as the name
>of the reference to the event source is overly limiting. There's no
>reason why a command cannot invoke another command and set itself up as
>the event source by passing (this). The very reason Arp's commands have
>a reference to the event source is so that they can be reused.
>All the best,
>Arp mailing list
>Arp at ariaware.com
Arp mailing list
Arp at ariaware.com
More information about the Arp