dev@glassfish.java.net

Re: JPA in embedded GF?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Wed, 22 Jul 2009 12:40:32 -0700

That's what I did - I looked at ExistingDomainTest.java there. I don't see any
of them looking up a DataSource or a PU :(.

thanks,
-marina

Jerome Dochez wrote:
> look in the tests/embedded/inplanted, there are examples of using the
> embedded file system.
>
> jerome
>
> On Jul 21, 2009, at 3:25 PM, Marina Vatkina wrote:
>
>> What should setEmbeddedFileSystem() be set to? using my GF
>> installation (/export/v3/gfs/glassfishv3/glassfish) causes
>>
>>
>> java.io.FileNotFoundException: /export/v3/gfs/glassfishv3/lib/
>> install/applications/__ds_jdbc_ra
>>
>> (see missing "glassfish" after "glassfishv3").
>>
>> There are also strange NameNotFoundExceptions like "__SYSTEM" but
>> this can be a side effect of the original problem.
>>
>> thanks,
>> -marina
>>
>> Marina Vatkina wrote:
>>
>>> Jerome Dochez wrote:
>>>
>>>>
>>>> On Jul 21, 2009, at 8:41 AM, Marina Vatkina wrote:
>>>>
>>>>> Jerome Dochez wrote:
>>>>>
>>>>>> On Jul 20, 2009, at 10:01 AM, Marina Vatkina wrote:
>>>>>>
>>>>>>> Jerome Dochez wrote:
>>>>>>>
>>>>>>>> On Jul 17, 2009, at 7:18 PM, Marina Vatkina wrote:
>>>>>>>>
>>>>>>>>> Is it possible to use JPA with the latest embedded GF?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> no yet, I have not tried
>>>>>>>>
>>>>>>>>> If yes, how do I specify the details of the jdbc resource to
>>>>>>>>> be used?
>>>>>>>>>
>>>>>>>> you would need to run asadmin commands, the embedded way,
>>>>>>>> through the EmbeddedAdminContainer.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Is it possible to point to an existing domain.xml instead?
>>>>>>
>>>>>>
>>>>>>
>>>>>> yes you can do that see Server.ServerBuilder setEmbeddedFileSystem()
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Will it also load all apps registered in such domain?
>>>>
>>>>
>>>>
>>>> yes but that suppose you have a valid domains directory (inplanted
>>>> mode). why would you want to do that ?
>>>
>>> I won't, I'm afraid of side-effects :(.
>>> What the setEmbeddedFileSystem() should be set to and what is the
>>> expected behavior?
>>> thanks,
>>> -marina
>>>
>>>>
>>>>>
>>>>>>> If not, are there any examples that I can look at?
>>>>>>>
>>>>>> yes look at EmbeddedTest in distribution/web.
>>>>>>
>>>>>>>>> thanks,
>>>>>>>>> -marina
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>> For additional commands, e-mail: dev- help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>