<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Code generation for JBJCA
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/jeff.zhang">Jeff Zhang</a> in <i>JCA Development</i> - <a href="http://community.jboss.org/message/536179#536179">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi, I would like to create code generation for JBoss JCA project.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Goal:</p><p>To generate code and project configuration of JCA resource adapter. For the user, they can use this tools to generate JCA resource adapter project skeleton. That will include basic resouce adpater, managed connection factory, etc java files and ra.xml, plus ant build.xml file.</p><p>User can use this to input some configuration information and generate codes and use ant to package into rar file could be deployed into JCA container.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Research:</p><p>So far, it seems no other project could do this job. But there are some projects could generate codes of ejb.</p><p>We have 2 subtasks for this:</p><p>1. conclusion all important configuration in the rar package, like ra.xml properties, class filename, etc...</p><p>2. use template to write down the java source code and resource files</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Feature:</p><p>Phase 1:</p><p>1. use xml file as input file, user can edit this file to define configuration</p><p>2. module read from input file and get the variable tree (basic configuration)</p><p>3. apply the template to generate files (at first we can use simple write down output)</p><p>4. generate build.xml file, user can use ant the compile and package rar file.</p><p>5. standalone command line tool and ant task for this</p><p>6. JCA 1.6 annotation based and ra.xml defined</p><p>7. outbound/NoTx, Inbound&amp;Inout/LocalTx/XA</p><p>Phase 2:</p><p>1. maven plugin and pom.xml</p><p>2. JCA 1.5 and JCA 1.0 profile</p><p>3. add more configurations</p><p>4. maybe use template thirdparty jar to improve the feature</p><p>5. add testsuite for generated code base on JBJCA test framework.</p><p>Later:</p><p>Maybe eclispe plugin</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/536179#536179">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JCA Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>