<!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="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss 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;">
    Re: Error during (re) adding connection factory using CLI
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/maeste">Stefano Maestri</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/735062#735062">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><blockquote class="jive-quote"><p>Ramesh Reddy wrote:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Stefano,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is under Teiid tooling api, as user adds/removes the data models to virtual database these actions are performed. So, we really do not have total control over it. The issue surfaced when we tried to add (using CLI) </p><ul><li style="text-align: start;">two different connection factories under one resource-adapter</li><li style="text-align: start;">two spearate resource-adapters using the same RAR file but with individual connection factory inside it</li></ul><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">it behaves exactly the same way with same exception. The above is prime usecase in Teiid as it can have multiple connections of same resource-adapter but to different sources. For example, different salesforce accounts or different web-services. May be you can also test above scenarios after your fix.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p>I'llinvestigate. But it's quite strange, it's the primary use case we was covering w/ resource-adapters. I belive we have also test cases about that, but I'll be back to you when verified.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="text-align: start;">Also, I really do wish the "activate/enable" and corresponding "deactivate/disable" at the connection factory level rather than the resource-adpater level. This would match to the "data sources" behavior. You can keep the add/remove at the resource-adpater level. Currently IMO, configuration aspects are mixed with the runtime aspects with "activate/remove" calls, they should be separate.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote><p>We will see if we can do something in next release. We CAN'T change API at this stage of course.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>regards</p><p>S.</p></div>

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


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

</div>

</body>
</html>