如何导出WAS 6.1服务器配置 [英] How to export WAS 6.1 server Configuration

查看:295
本文介绍了如何导出WAS 6.1服务器配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法,我可以从WAS(运行在RAD 6下)导出我的服务器设置,以便其他开发人员将能够使用相同的脚本来设置其环境?

解决方案

要在 RAD 6.x 中手动执行此操作,只需右键单击服务器名称服务器视图并选择以下选项之一:




  • 将服务器配置导出到服务器

  • 从服务器导入服务器配置



这里的措辞的选择是潜在的混乱。导入从已配置的服务器获取配置并将其作为配置文件( .car )文件。

是的,我同意这听起来完全倒退。



幸运的是,这些名字在 RAD 7.x <强>。选项为:




  • 服务器配置 - >备份...

  • 服务器配置 - >恢复...



这些行为正如您所想象的(备份



重要注意事项:此过程将导出服务集成总线。


  1. 汇出CAR档案

  2. 重命名为 .zip 文件以方便查看

  3. 将以下文件从服务器配置文件手动复制到归档文件中:

    • cells /< cell_name> / bus / *

    • /<cell_name>/nodes/<node-name>/servers/server1/sib-engines.xml


  4. 将档案重新命名为 .car

过程可能高度依赖于我的具体配置,但似乎值得一提,因为它为我节省了很多麻烦。



另一个提示:从CAR中恢复服务器配置时,您放置在CAR中的任何文件和文件夹都将被愚蠢地复制到您的配置文件目录中。这很方便,因为您可以在CAR文件中包含必要的第三方库,并通过相对于您的配置文件目录的WAS变量引用这些库,从而减少开发人员下载或配置的事情。


Is there a way in which I can export my server settings from WAS (running under RAD 6) such that other developers will be able to use the same script to set up their environment?

解决方案

To do this manually in RAD 6.x, simply right-click the server name in the "Server" view and choose one of:

  • Export server configuration to server
  • Import server configuration from server

The choice of wording here is potentially confusing. An import takes a configuration from the already-configured server and imports it into your workspace as a Configuration Archive (.car) file. An export asks for the location of a Configuration Archive (which must be in your workspace) and exports the settings it contains onto your server.

Yes, I agree that this sounds completely backwards.

Fortunately, the names are much more sensible in RAD 7.x. The options are:

  • Server configuration -> Backup...
  • Server configuration -> Restore...

These behave just as you'd imagine (Backup creates an archive file and Restore imports settings from an existing archive file.)

Important note: This process will not export service integration buses. However, I have had success including buses with the following steps:

  1. Export a CAR file
  2. Rename to .zip file for easy viewing
  3. Manually copy the following files from your server profile into the archive:
    • cells/<cell_name>/buses/*
    • cells/<cell_name>/nodes/<node-name>/servers/server1/sib-engines.xml
  4. Rename the archive back to .car

Note that this process is probably highly dependent on my specific configuration, but seems worth mentioning, since it has saved me a lot of trouble.

Another tip: Any files and folders you place inside the CAR will be dumbly copied into your profile directory whenever restoring a server configuration from that archive. This is convenient, because you can include necessary third-party libraries in the CAR file and reference them via WAS variables relative to your profile directory, resulting in one less thing for developers to download or configure.

这篇关于如何导出WAS 6.1服务器配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆