<div>Hi Ramesh,</div>
<div> </div>
<div>Yes I understand. I was trying to compile both the jdbc and the loo-back connection, and was getting into issues while compiling in my workspace. What jars should be used by the end-user to develop any connector by an user from compilation standpoint ? I was using <strong>teiid-6.2.0-M3-dist </strong>and <strong>teiid-6.2.0-M3-cdk-dist </strong>for my tests.</div>
<div> </div>
<div>It is posible in eclipse to have the product level classpaths injected automatically in the environment through the plugins. (Eg. Right clicking any Java project, click <strong>Properties</strong>; click <strong><em>Add Lbrary</em></strong> and you would see libraries JUNIT, GWT, JEE libraries injected by the relevant plugins. I was thinking in similar lines, so users do not need to search for required libraries and have those added manually and this would also facilitate quick-fix operation, etc along with be able to maintain different jars version across different cdk versions. The generated template will thus be self sufficient and be erady for development.</div>
<div> </div>
<div>Thanks</div>
<div><br>Sanjay<br><br></div>
<div class="gmail_quote">On Tue, Oct 20, 2009 at 10:11 AM, Ramesh Reddy <span dir="ltr"><<a href="mailto:rareddy@redhat.com">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">Sanjay,<br><br>The "teiid-connector-sdk" provides a "execution" environment for a<br>connector during development of a connector. Based on the road map we<br>
may not want to use this at all, and directly use the Teiid runtime to<br>test a connector.<br><br>So, no to using cdk/lib. Yes, to use the "jars" directly. To start with<br>you can make it as user's responsibility to add this. If you want to get<br>
this automated, then we can think of making this a "maven" based<br>project, and just provide the dependencies in "pom.xml" and then they<br>will be downloaded from JBoss maven repository automatically, as all<br>
these libraries will be available though maven repository.<br><br>Also note "teiid-connector-sdk-6.2.0-SNAPSHOT.jar" is only currently<br>used for unit tests. The developer who is working with your plugin may<br>
not have the Teiid source at all, all he got is your plugin and a<br>document and he needs to build and test connector.<br><br>Thanks. Good questions keep em coming.<br><font color="#888888"><br>Ramesh..<br></font>
<div>
<div></div>
<div class="h5"><br>On Tue, 2009-10-20 at 02:24 -0500, Sanjay Chaudhuri wrote:<br>> Hi Ramesh,<br>><br>> Can you please let me know the jars would contain the following<br>> classes ?<br>><br>> org.teiid.dqp.internal.datamgr.impl.FakeExecutionContextImpl<br>
> com.metamatrix.core.util.UnitTestUtil<br>> com.metamatrix.query.metadata.QueryMetadataInterface<br>> com.metamatrix.query.unittest.FakeMetadataFacade<br>> com.metamatrix.query.unittest.FakeMetadataFactory<br>
> com.metamatrix.query.unittest.FakeMetadataObject<br>> com.metamatrix.query.unittest.FakeMetadataStore<br>><br>> As part of the CDK classpath, do I take all the jars from the cdk/lib<br>> directory or just use teiid-connector-sdk-6.2.0-SNAPSHOT.jar and<br>
> teiid-engine-6.2.0-SNAPSHOT.jar &<br>> teiid-connector-api-6.2.0-SNAPSHOT.jar ? Also<br>> teiid-connector-api-6.2.0-SNAPSHOT.jar is in the teiid distribution<br>> package and not in cdk/lib directory of the cdk kit. This kind of<br>
> defeats my plan to use the cdk kit as-is to register as a contributor<br>> sdk with version through extension point unless I manually copy it and<br>> make it a distribution. Using cdk kit as-is would facilitate choosing<br>
> any version of cdk from more than one avaiable versions at runtime.<br>><br>> Thanks<br>><br>> Sanjay<br>><br>> On Mon, Oct 19, 2009 at 4:41 PM, Ramesh Reddy <<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>><br>
> wrote:<br>> Sure, the directory is what prescribed by the Maven build<br>> process.<br>> Although there is no requirement for us to provide the build<br>> process in<br>> Maven this will help if one needs to move in that direction.<br>
><br>> Thanks<br>><br>> Ramesh..<br>><br>><br>> On Mon, 2009-10-19 at 16:38 -0500, Sanjay Chaudhuri wrote:<br>> > Hi Ramesh,<br>> ><br>> > Thanks. Will use connector-loopback to get started with<br>
> along with the<br>> > same directory structure as the template.<br>> ><br>> > Sanjay<br>> ><br>> ><br>> > On Mon, Oct 19, 2009 at 4:02 PM, Ramesh Reddy<br>
> <<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>><br>> > wrote:<br>> > Sanjay,<br>> ><br>> > No, Teiid do not have tools currently to produce the<br>
> > templates. Look in<br>> > the "connector-api" project's<br>> "org.teiid.connector.api"<br>> > package to see<br>> > the interface classes. Also,<br>
> "org.teiid.connector.basic"<br>> > package<br>> > provides the base class implementations of these<br>> interfaces.<br>> > The<br>
> > generated ones should extend the from basic and<br>> override<br>> > certain<br>> > methods.<br>> ><br>> > connector-loopback may be the simplest to see what<br>
> are must<br>> > have classes<br>> > to generate to provide a simple "hello world" kind<br>> of<br>> > connector.<br>> ><br>
> > connector-jdbc would be other extreme as to what we<br>> can do.<br>> ><br>> > The idea here somebody is trying to write these<br>> connectors,<br>
> > and we are<br>> > providing a development environment for them.<br>> ><br>> > Let me know if you have any questions. Thank you.<br>> ><br>
> > Ramesh..<br>> ><br>> ><br>> > On Mon, 2009-10-19 at 15:12 -0500, Sanjay Chaudhuri<br>> wrote:<br>> > > Hi Ramesh,<br>
> > ><br>> > > I had gone briefly through the connector<br>> development guide;<br>> > did not<br>> > > seem to see any direct java/dos command to<br>
> generate the<br>> > necessary<br>> > > template classes. It will be helpful if you can<br>> get me the<br>> > skeleton<br>> > > classes/interfaces, which will get generated<br>
> though the<br>> > Eclipse<br>> > > wizard.<br>> > ><br>> > > Under the extension directories I looked at the<br>
> sources for<br>> > some of<br>> > > these connector jars:<br>> > > connector-ldap-6.2.0-SNAPSHOT.jar<br>> > > connector-xml-6.2.0-SNAPSHOT.jar<br>
> > > connector-jdbc-6.2.0-SNAPSHOT.jar<br>> > > connector-text-6.2.0-SNAPSHOT.jar<br>> > ><br>> > > Thanks<br>> > ><br>
> > > Sanjay<br>> > ><br>> > > On Mon, Oct 12, 2009 at 8:48 PM, Ramesh Reddy<br>> > <<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>><br>
> > > wrote:<br>> > > Sumanth,<br>> > ><br>> > > Welcome, thanks for your offer to<br>> contribute. We<br>
> > sincerely<br>> > > appreciate any help.<br>> > ><br>> > > Currently Teiid does not mandate any<br>> coding<br>
> > guidelines,<br>> > > however there are few things we do follow.<br>> I try to<br>> > put<br>> > > something simple put together very soon on<br>
> WIKI.<br>> > Usually we<br>> > > use the default code formatting comes with<br>> Eclipse<br>> > install. I<br>> > > am thinking in the lines of<br>
> > ><br>> ><br>> <a href="http://www.jboss.org/community/wiki/JbpmCodingGuidelines" target="_blank">http://www.jboss.org/community/wiki/JbpmCodingGuidelines</a><br>> > > I will post to the dev-list in couple<br>
> days, you are<br>> > welcome to<br>> > > contribute.<br>> > ><br>> > > The digest replying instructions are<br>
> usually at the<br>> > beginning<br>> > > of the digest message. It is no more than<br>> selecting<br>> > the "reply<br>
> > > all" and changing the subject line to the<br>> reflect<br>> > the message<br>> > > you are replying to with "Re:" in the<br>
> front. Please<br>> > make sure<br>> > > that you include only sections of the<br>> message that<br>> > you are<br>> > > replying to. Since Teiid is low volume<br>
> list, you can<br>> > turn off<br>> > > the digest otherwise.<br>> > ><br>> > > Now coming to project, if you have any<br>
> ideas about<br>> > this<br>> > > tooling project, please let us know, we<br>> can discuss<br>> > and make<br>> > > them part of the project if we all agree.<br>
> I will let<br>> > Sanjay<br>> > > answer if he needs any assistance with the<br>> work.<br>> > Teiid has<br>> > > plenty of other tasks if you would like to<br>
> > contribute, both<br>> > > eclipse and non-eclipse related.<br>> > ><br>> > > If you only want to do "eclipse" work,<br>
> > > 1) we are in urgent need of Teiid<br>> integration with<br>> > Eclipse DTP<br>> > > (data tools platform). Basically Teiid<br>
> needs to<br>> > another<br>> > > source, where somebody can connect to and<br>> issue<br>> > queries<br>> > > against.<br>
> > > 2) We can also use this in Phase 2 of CDK<br>> tooling<br>> > project,<br>> > > where we can deploy connector to and issue<br>
> queries<br>> > aginst.<br>> > > 3)That could be expanded to tooling around<br>> the the<br>> > "Connector<br>> > > Metadata" feature, where some one could<br>
> define<br>> > multiple<br>> > > sources in DTP and integrate them using<br>> Teiid.<br>> > ><br>> > > We have ton of work on the non-eclipse<br>
> side too, lot<br>> > of issues<br>> > > are mentioned on the JIRA system.<br>> Submitting a<br>> > patches is<br>> > > excellent way to contribute, take a look<br>
> if anything<br>> > interests<br>> > > you.<br>> > ><br>> > > Let me know what interests you, then we<br>
> can plan and<br>> > discuss<br>> > > accordingly.<br>> > ><br>> > > Thanks again.<br>> > ><br>
> > > Ramesh..<br>> > ><br>> > ><br>> > > ----- Original Message -----<br>> > > From: "Sumanth P K"<br>
> <<a href="mailto:sumanth.technical@gmail.com">sumanth.technical@gmail.com</a>><br>> > > To: <a href="mailto:email2sanjayc@gmail.com">email2sanjayc@gmail.com</a>, "Ramesh<br>
> Reddy"<br>> > > <<a href="mailto:rareddy@redhat.com">rareddy@redhat.com</a>><br>> > > Cc: <a href="mailto:teiid-dev@lists.jboss.org">teiid-dev@lists.jboss.org</a><br>
> > > Sent: Monday, October 12, 2009 12:17:15 AM<br>> GMT<br>> > -06:00<br>> > > US/Canada Central<br>> > > Subject: Teiid Eclipse Plugin<br>
> > ><br>> > ><br>> > > Sanjay / Ramesh,<br>> > ><br>> > > I have been following the discussion<br>
> regarding the<br>> > > requirements of Teiid CDK Plugin for<br>> Eclipse. I am<br>> > interested<br>> > > in taking part in the process. Let me know<br>
> what<br>> > pieces I can<br>> > > start looking into and I can start the<br>> same. We may<br>> > need to<br>> > > come up with some preliminary standards<br>
> that<br>> > everybody should<br>> > > follow (for example: naming conventions,<br>> exception<br>> > handling to<br>> > > name a few), so that inconsistencies are<br>
> avoided.<br>> > ><br>> > > Ramesh - I know it has been quite a while<br>> since I<br>> > had<br>> > > communicated to you regarding this. I have<br>
> been<br>> > going through<br>> > > the documents and have some idea on how<br>> things work.<br>> > And I<br>> > > guess I am now better placed to understand<br>
> the terms<br>> > involved.<br>> > > To be honest the pace from my end had been<br>> slow, but<br>> > I intend<br>> > > to devote more time to this from now<br>
> onwards.<br>> > ><br>> > > Also, I had subscribed to the Teiid<br>> message digest<br>> > and hence<br>> > > can any of you please let me know how to<br>
> reply to a<br>> > specific<br>> > > mail in the digest. (I did not know how to<br>> do that<br>> > and hence<br>> > > had to send this email separately.).<br>
> > ><br>> > > Thanks,<br>> > > Sumanth.<br>> > ><br>> > ><br>> ><br>
> > > _______________________________________________<br>> > > teiid-dev mailing list<br>> > > <a href="mailto:teiid-dev@lists.jboss.org">teiid-dev@lists.jboss.org</a><br>
> ><br>> ><br>> > > <a href="https://lists.jboss.org/mailman/listinfo/teiid-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/teiid-dev</a><br>> ><br>
> ><br>> ><br>> > _______________________________________________<br>> > teiid-dev mailing list<br>> > <a href="mailto:teiid-dev@lists.jboss.org">teiid-dev@lists.jboss.org</a><br>
> > <a href="https://lists.jboss.org/mailman/listinfo/teiid-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/teiid-dev</a><br>><br>><br>><br><br></div></div></blockquote></div><br>