<div>I find these files are missing from the template:</div>
<div>- pom.xml</div>
<div>- assembly/bundle.xml</div>
<div>- main/resources/{connector-name}.xml</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Sanjay<br><br></div>
<div class="gmail_quote">On Tue, Dec 15, 2009 at 12:24 PM, Sanjay Chaudhuri <span dir="ltr"><<a href="mailto:email2sanjayc@gmail.com">email2sanjayc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Great; these answers will help me to move forward. Shall come back incase I need additional info.</div>
<div> </div>
<div>I shall replace the loopback classes with the 5 template java classes I see on the Cdk connector for now.</div>
<div> </div>
<div>Thanks</div>
<div> </div><font color="#888888">
<div>Sanjay</div></font>
<div>
<div></div>
<div class="h5">
<div><br> </div>
<div class="gmail_quote">On Tue, Dec 15, 2009 at 11:48 AM, Ramesh Reddy <span dir="ltr"><<a href="mailto:rareddy@redhat.com" target="_blank">rareddy@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>Good questions.<br>
<div><br>> 1. <config-property> is defined as: description*,<br>> config-property-name, config-property-type, config-property-value?<br>> Will the ra.xml editor show a 4 column table only with the<br>> config-properties ? This would mean that we DO NOT show the whole xml<br>
> in a nested tree.<br></div>I do not think showing the whole tree is necessary. Our main aim here is<br>to add "user" properties that are specific to the connector needed to be<br>added easily. Those are "config-property" section. So, if we can add<br>
those through GUI that is enough to satisfy our need. You can leave<br>manual editing of "ra.xml" up to the user. We do not want hide the<br>resulting file either.<br>
<div><br>><br>> 2. Capability to add/delete description, property-name, property-type,<br>> property-value which would update ra.xml on the fly.<br></div>Yes. Note that "config-property-value" denotes a "default" value<br>
supplied by the user. Also, "config-property" can have multiple<br>"description" fields. May be you can let them add multi-line description<br>and add each line as one "description" element inside "config-property".<br>
Here is sample block.<br><br><config-property><br> <description>Is Immutable</description><br> <description>True if the source never changes.</description><br> <config-property-name>Immutable</config-property-name><br>
<config-property-type>java.lang.Boolean</config-property-type><br> <config-property-value>true</config-property-value><br></config-property><br><br>Note the "config-property-type", they can be any "java.lang" objects,<br>
may be you want to provide a "drop down" selection on that field.<br>
<div><br>><br>> 3. Do we need to validate schema restrictions ?<br></div>Yes/no, the ra.xml schema is defined by JCA 1.5 spec. You can find it<br>here<br><a href="http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd" target="_blank">http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd</a><br>
<br>If we let user manually edit, Yes. Which I think we should.<br>
<div><br>><br>> 4. Which properties class the get/set to be added ? Is the properties<br>> class generated if it's not in the workspace ?<br></div>The template will have a configuration class with name like<br>
"xxManagedConnectionFactory.java". Check here for the template classes I<br>promised. I will keep them updated if any changes and let you know.<br><a href="http://anonsvn.jboss.org/repos/teiid/branches/JCA/connectors/sandbox/connector-template/" target="_blank">http://anonsvn.jboss.org/repos/teiid/branches/JCA/connectors/sandbox/connector-template/</a><br>
<div><br><br>><br>> 5. How to use the optional <config-property-value> attribute in the<br>> properties class ?<br><br></div>Properties call will only have getters and setters. By having the "config-property-value"<br>
in the ra.xml file the container will automatically assign them on startup of connector.<br><br><br>Thanks.<br><font color="#888888"><br>Ramesh..<br><br></font></blockquote></div><br></div></div></blockquote></div><br>