[teiid-issues] [JBoss JIRA] (TEIID-4863) Run teiid embedded via Wildfly Swarm and Spring Boot

Kylin Soong (JIRA) issues at jboss.org
Fri Apr 28 02:08:00 EDT 2017


    [ https://issues.jboss.org/browse/TEIID-4863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399586#comment-13399586 ] 

Kylin Soong commented on TEIID-4863:
------------------------------------

h3. We already have a teiid fraction in swarm, why need develop another for teiid embedded?

Current swarm-teiid are followed with javaee fractions, which mainly focus on reconstructing WildFly to microservice type applications, smoothly migrating application from WildFly/JBoss, etc, the config-api are involved and increased redundancy, but we have to keep/maintain it, a class with main method is necessary to setup connectors/translators and deploy vdb.

Develops a swarm-teiid-embedded wrapped upon teiid-embedded will not depend on config-api, a main method class is optional, it will be more microservice way, it should support
* Auto-detect connectors/translators (the auto detect functionanity be well used in both Spring boot and WildFly-swarm, eg, if class path have a vendor of jdbc driver, the revelent datasource be setted up, if class path has jaxrs libries, the rest releated resource be init)
* Support .yml configuration. Current, most of Spring boot and WildFly-swarm application need a main() method as a startup entrypoint, but the .yml is degingned for replece the Main, there already have some implements in Swarm and spring boot. 

For example, to develop a Data Virtualization Platform, only add connectors/translators dependencies and vdb.xml, no main() method class, and packaged these with Swarm/Docker/kubernetes related Toolset plugin to a runnable jar, run like

{note}
java -jar sample-swarm.jar some-config.yml
{note}

then a embedded server started with connectors/translators installed, VDB deployed. The some-config.yml may like

{code}
swarm:
  connector: 
    file:
      parentDirectory: /path/to/data
  translator:
     jdbc:
     file:
{code}

h3. Have a detailed work plan or step-by-step/milestone-to-milestone to-do list?

No, still need some more reserch and estimation to make one.

h3. What's the relations, between support teiid embedded in Spring boot and WildFly swarm?

I think the work need to do in swarm are almost similar in Spring boot, so finish one, the other is just follow up.

h3. Links


[1] All WildFly Fractions - https://github.com/wildfly-swarm/wildfly-swarm/tree/master/fractions
[2] Teiid Config API - https://github.com/wildfly-swarm/teiid-config-api
[3] An example for auto-detect datasources and rest resources - https://github.com/wildfly-swarm/wildfly-swarm-examples/tree/master/datasource/datasource-auto-detect


> Run teiid embedded via Wildfly Swarm and Spring Boot
> ----------------------------------------------------
>
>                 Key: TEIID-4863
>                 URL: https://issues.jboss.org/browse/TEIID-4863
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Embedded
>    Affects Versions: 10.x
>            Reporter: Kylin Soong
>            Assignee: Kylin Soong
>             Fix For: 10.x
>
>
>  WildFly Swarm can use simple pojo to integrate framework, which compatible with  EmbeddedConfiguration, actually this is encouraged way.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the teiid-issues mailing list