Relatively new to WebSphere but I use this:
[code jython]
before = AdminApp.list().split(eol)
AdminApp.install(earfile, installoptions)
after = AdminApp.list().split(eol)
appname = ""
for app in after:
if app not in before:
appname = app
break
log.info("Done installing.")
log.info("Application name is: " + appname)
return appname
[/code]
HTH
Gerard