开发者

how to deploy an ear file in websphere application server

I want to deploy an ear file which will automatically run the ear file with all the configuration in my Web Sphere applicat开发者_运维问答ion server.


Oh ok. That makes more sense. Well, what you really want then is the ability to set up (ie, configure) the WAS container, and then deploy your application. IBM actually provides a way to do this. There is a shell script/batch file (depending on your OS) that gets you into the WAS administration area without having to get to the admin console. It is called wsadmin. You can fire that up with whatever parms you need to (depends on if you are running WAS Base or WAS ND, etc.) so you connect to the right cell/node/server and profile. You can then pass in a Jython script (which is IBM's recommendation for configuring WAS). This script can configure WAS and even deploy your applications. We use it all the time here. If you are unfamiliar with Jython, there is a "cheat" method to get you started. In your local RAD or RSA install, when you "deploy" your code locally (ie, only works if you export your EAR and then try to install it through the admin console), there is a link off to the top right of the screen of the admin console that shows you the Jython script necessary for the steps you just performed. We used that to give us a jump start on the commands necessary to perform certain things.

I know it isn't NSIS script, but you will really get better support from IBM if you stick to Jython. Let me know if this was helpful. If it doesn't seem to make sense, give a holler.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜