Is there a simpler way to deploy to WebSphere?
Asked Answered
C

4

10

I have seen this question about deploying to WebSphere using the WAS ant tasks.

Is there a simpler way to do this? In the past I have deployed to Tomcat by dropping a war file into a directory. I was hoping there would be a similar mechanism for WebSphere that doesn't involve calling the IBM libraries or rely on RAD to be installed on your workstation.

Companionway answered 11/9, 2008 at 18:32 Comment(0)
P
3

There is the concept of WebSphere Rapid Deployment. It's supposed to be the same experience as what you describe for Tomcat.

Panzer answered 19/5, 2009 at 8:39 Comment(0)
U
4

Just a hint: if you activate "Log command assistance commands" in System Administration / Console preferences, you will get a logfile in the server log directory that contains the jython scripts for all actions you did on the console. So you can just deploy your stuff per console the first time, and then grab the commands for later and feed them into wsadmin.bat -lang jython "thecommandscomehere" for the next deployment.

Upsilon answered 11/12, 2008 at 14:27 Comment(0)
A
3

One way to do it could be using Jython or jacl scripts. See those samples at IBM site.

[EDIT] Especially the wsadminlib.py.zip download near the bottom of the page contains a huge set of examples and helper functions to get you started.

Achromaticity answered 11/9, 2008 at 18:41 Comment(3)
That seems to be the only other way to do it...I'm not really sure if it's actually "simpler" though!Companionway
I personally have found the JACL approach to be "not fun"Intracardiac
JACL is depricated anyway, just use JythonPanzer
P
3

There is the concept of WebSphere Rapid Deployment. It's supposed to be the same experience as what you describe for Tomcat.

Panzer answered 19/5, 2009 at 8:39 Comment(0)
P
1

WAS does provide a client jar containing some custom ant tasks. However they seem to be extremely bugy and dont work with remote servers.

IBM ANT TASK Javadoc

Netbeans also has support for was 6 and 6.1 but this again is still quite buggy, however it can be useful for generating some the bindings files etc.

Phototonus answered 30/10, 2008 at 22:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.