Using HTTP instead of T3 for WebLogic Scripting Tool (WLST)

A friend of mine asked why the WLST connection from the Jython based scripting tool is only working with t3. IMHO using t3 for WLST is not a big deal since it is a WebLogic tool talking to WebLogic itself, and t3 was built and optimised for that.

You might want to replace t3 with HTTP anyway, e.g. for one the following reasons:

- for the sake of standards, you want to use as many standard protocols as possible. t3 is WebLogic vendor specific.

- you might have problems with t3 when connecting through firewalls.

 

Easy Solution

Here is the good news. Unknown to many, WLST does work with HTTP if you enable tunneling for the Admin server ( Admin Server / Protocols / General ).

Screen Shot 2015-03-02 at 10.24.50

then it’ possible to use HTTP for WLST:

wls:/offline> connect('weblogic','welcome1','http://localhost:7001')
Connecting to http://localhost:7001 with userid weblogic ...
Successfully connected to Admin Server "AdminServer" that belongs to domain "simon".
Warning: An insecure protocol was used to connect to the 
server. To ensure on-the-wire security, the SSL port or 
Admin port should be used instead.

Using a Network Channel

Alternatively if you want to separate the admin traffic but not use SSL (which would be enforced e.g. by using the administration port feature of WebLogic), you could create a network channel under Admin Server / Protocols / Channels for the t3 protocol, e.g. on port 8888 and enable “Tunneling” for that channel. Note that http is already enabled for the channel but this is not enough, you must enable tunneling.

Screen Shot 2015-03-02 at 10.15.29

 

Administration Port

The third and most secure possibility of course is using tunneling in combination with the administration port.

 

Comments:

– You do not need the administration port for using WLST with HTTP.

– It’s not required to change WLST from t3 to HTTP. This posting only shows how it can be done if one of the reasons above apply to you.

– Changing other clients from t3 to IIOP or so, e.g. JMS clients or standalone Java clients using RMI typically has more implications which are not discussed here.

 

More?

If you want to learn more about the basics WebLogic scripting tool I recommend to start with the following web cast.

Winners of the Christmas Cloud Book Raffle

The winners for the yearly Christmas Book raffle were drawn. Three people won a copy of Middleware and Cloud Computing Book:

  • Jean-Nicola M. (drawn for FB retrweet)
  • @HeshamAboElMagd (retweet)
  • @ashish__awasthi (retweet)

 

Enjoy the book guys. It’s on the way already!

Base64 Encode / Decode with Python (or WebLogic Scripting Tool)

I had to estimate the effort for decoding a Base64 encoded message. Honestly :) A reminder to self (and for others working in the dark spheres of lowest level integration).

 

Python / WLST

You can easily decode a Base64 message in Python. With WebLogic installed this obviously is working with WLST (also in offline mode). No imports, no nothing, no questions asked:

‘Base64Encoded_String’.decode(‘base64′)

Online (I am tempted to write PaaS :-) )

For a quick I-need-to-get-this-decoded solution try one of the online services such as

https://www.base64decode.org which is working pretty well for me.

Christmas Book Raffle

Win a free copy of Middleware and Cloud Computing

I just completed a 1 day Multi-Cloud Computing workshop in Nuremberg covering Amazon, Google, Rackspace, Oracle and Openshift – all the major clouds and how clouds impact software development.

Christmas is just a few weeks away and I am gifting 3 copies of my Middleware and Cloud Computing book.

 

All you need to do to participate is either share the Facebook posting:

 

or retweet the following tweet

Good luck!

No purchase required :-) no cash disbursement and/or an replacement of the prizes is possible,Deadline is Dec 19th, 2014.

Cloud Workshop (AWS, Google, OpenShift, Oracle, Rackspace, Netflix OSS, Docker)

Cloud Training Course

A fortnight ago I was running a hands-on cloud training day in Nuremberg covering the most important public clouds and how clouds change software development.

Feedback

I actually tried, but with 30 attendees I was even too busy to take a picture of the overcrowded room (the workshop was fully booked). Anyway, feedback forms say that 97% were very happy or happy with the workshop.

thanks!

ps. Don’t miss out the Christmas book raffle.