Sunday, August 15, 2010

Welcome Eclipse 3.6 and WLST support!

Eclipse 3.5 = GALILEO
Eclipse 3.6 = HELIOS

here
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-main-097127.html
download WLS 11gR1 BUT it's still with Eclipse 3.5.2 :o(

here www.oracle.com/goto/oepe you get OEPE with 3.6, but not integrated with WebLogic.
Basically this is http://www.oracle.com/technetwork/developer-tools/eclipse/overview/index.html

here some comments:
http://www.infoq.com/news/2010/08/oracle_enterprise_pack_helios_ec

here
http://oracle.mobi/quickPage.html?page=15970&content=41332731&pageNum=-1
it says:

WebLogic Scripting Tool (WLST) features – bring new Oracle WebLogic Server administration support to Eclipse with:
Jython/Python IDE for WLST, based on PyDev – provides full syntax highlighting, validation, and code completion for WLST scripts;
Define and reuse WLST templates – accelerate WLST script editing;
Oracle WebLogic MBean explorer – visualizes the server MBean tree for easy drag and drop to the WLST script;
Integrated WLST console – provides script execution and debugging tools from within Eclipse in both online and offline modes;
WLST integrated help – makes it easy to access documentation for WLST commands.


HOW TO USE IT?

Create a Utility project, set a runtime target WL 11g patchset 2, choose the WL home.
Project, Project Facets, enable WLST.
New WLST script. Give a .py extension.


It opens a template:


#Conditionally import wlstModule only when script is executed with jython
if __name__ == '__main__': 
    from wlstModule import *#@UnusedWildImport

print 'starting the script ....'
username = 'weblogic'
password = 'welcome1'
url='t3://localhost:7001'

connect(username,password,url)


edit()
startEdit()


try:
    save()
    activate(block="true")
    print "script returns SUCCESS"   
except Exception, e:
    print e 
    print "Error while trying to save and/or activate!!!"
    dumpStack()
    raise 
    


Do Show/View/ WLST Help.

Search Eclipse help for WLST, there is interesting information.

Start WebLogic,
Add the WL server to the list of servers in the Servers view,
then Window, Show View, WebLogic MBean Explorer

Show/Console/WLST and you go into wls:/offline

To run the .py script, right-click, run as WLST Run, or WLST Debug.

No comments: