Lofi Dewanto wrote:

Hi Wouter,

thanks for your fast response! And also for a very good
comparison 2.x and 3.x.


yeah, but guys that publicly promote AndroMDA everywhere need to be treated well, don't you think? :-)


so basically point #1 is the one you are interested in, but all the others will affect your development too and will make it easier to complete the development.

   1. you will need to use the andromda-meta cartridge to model your
      cartridge in UML, with each PSM level element + the services it
      provides
   2. have andromda generate the facades from it
   3. implement the services in these facades
   4. use these object in your templates, your templates will almost
      read like English when your finished


Great. Yes, I already look a bit at some examples of 3.x cartridge and
they look very nice! (very OO! And that's why I would like to jump
to 3.x for all my cartridges in EJOSA as I also want to build some
domain dependent cartridges for the domain of "investment planning" and
"eLearning" :-)).


yep, depending on the complexity you'll spend more time, but for a typical EJB-style cartidge it shouldn't take too long (couple of weeks if you have the time)
mind you, IMHO the Hibernate and EJB cartridge do not fully use the metafacades' power yet, for example in the templates I can still find ${facade.name} while this should be ${facade.implementationClassName} or something
so all this kind of logic should not be duplicated in the templates (sometimes using macros) but instead it should be in the facades


the bpm4struts cartridge is doing this in more detail, mostly because it is impossible to do otherwise, it's simply too complex to manage to templates

2 Questions more if you don't bother:
- Can I use Poseidon to model my cartridge (andromda-meta)?


yes sure, you just need the class diagrams, although I /strongly/ recommend to use the MagicDraw community edition, this way (if you would contribute your code) all our cartridge models can be viewed using the same tool (Poseidon and MagicDraw store diagrams (=pictures) differently: it's not part of the XMI spec so they both use proprietary XMI extensions)


- Because the team server is down, can I read the HOW-TO
somewhere else?


http://www.andromda.org/docs is the temporary site for the docs, I am not sure if you'll get much info there ... it's better to take a look at one of the other cartridges and ask questions on the list (or instant messenger)

-> Check out from SF CVS - which version,


HEAD

-> Build the code with Maven - this is the part where I'm afraid at
   most - the 2.x was very easy to build, because you can start the
   ant build file directly from Eclipse... :-( But now, I need to
   read some docs...


don't worry Lofi, just copy the structure of one of the cartridges, update the project.xml and project.properties (you'll know what to do when you open them)
model your cartridge in UML


make sure you have maven-rc3 installed and then (assuming you checked out 'andromda-all') run this command: "maven dist" in andromda-all, this will build everything and will also download any dependencies into your local maven repository (${user.home}/.maven)

you are not expected to write one character of custom Maven stuff, the only thing is to do is update the project descriptor for your cartridge (needs your name, dependencies etc...)

trust me on this, maven made AndroMDA development a lot easier; try to do that with Ant and it quickly becomes unmanagable (bootstrapping etc... ugh!)

Thanks a lot for your help!


no problem

-- Wouter



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to