tag:blogger.com,1999:blog-1839316484051079047.post1930568651105442658..comments2024-03-28T06:38:40.958+01:00Comments on Java / Oracle SOA blog: Invoking FMW Application MBeans in WeblogicEdwin Biemondhttp://www.blogger.com/profile/02338716126881111629noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-1839316484051079047.post-83269498685598074602015-06-11T16:50:38.399+02:002015-06-11T16:50:38.399+02:00Hi Edwin,
How can we get only Names of the deploy...Hi Edwin,<br /><br />How can we get only Names of the deployed composites into a variable?Anonymoushttps://www.blogger.com/profile/08798989282012684197noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-12759167906760779582015-03-03T07:39:27.334+01:002015-03-03T07:39:27.334+01:00Hi Edwin,
I'm trying to do 2 things using wls...Hi Edwin,<br /><br />I'm trying to do 2 things using wlst/jython<br /><br /> - list jms resource policy using wls:/xxx_domain/domainConfig/SecurityConfiguration/xxx_domain/Realms/myrealm/Authorizers/XACMLAuthorizer> cmo.getPolicy('type=,application=xxxJmsSystemResource')<br /><br />but I don't get any results. I have a policy configured on this resource with 2 users.<br /><br /PKnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-46983557654795330312015-03-02T19:03:27.342+01:002015-03-02T19:03:27.342+01:00connect(XXX)
domainRuntime()
helloworldComposite ...connect(XXX)<br />domainRuntime()<br /><br />helloworldComposite = ObjectName('oracle.soa.config:Location=gpossoa_wdvra00a281_11582,partition=default,j2eeType=SCAComposite,revision=1.0,Application=soa-infra,name="HelloWorldSOA2"')<br />print helloworldComposite<br />params = ['auditLevel','Development']<br />sign = ['java.lang.String','Anonymoushttps://www.blogger.com/profile/09780943560554577596noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-22253582244170015952015-03-02T18:33:07.362+01:002015-03-02T18:33:07.362+01:00HI All,
I am trying to change AUDIT LEVEL for a pa...HI All,<br />I am trying to change AUDIT LEVEL for a particular Composite called HelloWorldSOA2. But i am getting error whilte running the script as per this blog. <br /><br />I am calling this object.<br />helloworldComposite = ObjectName('oracle.soa.config:Location=gpossoa_wdvra00a281_11582,partition=default,j2eeType=SCAComposite,revision=1.0,label=HelloWorldSOA2,Application=soa-infra,Anonymoushttps://www.blogger.com/profile/09780943560554577596noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-54521306365944256022014-04-17T19:08:46.653+02:002014-04-17T19:08:46.653+02:00Hi Edwin,
I am very new to Custom WSLT and I have...Hi Edwin,<br /><br />I am very new to Custom WSLT and I have a requirement to create new Custom Log Handler in WLST.<br /><br />I followed some Oracle Documentation and came up with this basic code for a Single Instance SOA Suite Server (AdminServer, soa-infra).<br /><br />#Load the Properties and get the values <br />properties = loadProperties('ApplicationDeployments.properties')<br />Anonymoushttps://www.blogger.com/profile/07089378927093492515noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-46994230199874267792011-11-08T12:18:52.366+01:002011-11-08T12:18:52.366+01:00Hi,
great post on WLST. But let me ask a question...Hi,<br /><br />great post on WLST. But let me ask a question: I'm trying to do this kind of manipulations through Java. Can you direct me to any kind of documentation or examples on how to query SOA Suite MBeans?<br /><br />Thanks in advanceTiago Soareshttps://www.blogger.com/profile/02906087594470917203noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-75749245706234854582011-08-30T21:27:44.511+02:002011-08-30T21:27:44.511+02:00Hi,
Thanks. It's all enterprise manager and s...Hi,<br /><br />Thanks. It's all enterprise manager and some web syntax highlighting framework.<br /><br />thanks edwinEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-72419940840647603822011-08-30T10:47:09.600+02:002011-08-30T10:47:09.600+02:00Hi Edwin,
very useful hints fro scripting.
By the...Hi Edwin,<br /><br />very useful hints fro scripting.<br />By the way, which editor you are using?<br />Is it Notepad++?<br /><br />Brgds,<br /><br />LoukasAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-14751393293594894672011-08-01T20:02:03.233+02:002011-08-01T20:02:03.233+02:00Hi,
you can also use this ANT script
40.7.5.2.17...Hi,<br /><br />you can also use this ANT script<br /><br />40.7.5.2.17 Listing All Available Partitions in the SOA Infrastructure<br /><br />ant -f ant-sca-mgmt.xml listPartitions -Dhost=host -Dport=port -Duser=user<br /><br />very simple.<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-43018108370124976522011-07-29T17:32:17.173+02:002011-07-29T17:32:17.173+02:00Can we get the list of partitions using WLST in a ...Can we get the list of partitions using WLST in a script using sca_listPartitions or any other way, Thanks in advance.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-76529116674194634252011-03-16T19:00:48.008+01:002011-03-16T19:00:48.008+01:00Hi Edwin,
Since navigating through MBean was taki...Hi Edwin,<br /><br />Since navigating through MBean was taking a long time as we are having more than 200 composites.<br /><br />We went for having the property in the composite.xml to have auditLevel as Development always, <br />So now the deployment will not change it to inherit<br /><br />Development <br /><br />Thanks,<br />JpJayaprakashhttps://www.blogger.com/profile/09314379672153077504noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-35548351420112681512011-03-09T21:17:54.441+01:002011-03-09T21:17:54.441+01:00Hi,
Here you got a example
# function to help l...Hi,<br /><br />Here you got a example<br /><br /><br /># function to help locate a mbean(s)<br /># that match a specific name<br />def findMBean(prefix, name):<br /> # get a listing of everything in the current directory<br /> mydirs = ls(returnMap='true');<br /> <br /> # we're going to use a regular expression for our test<br /> pattern = Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-90161007966914188052011-03-08T23:37:53.936+01:002011-03-08T23:37:53.936+01:00Hi,
That worked using WLST. Thanks.
But i have o...Hi,<br /><br />That worked using WLST. Thanks.<br /><br />But i have one more issue to get through, constructing the MBean name after i deploy the composite using Python scripts. <br /><br />Is there any way we can get it only with composite name, version and partition which only information i have at the time of deployment.<br /><br />Thanks,<br />JpJayaprakashhttps://www.blogger.com/profile/09314379672153077504noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-86667792372196447722011-03-08T22:48:27.936+01:002011-03-08T22:48:27.936+01:00Hi,
this should work, lookup the mbean reference ...Hi,<br /><br />this should work, lookup the mbean reference of your composite. in the system mbean browser of the Enterprise Manager <br /><br />here is the wlst code<br /><br /><br />print 'starting the script ....'<br />username = 'weblogic'<br />password = 'weblogic1'<br />url='t3://localhost:7001'<br /><br />connect(username,password,url)<br /><br />Edwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-39778191441818812522011-03-08T21:55:28.214+01:002011-03-08T21:55:28.214+01:00Hi,
We have set Audit to off at server level for...Hi, <br /><br />We have set Audit to off at server level for performance, <br />but we need to set audit level for certain composites to be at development.<br /><br />When we deploy a composite the setting are overridden so I am trying to set the Audit Level for the composite using MBean programatically <br />after deploying the composite. I have automated the deployment using Python(calling Jayaprakashhttps://www.blogger.com/profile/09314379672153077504noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-37095685818203551972011-02-01T12:51:18.749+01:002011-02-01T12:51:18.749+01:00Hi,
both is possible, WLST is based on jhyton htt...Hi,<br /><br />both is possible, WLST is based on jhyton http://www.jython.org/ . the java version of phyton. Search for jhyton<br /><br />and you can store it in a file and run it in wlst by using runFile('xxx')<br /><br />thanksEdwin Biemondhttps://www.blogger.com/profile/02338716126881111629noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-74976017071066472482011-01-24T12:50:48.843+01:002011-01-24T12:50:48.843+01:00Edwin,
I've few doubts of invoking the MBean ...Edwin,<br /><br />I've few doubts of invoking the MBean operations through WLST.<br /><br />1. Suppose, a MBean has an operation with an user defined class (or an Enum) in its parameter. How can that be invoked through WLST script ? I specify ['a.b.MyClass.MyEnum'] and ['a.b.MyClass'] as the values to last 2 parameters of mbs.invoke call. But I get "Rajasekaran Iyanuhttps://www.blogger.com/profile/05391007633988511734noreply@blogger.comtag:blogger.com,1999:blog-1839316484051079047.post-8282646393363172632010-04-27T07:40:25.016+02:002010-04-27T07:40:25.016+02:00Thanks for the post. I found the information usefu...Thanks for the post. I found the information useful for scripting some required changes for the BAM Server MBeans... <br /><br />For example<br /><br />bamBean = ObjectName('oracle.bam.common:name=BAMCommonConfig,type=Config,Application=oracle-bam,ApplicationVersion=11.1.1')<br />appURL = Attribute('ApplicationURL','http://localhost:5102')<br />mbs.setAttribute(bamBean,Anonymousnoreply@blogger.com