Wednesday, May 20, 2009

Sample script to FTP files

ftp -inv $FTPSERVER << END_SCRIPT
quote USER $FTPUSERNAME
quote PASS $FTPPASSWORD
put ABC*.dat
bye
##quit
END_SCRIPT

Friday, May 8, 2009

Simple Shell Script to iterate through list of files

Simple Shell Script to iterate through list of files and do the stuff.

FILES="TEST*.dat"
for f in $FILES
do
echo "Processing file file $f file..."
process_file $f
done

Friday, April 10, 2009

Using Jython Script to Deploy and undeploy app in WebLogic 10

I have seen some instances where jython script to deploy web application in WebLogic 10.1 does not works.
Here is solution for that , just undeploy application before deploying.
I tested and it works even when application is not deployed or already deployed in WLS 10.1.

Here is part of script.

connect('username','password','adminURL')
edit()
startEdit()

warName='testAppName'
archiveLoc='archiveLocation'
time='timeout'
server= 'targetServer'

stopApplication('appName')
undeploy('appName')
save()
activate(block="true")
edit()
startEdit()
deploy('appName',archiveLocation),server, time)
save()
activate(block="true")
disconnect()

Thursday, March 19, 2009

display tag pagesize issue

I am trying to use display tag pagesize using JSTL, Well Displaytag now works with my Custom property files , I used spring for externalization and it works fine with WLS 10.1. There is issue when we have Controller attribute same as model request scope value.