Leonel
Leonel

Reputation: 29227

Weblogic: how to replicate server configuration?

We're setting up a development team, where we want each developer to run its copy of Weblogic in their workstations.

Ideally, we would like all these installs to be as similar to the production environment as possible. Things like:

I would like to set the server once and replicate the configuration to everyone on the team.

Is there a way to share this kind of configuration accross the team ? Maybe share some config files ? Some Weblogic jython script that recreates the environment ? How to do it ?

Weblogic version is Weblogic 12c.

Upvotes: 2

Views: 1532

Answers (4)

Shailender Jain
Shailender Jain

Reputation: 35

Oracle has recommended to use pack/unpack to extend domain. Both the commands are easy to use and can be executed easily

Upvotes: 0

Vyacheslav Shvets
Vyacheslav Shvets

Reputation: 1844

  1. Create new empty domain using standard tools (don't start it!)
  2. Init Git repository
  3. Commit the following folders and files:
    • bin/
    • config/
    • security/
    • fileRealm.properties
    • startWebLogic.cmd
    • startWebLogic.sh
  4. Create file servers/AdminServer/security/boot.properties for easier server start up and commit it.
  5. In startWebLogic.cmd make DOMAIN_HOME relative: set DOMAIN_HOME=%~dp0
  6. Remove absolute paths declarations in the files:
    • bin/setDomainEnv.cmd
    • bin/startManagedWebLogic.cmd
    • bin/startWebLogic.cmd
    • bin/stopManagedWebLogic.cmd
    • bin/stopWebLogic.cmd
  7. Start weblogic domain by click on startWeblogic.cmd
  8. Add JDBC and JMS settings via Administration Console. Commit only config/ folder and changed files (not new): git add config and git add -u
  9. Place additional jars into lib/ folder and commit.
  10. Share the repository with other people.

See example repository on github.

Upvotes: 1

Douglas
Douglas

Reputation: 1323

This kind of problem is addressed by infrastructure configuration automation tools, such as Ansible, Puppet and Chef.

Having an authoritative environment configuration defined using one of these tools can be not only useful for development environment setup purposes, but also for any other production or non-production environments.

Upvotes: 0

Trent Bartlem
Trent Bartlem

Reputation: 2253

Yes, using biemond/orawls. An example of how to use it is available here.

Upvotes: 0

Related Questions