Glassfish 管理脚本
我正在尝试将当前在 WebSphere 6.1 应用程序服务器上运行的 Web 应用程序迁移到 Glassfish 3.X 上。我目前有一组 WebSphere jacl 文件,用于为我的 Web 应用程序配置 WAS 实例(数据源、队列等),以及执行 jacl 文件的 .bat 和 .sh 文件(我认为是通过 wsadmin)。我在 Windows PC 上的 WAS 实例上进行开发,并在 Solaris 测试机上安装的 WAS 实例上测试该软件。
Glassfish 有等效的概念吗?
也就是说,Glassfish 是否具有独立于平台的管理脚本语言(如 WebSphere jacl/jython)的概念,可以通过 Windows .bat 文件或 Unix .sh 文件的调用来执行?
我对网络开发相对较新,因此我可能犯了一些概念性错误,您可能还需要填补我的问题中的一些空白。
谢谢
I am trying to move a web application that currently runs on WebSphere 6.1 application server over Glassfish 3.X. I currently have a set of WebSphere jacl files that configure an instance of a WAS for my web application (data sources, queues, etc.) and a .bat and a .sh file that execute the jacl files (I think via wsadmin). I develop on a WAS instance on my Windows PC and the software is tested on a WAS instance installed on a Solaris test machine.
Is there the equivalent concept for Glassfish?
That is, does Glassfish have a concept of a platform independent administration scripting language like WebSphere jacl/jython that can be executed from a call from a Windows .bat file or a Unix .sh file?
I'm relatively new to web development and so I may have made some conceptual mistakes and you may also have to fill in some gaps in my question.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以向 asadmin 提供配置脚本,其中包含 asadmin 子命令,例如部署和 create-jdbc-resource 等...
“语言”没有任何真正的控制流或循环结构,因此您需要展平脚本中的这些类型的内容将由您的 dot-bat 或 dot-sh 调用。
如果您真的利用 jacl/jython 这可能是不可能的...但如果您没有让这些解释器通过他们的步伐,asadmin“语言”可能对您来说足够丰富。
You can feed a configuration script to asadmin, that contains asadmin subcommands like deploy and create-jdbc-resource, etc...
The 'language' does not have any real flow-of-control or looping constructs, so you would need to flatten those types of things out of the script that would get called by your dot-bat or dot-sh.
If you are really leveraging jacl/jython this might not be possible... but if you aren't putting these interpreters through their paces, the asadmin 'language' may be rich enough for you.
是的,看看“asadmin”命令。它应该能够通过脚本配置您需要的大部分内容。
Yes, take at a look at the "asadmin" command. It should be able to configure most anything you need from a script.