[wildfly-dev] Issues in wildfly-javaee7-webapp-blank-archetype

Stuart Douglas stuart.w.douglas at gmail.com
Sun Nov 2 18:48:04 EST 2014


I don't think people are going to want to run (non toy) apps against our
built in h2 server, which means they will want to define their own
datasource. Leaving this file in the quickstart provides them with an easy
template to work from.

Stuart

On Sat, Nov 1, 2014 at 12:07 AM, Arun Gupta <arun.gupta at gmail.com> wrote:

> Default data sources is one of the new features of Java EE 7 and I think
> its worth showcasing how apps can be simplified with that. I'll let you
> decide upon resource/time but its useful IMHO.
>
> Arun
>
> On Fri Oct 31 2014 at 6:01:34 AM Sebastian Łaskawiec <
> sebastian.laskawiec at gmail.com> wrote:
>
>> Hi Arun!
>>
>> Wildfly archetypes are created based on Quickstarts (just as Rafael
>> mentioned here [1]).
>> In case of *wildfly-**javaee7-webapp-blank-archetype* it is *kitchensink*
>> [1]. Quickstarts are designed in such a way, that they can be deployed all
>> together (this is why they need separate datasources).
>>
>> So, test-ds.xml is a design consequence of how Quickstarts are embedded
>> into archetypes. In my opinion we won't be able to get rid of it.
>> Alternatively we could refactor all quickstarts to use default database -
>> which might be pretty time consuming.
>>
>> Best regards
>> Sebastian
>>
>> [1] https://issues.jboss.org/browse/WFLY-4030?focusedCommentId=13016156
>> [2] https://github.com/wildfly/quickstart/tree/master/kitchensink
>>
>>
>> 2014-10-30 13:04 GMT+01:00 Arun Gupta <arun.gupta at gmail.com>:
>>
>>> For Java EE 7, a default data source is available if none is specified
>>> in persistence.xml. In WildFly, this is mapped to ExampleDS already.
>>>
>>> Does test-ds.xml create a new data source, or map to an existing one ?
>>>
>>> Arun
>>>
>>> On Thu, Oct 30, 2014 at 1:28 AM, Sebastian Łaskawiec
>>> <slaskawi at redhat.com> wrote:
>>> > Hey
>>> >
>>> > I would like to volunteer for WFLY-4030 and a Quickstarts change:
>>> WFLY-4031.
>>> >
>>> > However I'm not sure about removing test-ds.xml. Maybe the point is to
>>> > show how to add DataSources bundled with the application?
>>> > On the other hand if this is not the point - I think we should change
>>> it
>>> > to ExampleDS.
>>> >
>>> > What's your opinion on that?
>>> >
>>> > Best regards
>>> > Sebastian
>>> >
>>> > On 10/29/2014 07:54 PM, Arun Gupta wrote:
>>> >> - What is the purpose of test-ds.xml ? It contains:
>>> >> This is anyway the default Java EE 7 data source in WildFly.
>>> >
>>> > _______________________________________________
>>> > wildfly-dev mailing list
>>> > wildfly-dev at lists.jboss.org
>>> > https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>>
>>>
>>>
>>> --
>>> http://blog.arungupta.me
>>> http://twitter.com/arungupta
>>>
>>> _______________________________________________
>>> wildfly-dev mailing list
>>> wildfly-dev at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>>
>>
>>
>>
>> --
>> Sebastian Łaskawiec
>>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20141103/472abb04/attachment.html 


More information about the wildfly-dev mailing list