如何导出 WAS 6.1 服务器配置

发布于 2024-08-27 21:23:01 字数 70 浏览 4 评论 0原文

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

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

時窥 2024-09-03 21:23:01

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

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

这里的措辞选择可能会令人困惑。 导入从已配置的服务器获取配置,并将其作为配置存档 (.car) 文件导入到您的工作区。 导出要求配置存档的位置(必须位于您的工作区中)并将其包含的设置导出到您的服务器上。

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

幸运的是,RAD 7.x 中的名称更加合理。选项是:

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

这些行为正如您想象的那样(备份创建存档文件,恢复从现有存档文件导入设置。)

重要提示:此流程不会导出服务集成总线。但是,我已经成功地通过以下步骤包含总线:

  1. 导出 CAR 文件
  2. 重命名为 .zip 文件以便于查看
  3. 将以下文件从服务器配置文件手动复制到存档中:
    • cells//buses/*
    • cells//nodes//servers/server1/sib-engines.xml
  4. 将存档重命名回 .car

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

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

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.

各自安好 2024-09-03 21:23:01

您可以使用 AdminTask 使用 wsadmin 脚本编写工具导出和导入命令。如果您同时也非常认真地考虑如何将应用程序发布到生产环境,那么您可能应该创建 wsadmin 脚本来在任何情况下部署所有所需的设置。

此外,您可能需要考虑分发虚拟机或简单地从参考安装复制服务器安装。

You can export and import the profile with all its configuration using AdminTask export and import commands with the wsadmin scripting tool. If you are really serious also at the same time about how you release the applications to production environments you should probably create wsadmin scripts for deploying all your required settings in any case.

Also you might want to consider distributing virtual machines or simply copying the server installation otherwise from a reference installation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文