Can you configure the jta or not aspect in context.xml?
Le 13 juin 2012 19:11, "Fernando Lozano" <[email protected]> a écrit :

> Hi,
>
> Why not in META-INF/context.xml ?
>
> Is there any difference betweeb context.xml and resources.xml? As TomEE is
> supposed to "bet tomcat" I'd configure a datasource the tomcat way, unless
> I'm missing something.
>
> And by the way, can I configure other kinds of resources, say JMS
> destinations, in context.xml and forget about resurces.xml?
>
>
> []s, Fernando Lozano
>
>  Put it in meta-inf/resources.xml
>> Le 13 juin 2012 18:52, "José Luis Cetina" <[email protected]> a écrit
>> :
>>
>>  My web app is using the datasource that i set in tomee.xml like this:
>>>
>>> <Resource id="MyDataSource" type="DataSource">
>>>  JdbcDriver com.mysql.jdbc.Driver
>>>  JdbcUrl jdbc:mysql://localhost:3306/**mydb
>>>  UserName myuser
>>>  Password mypass
>>>  JtaManaged true
>>> </Resource>
>>>
>>> How can i set this configuration inside my app (not in the server)?
>>>
>>> ------------------------------**------------------------------**-------
>>> *SCJA. José Luis Cetina*
>>> ------------------------------**------------------------------**-------
>>>
>>>
>
>

Reply via email to