How can I config to create an out-of-box jms queue

Hi All,
I am new to WebLogic Server and I need to create an out-of-box jms queue for my project, which means instead of creating and configuring the queue at the administration console, I'd like to program and change some configuration files to achieve it. Can someone give me some advice or point me to some samples?
Thank you,
Yang

Hi,
Use WLST snippet as shown below to create a basic JMS config OOTB.
import sys
from java.lang import System
connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
servermb=getMBean("Servers/myserver")
if servermb is None:
    print 'Server not found'
    stopExecution("cannot find the server myserver")
else:
    jmsserver1mb = create('MyJMSServer1','JMSServer')
    jmsserver1mb.addTarget(servermb)
    jmsserver2mb = create('MyJMSServer2','JMSServer')
    jmsserver2mb.addTarget(servermb)
    jmsMySystemResource = create("MyJmsSystemResource","JMSSystemResource")
    jmsMySystemResource.addTarget(servermb)
    subDep1mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer1')
    subDep1mb.addTarget(jmsserver1mb)
    subDep2mb = jmsMySystemResource.createSubDeployment('DeployToJMSServer2')
    subDep2mb.addTarget(jmsserver2mb)
    theJMSResource = jmsMySystemResource.getJMSResource()
    jmsqueue1 = theJMSResource.createQueue('MyQueue1')
    jmsqueue1.setJNDIName('wlst.mgmt.jms.MyQueue1')
    jmsqueue1.setSubDeploymentName('DeployToJMSServer1')
    jmsqueue2 = theJMSResource.createQueue('MyQueue2')
    jmsqueue2.setJNDIName('wlst.mgmt.jms.MyQueue2')
    jmsqueue2.setSubDeploymentName('DeployToJMSServer2')
    jmstopic1 = theJMSResource.createQueue('MyTopic1')
    jmstopic1.setJNDIName('wlst.mgmt.jms.MyTopic1')
    jmstopic1.setSubDeploymentName('DeployToJMSServer1')
    jmstopic2 = theJMSResource.createQueue('MyTopic2')
    jmstopic2.setJNDIName('wlst.mgmt.jms.MyTopic2')
    jmstopic2.setSubDeploymentName('DeployToJMSServer2')
try:
    save()
    activate(block="true")
except:
    print "Error while trying to save and/or activate!!!"
    dumpStack()Hope this helps,
Kats

Similar Messages

  • In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded l so I have created two new libraries, but can't seem to move the projects into them

    In Aperture 3, how can I easily move entire projects out of my main Ap Library into other libraries?  My Ap library is running super slow because it's overloaded, so I have created two new libraries, but can't seem to move the projects into them?

    Hello Annabel,
    To move entire projects export them as Aperture Libraries, and then import those Libraries into the other Aperture Library:
    Select the Project in the Inspector, then
    File -> Export -> Project as Library
    In the other Library do:
    File -> Import  -> Library/ Project
    But I am not quite convinced, that the size of your current Aperture Library is responsible for the slowness of Aperture - Aperture is designed to cope with huge libraries.
    You may want to post your hardware setup and details of your library, and some of the hardware experts here may help you to find the reason for the slowness.
    A huge library should only be a problem, if the projects are too big, and if you have many, many smart albums at the root level of your library.
    So keep the projects small, and try to move some of your smart albums to lower levels in your folder structure (then Aperture does not need to scan all of your images to build the smart album).
    Other reasons for Aperture's slowness may be, e.g.
    An overfull system drive and/or external drive (keep at least 20% of your drives empty)
    lack of RAM
    a corrupted Aperture Library, that needs repairing
    Have you checked those options, before you split your library? It would be a pity to split it, for you would loose the ability to browse all parts at the same time, to use all your images in the Media Browser, etc.
    Regards
    Léonie

  • How can I export slideshows created in Aperture v3.3.2 from Mid-2009 MacBook Pro-17 to blank DVDs?

    (Fifth futile attempt in two hours, before I learned there was a Post webpage – I’m new to ApSuppCom - and after I learned that I am not allowed to update previous content, so I had to back out, make a few changes, and start over.)  How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ?  (Some other specs: Mac OS Lion 10.7.5; Capacity 499.5 GB;  Processor 2.8 GHz Intel Core  2 Duo; Memory 4GB 1067 MHz DDR3; Graphics NVIDIA GeForce 9400M 256MB)
    I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring.  Always with the DVD Video Player final message reading, “Supported disc not available.” Advisors and Mac Geniuses at local Apple Stores have told me to try Roxio Toast.  When I visited the Roxio website, and found numerous other company products, the descriptions all seemed to suggest that most of the apps shown can easily export videos to DVDs, but nothing was said about finished digital slide shows being exported.  At future events soon,  I hope to be handing out these finished DVDs (free) to the people in them.   Any help will be greatly appreciated. A.Z.

    How can I export slideshows created in Aperture v3.3.2 (complete with superimposed captions and music tracks) from Mid-2009 MacBook Pro-17 to blank DVDs ?
    Aperture cannot burn slideshows to a DVD.  It only can export a video of your slideshow.
    In Aperture 3 you use the "Export" button in Aperture's slideshow project to render a video to a folder on your disk.
    Then you use iDVD or another program to burn a video DVD.
    I cannot do a copy (export) without various error messages appearing and the inevitable stoppage occurring.  Always with the DVD Video Player final message reading, “Supported disc not available.”
    Could you please describe the exact steps that are causing these error messages?
    How are you exporting your slideshow from Aperture? Which settings are you using? And how are you importing the video to iDVD or Toast to burn a video DVD?
    For more suggestions see Karsten Schlüter's user tip: How to create a video-DVD? (Macs without iDVD)

  • How can I get 300 dpi tifs out of webex stills & then worked on in adobe illustrator?

    How can I get 300 dpi tifs out of webex stills & then worked on in adobe illustrator?
    I have been trying to convert images created in webex and transferred to illustrator into 300 dpi tifs. They download as ucf's when generated on white board. Or I have to upload files from other webex participants coming in at 72 dpi, converting them to something bigger in photoshop to paint in before taking them back into the webex session as a doc that then gets worked on further during the session. Later they go into illustrator for some more work with vectors. That's fine for the web but now a publisher wants them as 300 dpi tifs and I can only get things back & forth as 72 dpi pdf's. If I try to bump them up with a resample, they come out teensy weensy. What am I missing and is there any way to make them look good?

    What I need is to be able to transfer the images between formats without degradation of the resolution and find ways to sharpen what I have even if I can't increase pixels. If the original I'm delivered is a 96 dpi power point slide, for example, that's what I have to work with, I'm using Illustrator to compensate with vectors. But then I still need to get it back to a 300 dpi tiff to meet the specs.

  • How can I deploy only one package out of a big project?

    Does any one know how can I only deploy one package out of a big project?
    We have a project which includes about 12 differenct packages. Is there a way in Jdeveloper for me to create a deploy profile to only deploy one package to a *.jar file?
    Do I have to re-create a new project ( that's what I am doing currently) simply for deployment purpose?
    By the way, click and pick class from more than 100 classes is too much of work. In addition, you don't really know exactly which class you are picking if two classes (in different packages) have the same name.
    Thanks a lot.

    Rename your LCA file extention into .ZIP
    Open the ZIP file in any of the compressing utility (e.g. WinZip, WinRar etc.)
    Extract the desired process and deploy it manually to your server.
    Nith

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • How can I extract a km-iView out the portal to redefine it?

    Hello folks,
    I want to redefine the com.sap.km.cm.navigation-iView to serve generic access to the users home drive by using the <User.UserID>-variable. Therefore I have to extract/download the iView out of the Portal. I wasn't able to find KM-Content in Systemadministration->Support->Portal Runtime->Browse Deployment. What do I have to do?
    How can I extract a km-iView out the portal to redefine it?
    Regards
    Steffen

    Just as an example:
    package com.btexx.proxy;
    import com.sapportals.portal.prt.component.*;
    import com.sapportals.portal.prt.pom.IEvent;
    import com.sapportals.wcm.repository.ResourceException;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.service.IServiceTypesConst;
    import com.sapportals.wcm.service.urlgenerator.IURLGenerator;
    public class Example extends AbstractPortalComponent
         protected void doOnNodeReady(IPortalComponentRequest request, IEvent event){
              String uname = request.getUser().getLogonUid();
              String path = "/userhome/"+uname;
              String rndLayoutSet = "ConsumerExplorer";
              String explorerServletPath = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.navigation";
                   try {
                        IURLGenerator ug = (IURLGenerator) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
                        explorerServletPath = ug.getExplorerServletPath();
                   } catch (ResourceException e) {
              request.redirect(explorerServletPath+path+"?rndLayoutSet="+rndLayoutSet);
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
    + portalapp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="SharingReference" value="usermanagement, knowledgemanagement"/>
      </application-config>
         <components>
              <component name="Example">
         <component-config>
              <property name="ClassName" value="com.btexx.proxy.Example"/>
              </component-config>
                   <component-profile>
                        <property name="com.sap.portal.reserved.iview.Redirect" value= "true"/>
                   </component-profile>
              </component>
         </components>
    <services/>
    </application>
    all the best,
    dimitry

  • How can I find movies created in past versions of iMovie?  They are still on you tube but I want the original higher quality versions and I can't find them anymore.

    How can I find movies created in past versions of iMovie?  They are still on you tube but I want the original higher quality versions and I can't find them anymore.

    Paul -
    I'm sorry you've lost files, but when you set up an account as Guest, there's a message that clearly states "When a guest user logs out, all information and files in the guest account's home folder are deleted". If you want an account where files are retained, you should create an Admin or Standard type.
    You will need to use data recovery techniques to see if your file can be recovered. The more that you use your computer, the greater the risk that the file will be overwritten. You can contact a professional data recovery service such as DriveSavers (which will be expensive, but you can judge the value of the file) or try something like Data Rescue. The latter has a demo which you can install to determine if your file can be recovered, and then, on purchase, you can actually recover the file.
    Good luck!
    Matt

  • How can i config WLS7 and iPlanet LDAP

    How can i config WLS7 and iPlanet LDAP?
    failed during initialization. Exception:java.lang.SecurityException: Authenticat
    ion for user weblogic denied
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManager.doBootAuthorization(
    SecurityServiceManager.java:978)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
    erviceManager.java:1116)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    >

    Yos:
    Series of steps to get WLS working with some external LDAP server follows:
    I. create a new domain /mydomain
    II. start server
    III. open WebLogic console in a browser
    IV. in left frame, go to
    security->realms->myrealm->providers->AuthenticationProviders and click
    V. in right frame, click on “Configure a new iPlanet Authenticator”
    VI. In the new screen, under General, make sure the Control Flag is set to Required,
    select a name for this authenticator, and click Create.
    VII. Select iPlanet LDAP tab and fill in values for Host, Port, Principal where
    these values reflect the settings for your LDAP server. (Note: the default
    principal for an iPlanet LDAP server is uid=admin, ou=Administrators,
    ou=TopologyManagement, o=NetscapeRoot). Click Apply.
    VIII. Click on Credential: Change. At the new screen, enter the credential
    associated with the Principal that you entered in step VII in both boxes. This will
    be the password that is used to do a bind to your LDAP server with the principal.
    Click Apply.
    IX. Select Users tab and make sure these properties accurately reflect the structure
    of your LDAP server. Most of the time the only property that needs to be changed is
    the User Base DN property, from ou=people,o=example.com to
    ou=people,o=myCompany.com. Click Apply.
    X. Select Groups tab and make sure these properties accurately reflect the structure
    of your LDAP server. Most of the time the only property that needs to be changed is
    the Groups Base DN property, from ou=people,o=example.com to
    ou=groups,o=myCompany.com. Click Apply.
    XI. Now, the boot identity of your server absolutely must be a user that exists on
    your LDAP server. You must also have an “Administrators” group on your LDAP server,
    and the boot identity must be a user that exists in this “Administrators” group, or
    the server will not start. So open your LDAP console (this will be a console that
    is specific to the LDAP server you are using) and use the management tools to create
    the “Administrators” group and a user that you place in the “Administrators” group
    that is the boot identity that you use to start WebLogic.
    XII. Make these changes and restart the server.
    XIII. You can verify that the LDAP setup is correct by doing a thread dump. You
    should see a thread like:
    “LDAPConnThread localhost:389" daemon prio=5 tid=0x8d9b308 nid=0x8f8 runnable
    [0x9e2f000..0x9e2fdbc]
    at java.net.SocketInputStream.socketRead(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:86)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
    - locked <3281d98> (a java.io.BufferedInputStream)
    at netscape.ldap.ber.stream.BERElement.getElement(BERElement.java:101)
    at netscape.ldap.LDAPConnThread.run(LDAPConnThread.java:420)
    where “localhost:389” is the server name and port of your LDAP
    server. This means that your Authenticator has been set up correctly.
    XIV. Now you can delete your default authenticator. Open the WebLogic console and
    go to security->realms->myrealm->providers->AuthenticationProviders in the left
    frame, and click
    XV. In the right frame, look for DefaultAuthenticator and click on the trash can to
    the far right. Say “Yes” when it asks if you are sure, then click Continue.
    XVI. Restart the WebLogic server. If the server boots correctly, you’re done.
    Everything is working correctly.
    Please note that the "default authenticator" refers to the embedded LDAP server that
    ships with WebLogic.
    Hope this helps.
    Joe Jerry
    Yos wrote:
    How can i config WLS7 and iPlanet LDAP?
    failed during initialization. Exception:java.lang.SecurityException: Authenticat
    ion for user weblogic denied
    java.lang.SecurityException: Authentication for user weblogic denied
    at weblogic.security.service.SecurityServiceManager.doBootAuthorization(
    SecurityServiceManager.java:978)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
    erviceManager.java:1116)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:703)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:588)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:276)
    at weblogic.Server.main(Server.java:31)
    >

  • HT1430 Iphone 5 OS 6.1.1, When I turn off or restart device, this device automatic unmute. How can i config this problem?

    Iphone 5 OS 6.1.1, When I turn off or restart device, this device automatic unmute. How can i config this problem?

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • HT5622 how can i download free apps with out a credit card

    how can i download free apps with out a credit card

    If you only want the free apps, take a look here:
    http://support.apple.com/kb/HT2534
    Read the steps carefully as the order in which you follow them is  critical. Note that you can do this only when creating a new Apple ID. You cannot use an existing ID. 
    You will of course not be able to get anything other than the free apps without entering in some sort of payment method (credit card, prepaid iTunes card, gift certificate, etc.)
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • I purchased an ablum thru itunes on my phone and it says i purchased the songs on itunes but when i go on my music it says i have to repurchase all the songs how can i get the songs with out havin to pay again

    I purchased an ablum thru itunes on my phone and it says i purchased the songs on itunes but when i go on my music it says i have to repurchase all the songs how can i get the songs with out havin to pay again

    Whether you can redownload music depends upon what country that you in. If you are using your computer's iTunes then does music show in the Purchased link under Quicklinks on the right-hand side of the iTunes store home page (on your phone you might be able to redownload media via the Purchased tab in the iTunes store app) ? If music shows there, but not that album, then check to see if it's hidden : http://support.apple.com/kb/HT4919
    If you aren't in a country when you can redownload music and it's still on your phone then you should be able to copy it over from the phone via File > Devices > Transfer Purchases.

  • HT201269 my pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    My pc crashed and i no longer have the music i used to have, how can i sync my ipod  w/ out loosing  all of my  music.  and also how do i update  my ipod only has  a partial version of ios4

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.  USe your backup copy to put everything on the new computer, then sync.

  • How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    How can I get a stripped screw out of the bottom of my iPhone?? I need help, How can I get a stripped screw out of the bottom of my iPhone?? I need help

    Try asking at ifixit.com. The iPhone is not considered user servicable. You're not going to get much help on an Apple sponsored forum.

  • How can i get a iphone 3G out of recovery mode without restoring it

    Need Help, How can I get a iPhone 3G out of recovery mode without restoring it. it has never been backed up so restoring it will loose all contacts etc.

    You can't get it out of recovery mode without restoring it. 
    If it's in recovery mode, your data's almost certainly gone anyway.

Maybe you are looking for

  • How to separate/Decentralize a SLD in SAP PI 7.3?

    Hi Experts; I have one central SLD for PID and PIQ, because during installation of PIQ was connected to SLD of the PID. My requirement is one SLD for PID and other for PIQ. I review the following link an notes: Planning Guide SLD 3.1 : http://www.sdn

  • Content related to Workflow

    Here i would like to see contents related to the workflow as that is one of the hot cake of Enterprise Solution. If any one one has some good document for that then it will be very nice for all. Regards, amit

  • My iMac boots up and the last 2 times cannot find sound hardware or wireless hardware.

    A reboot seems to kick everything back in - but this is pretty unacceptable - any ideas? Had this about 2 weeks. Running Mac OSX v 10.7.1, 2.5Ghz Intel Core i5, 4Gb RAM, 500Gb hard drive... Any help please...

  • Correction Invoice with Items TreeType != iNotATree

    Hi, I want to create Correction Invoice document with Items which TreeType = SAPbobsCOM.BoItemTreeTypes.iSalesTree When I'm adding Correction with reference to some document (BaseType = 13 or 165, BaseEntry=... and BaseLine = ...) then everything is

  • How to unzip ? :(

    Hi . i am trying to unzip a file that i downloaded but i get Stufflt Expander giving me this message:please locate the file named 1eu.rar. ! so please can anyone tell me how to expand those kind of files . thanks and have a good day