views:

42

answers:

1

Hey there,

Is there any way to simply copy the GlassFish v3.0.1 server settings (ie connection pools, resources, realms... ) to another GlassFish, so it is not needed to set them manually? This way it would be a lot easier to set up the same development environment.

Environment: NetBeans 6.9 + GlassFish 3.0.1

Thanks in advance, Daniel

+2  A: 

You should just be able to drop your glassfish\domains\<name_of_domain>\config\domain.xml file into your target domain and restart glassfish.

Catchwa
There is no `config.xml` file in that folder. I think you meant `domain.xml`, but that doesn't contain the whole config.
wheelie
@wheelie - yes, I meant `domain.xml`. Can you be more explicit about what settings you have set that aren't captured in `domain.xml`? Looking at the one I have, connection pools, resources and realms are all specified.
Catchwa
@Catchwa I checked my `domain.xml` and only those pools, resources, realms are set there that are default. I installed GlassFish bundled with NetBeans 6.9; Does NetBeans "deploy" those resources from another config file when I start GlassFish from inside NetBeans?
wheelie
I looked up `domain.xml` in the NetBeans configuration folder, and I found what I need under: `\Users\myUser\.netbeans\6.9\config\GF3\domain1\config\domain.xml`. Thanks Catchwa!
wheelie