tag:blogger.com,1999:blog-1160221863863331437.post638827683540550261..comments2023-09-11T04:42:46.453-07:00Comments on WebLogic Server Infomania: Check for resource/configuration existence [WLST scripting Best Practices (Part-3)]Bala Kothandaramanhttp://www.blogger.com/profile/04536459985006004271noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1160221863863331437.post-45391984330463882122011-07-20T10:17:05.483-07:002011-07-20T10:17:05.483-07:00Hi Bala,
Here is a 3rd method to check for resour...Hi Bala,<br /><br />Here is a 3rd method to check for resource existence. This is the one I prefer<br />because it has no side-effect (neither change cmo, nor need edit session), but<br />it only works for online WLST.<br /><br /> ### Check for the server<br /> ...<br /> myMBean = getMBean('/Servers/' + mgdServerName) # WLST Online only<br /> if myMBean is None:<br /> # resource does not exist, create it<br /> myMBean = create(mgdServerName, 'Server')<br /> ...<br /> else:<br /> # resource already exists, nothing to do<br /> # use myMBean, no matter it was existing or has just been created<br /> ...<br /><br />Thanks for your blog!<br />Regards,<br />Gregoire VatryGreghttps://www.blogger.com/profile/13383270447692107345noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-26065136358917641392010-02-09T03:03:26.671-08:002010-02-09T03:03:26.671-08:00Rather nice site you've got here. Thanks for i...Rather nice site you've got here. Thanks for it. I like such topics and anything that is connected to them. I would like to read more soon.<br /><br />Best wishes<br /><a href="http://www.prestigeclubcasinos.com/" rel="nofollow">Jeph Normic</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-30863461043347992442009-10-28T10:40:45.931-07:002009-10-28T10:40:45.931-07:00Hi Bala,
Thanks for posting very good articl...Hi Bala,<br /><br /> Thanks for posting very good articles.<br /> <br />Vijay Bheemineni.Vijay Bheeminenihttps://www.blogger.com/profile/12769268463842662502noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-87847271467102581182009-04-23T16:46:00.000-07:002009-04-23T16:46:00.000-07:00Hi Swagat,
If you get that error then you are cre...Hi Swagat,<br /><br />If you get that error then you are creating something that already exists. Try to change the name of the resource and rerun your script.Bala Kothandaramanhttps://www.blogger.com/profile/04536459985006004271noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-59285068435397042792009-04-16T06:30:00.000-07:002009-04-16T06:30:00.000-07:00Hi Bala,
I am getting the same error that you hav...Hi Bala,<br /><br />I am getting the same error that you have mentioned here, but I am not sure what to do with the code snippet that you have provided. Am using basic UNIX commands to configure my domain.Swagathttps://www.blogger.com/profile/04322403028493581668noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-42380751434291058152009-03-26T17:00:00.000-07:002009-03-26T17:00:00.000-07:00Hi Raja,See this post for creating domains from cs...Hi Raja,<BR/><BR/>See this post for creating domains from csv file - <A HREF="http://weblogicserver.blogspot.com/2009/03/reading-csv-file-in-wlst-script.html" REL="nofollow">http://weblogicserver.blogspot.com/2009/03/reading-csv-file-in-wlst-script.html</A>Bala Kothandaramanhttps://www.blogger.com/profile/04536459985006004271noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-53420460574957742402009-03-18T18:50:00.000-07:002009-03-18T18:50:00.000-07:00This is very usefull info.I am looking for creatio...This is very usefull info.I am looking for creation of domain script which can read from .csv file and create a domain.<BR/><BR/>This is raja from chicago class<BR/>october 08.<BR/>THanks for helping.<BR/>Rajababahttps://www.blogger.com/profile/13875806395826883190noreply@blogger.comtag:blogger.com,1999:blog-1160221863863331437.post-50951542589464600612009-03-03T06:03:00.000-08:002009-03-03T06:03:00.000-08:00Bala, this is really useful stuff! Thanks for taki...Bala, this is really useful stuff! Thanks for taking the time to post it!!<BR/><BR/>(This is Del Simmons from your class in Dallas at the end of last year)Mojoskihttps://www.blogger.com/profile/04592373725241861672noreply@blogger.com