On UNIX/Linux/Cygwin/etc: export SERVER_USER=andy export SERVER_NAME=test.jboss.org export REMOTE_JBOSS_HOME=/opt/jboss export CONFIG=default
scp jbossrocks.ear [EMAIL PROTECTED]:/tmp echo "cd $SITE_LOC" ssh -l $SERVER_USER $SERVER_NAME "mv /tmp/jbossrocks.ear $REMOTE_JBOSS_HOME/server/$CONFIG/deploy" Ftp is more or less a big fat security hole like telnet. Wherever possible, use "scp" and/or "sftp". The above copies jbossrocks.ear to your server then uses ssh to move it. I suggest using the certificate style rather than password style. (this talks about ssh+keys over CVS but you only have to go half that far: http://www.e-smith.org/docs/howto/cvs_ssh_howto.html) Alternatively you could use web-based deployment ala the JMX console. Farming to get it on the other servers or have jboss scan a url instead of deploy. Pretty much JBoss is whatever you want it to be. -Andy > From: ibo <[EMAIL PROTECTED]> > Reply-To: "Research Triangle Java User's Group mailing > list."<[EMAIL PROTECTED]> > Date: Tue, 18 May 2004 20:56:36 -0700 (PDT) > To: "Research Triangle Java User's Group mailing list." <[EMAIL PROTECTED]> > Subject: Re: [Juglist] Remote deployment to Websphere Application Server? > > --- [EMAIL PROTECTED] wrote: >>> With JBoss it's very easy as I just FTP the .ear >> file into >>> the deployment directory and JBoss automatically >> handles the >>> rest... does WAS have any synomous functionality, >> or is it >>> much more complicated? >>> >> >> You shouldn't do that. You should FTP it to the >> file system and then MOVE >> it into deploy. The problem is that FTP is not >> atomic where move is. > > Im following the thread bec im using Jboss. if im > going to automate this, ill use the FTP ant task, but > im not sure if you can do a "move" after the FTP (can > you)?. whats the alternative? (like an atomic ftp or > something). > > > > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! - Internet access at a great low price. > http://promo.yahoo.com/sbc/ > > _______________________________________________ > Juglist mailing list > [EMAIL PROTECTED] > http://trijug.org/mailman/listinfo/juglist_trijug.org _______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
