tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <asot...@gmail.com>
Subject Re: Default definitions on tomee.xml
Date Mon, 16 Jun 2014 11:16:33 GMT
Yes but I cannot do something  like this in tomee.xml:

<tomee/>

and have there a DataSource defined by default ready to be used.

I know that I can do something like

<tomee>
  <Resource id="name" type="DataSource">
      JdbcUrl = jdbc:hsqldb:mem:my-ds
  </Resource>
</tomee>

And all the other fields are filled with default parameters.



2014-06-16 13:06 GMT+02:00 Jean-Louis Monteiro <jlmonteiro@tomitribe.com>:

> Yes, service providers are used as templates when creating resources.
> So yes, look at the service provider for Datasource type.
>
> --
> Jean-Louis Monteiro
> http://twitter.com/jlouismonteiro
> http://www.tomitribe.com
>
>
> On Mon, Jun 16, 2014 at 11:21 AM, Alex Soto <asotobu@gmail.com> wrote:
>
> > Only one thing I have seen that this is the serviceproviders definition
> but
> > what I meant was as resources.
> >
> >
> > 2014-06-16 12:05 GMT+02:00 Alex Soto <asotobu@gmail.com>:
> >
> > > Thank you
> > >
> > >
> > > 2014-06-16 12:00 GMT+02:00 Jean-Louis Monteiro <
> jlmonteiro@tomitribe.com
> > >:
> > >
> > > Here we are
> > >>
> > >>
> >
> http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/resources/META-INF/org.apache.openejb/service-jar.xml?view=markup
> > >>
> > >>
> > >> --
> > >> Jean-Louis Monteiro
> > >> http://twitter.com/jlouismonteiro
> > >> http://www.tomitribe.com
> > >>
> > >>
> > >> On Mon, Jun 16, 2014 at 10:58 AM, Alex Soto <asotobu@gmail.com>
> wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > I remember some time listening I don't remember where, that Apache
> > TomEE
> > >> > comes with a default Datasource definition and JMS Queue and Topic.
> > But
> > >> I
> > >> > don't remember where nor the values of these definitions.
> > >> >
> > >> > Do you know something about this fact?
> > >> >
> > >> > --
> > >> > +----------------------------------------------------------+
> > >> >   Alex Soto Bueno
> > >> >   www.lordofthejars.com
> > >> > +----------------------------------------------------------+
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > +----------------------------------------------------------+
> > >   Alex Soto Bueno - Computer Engineer
> > >   www.lordofthejars.com
> > > +----------------------------------------------------------+
> > >
> >
> >
> >
> > --
> > +----------------------------------------------------------+
> >   Alex Soto Bueno - Computer Engineer
> >   www.lordofthejars.com
> > +----------------------------------------------------------+
> >
>



-- 
+----------------------------------------------------------+
  Alex Soto Bueno - Computer Engineer
  www.lordofthejars.com
+----------------------------------------------------------+

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message