How to configure a Shared Library in WebSphere with Jython

Here's a script that I used to configure a Shared Library in WebSphere 6.1 using Jython. [sourcecode language="python"] from string import whitespace sharedLibName = "APPLICATION_SHARED_LIB" # See if library already exists. cellId = AdminConfig.list("Cell") sharedLibraryId = AdminConfig.list("Library") if (sharedLibraryId.find(sharedLibName) < 0): # Library does not exist. print "Creating Shared Library" params = []; params.append(["name", sharedLibName]); …

Continue reading How to configure a Shared Library in WebSphere with Jython

How to configure WebSphere Global Security to use LDAP with Jython

Here's a script that I used to configure the WebSphere 6.1 global security setting to use LDAP using Jython. [sourcecode language="python"] # Properties username = "user" password = "pass" ldapServer = "somecompany.com" ldapPort = "389" # Configure the LDAP authentication AdminConfig.save(); # This needs to happen so you can write to the Security file. ltpa …

Continue reading How to configure WebSphere Global Security to use LDAP with Jython

How to get JAX-WS Web Service Method Name

I'm not sure if this will always work, but here is some sample code that I put into a Handler to log the web service method name that is being called. I wanted to be able to track each method, and see which ones were getting use. This web service was running on IBM WebSphere …

Continue reading How to get JAX-WS Web Service Method Name