Menu

cocoon & questions

2002-04-13
2002-10-21
  • Jay Walters

    Jay Walters - 2002-04-13

    Hey this is great stuff.  I built something like this for my last employer and they're sitting on it so I'm looking for someplace to do some work. 

    What is cocoon in the download for?

    Have you all thought of using stereotypes in the UML so that you get more flexibility?

    Cheers

     
    • Jay Walters

      Jay Walters - 2002-04-13

      Shouldn't reply to my own questions with more, but hey...

      What XSLT processor are you using?  I just gave it a go with XALAN 2.3 and it seems to be working.  Have you thought about putting the required jars into the package?

      Also you've got ^M characters in the run.sh script.

      Cheers

       
      • Dru Jensen

        Dru Jensen - 2002-04-16

        Jay,

        I originally thought of using cocoon for processing.  I'm impressed with cocoon's approach to design but I could not get a scaled down version to work.  There were to many ties to processing ui/web pages that removing unnecessary features was difficult to perform.  I finally realized that what i wanted to do doesn't have to be that complicated. 

        I've been using jdk 1.4.0 which has the needed XSLT processor.  I'll remove the cr's from the shell scripts.

        I started down the stereotype path but backed away for simplicity.  It should be simple to change from using the package name to using the stereotype.

        Are you interested in doing development on this?  I have little time and could us some help.

        thanks,
        dru

         
    • Jay Walters

      Jay Walters - 2002-04-17

      I am not sure how much time I have either.  I think we could add stereotypes and tagged values to the model and increase the richness pretty dramatically.

      Does the struts stuff work?  I didn't seem to get anything generated for the example I was playing with.

      What type of navigation model do you use with the objects - What types of pages/forms do you generate?

      Cheers

       
      • Dru Jensen

        Dru Jensen - 2002-04-17

        Yes.  create a package named ui under the same root as entity, copy the classes from entity to ui.  This should create a Form, create/edit/store/delete/findall/findprimarykey actions, and list/edit jsp pages with the struts config files.  This will be a working ui to access the entity beans. It does not build resource files yet.

         
    • Anonymous

      Anonymous - 2002-09-06

      Just looking at SF. Stumpled at this one. Yee, I am very pleased. Downloaded it and it compiled all right. But I have seen that the last entry is of April. Are there still activities on this one??

       
      • Dru Jensen

        Dru Jensen - 2002-10-18

        Huub,  I have not been doing anything on this project.  Had a baby, its a girl.  too much to work and keep this updated.  It's pretty simple stuff though.  You can always use it and modify it.  If you do something really cool with it,  send it my way and I will try to add it in.

         
    • Anonymous

      Anonymous - 2002-10-18

      The solution of generating Java-Code runs quite well for the first time. But what do you do after a change in a single class? the XSLT generate the code new for all classes. Is there any solution to this problem? E.g. a grafical user-interface or is it possible the determine the change in the XMI-File ?

       
      • Dru Jensen

        Dru Jensen - 2002-10-18

        I think TogetherJ probably has the best EJB generation tools from UML since it doesn't require conversion back and forth between diagram and code.  To answer your question, most apps like this will insert comments in the Code generated that allow for reverse engineering back into the diagrams.  This will allow the tool to determine which code is generated and which code is manual.  I've seen other attempts at using pre-processors, OO inheritance, callback patterns, etc but none seem clean.  The latest is AspectJ which has some really cool ideas for Aspect Oriented Programming.  I think this area has good potential but for this project,  the answer is no.

         
        • Anonymous

          Anonymous - 2002-10-21

          I don't think at reverse engineering at first. When you make a change in the modelling of one class, the XSL-Tranformator generats all classes new. But it's only necessary to generate one class new. It's so, because the transformater process the entire XMI-file. Is there any solution to select classes from the XMI-File oder to determine changes in the modelling stored in the XMI-file ?

           

Log in to post a comment.

MongoDB Logo MongoDB