users@glassfish.java.net

Re: is it possible to use JPA without that persistence.xml file?

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Tue, 4 Aug 2009 12:21:56 +0200

you can create a network mapping the database machine, using a name
instead of a URL IP or other static address...

the DNS of your network is the key for your problem (IMO)



On Tue, Aug 4, 2009 at 12:19 PM, Sarah kho<sarah.kho_at_gmail.com> wrote:
> Hi
> Thank you for reading my post.
> I am looking for a way to use JPA but I want to set the connection url
> during application startup and not in the development time.
> I should run the application on multiple machines and each machine has its
> own ip address which database is running on t.
> I should change the connection url and create tens of distribution for all
> of computers which want to use it.  if there was a way to set the connection
> URL programmically all of my build and distribution problems will vanish.
> Thanks.



-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/footprint-service/wadl