WLST: how to move messages from a JMS queue to another queue

Hi all,
I'm looking for an example for moving messages from a JMS queue to another JMS queue using WLST.
Do you have an example about that or a piece of code as starting point ?
Thanks in advance
ferp

http://www.javamonamour.org/2011/09/wlst-move-jms-messages.html

Similar Messages

  • How to move messages from Phone to Memory card?

    Hi, can anyone tell how to move message from phone memory to Memory card.  Everytime, i'm connecting to PC, thn it is being changed to phone memory.  Cant PC suite synchronize it with memory card messages folder.  Please help.  By the way, my phone is Nokia X6, if someone can help me, it would be gr8.
    Regards,
    Jimmy.

    I can mark all the messages, but the option to copy them to phone memory does not appear! I'm using the lastest firmware for my Nokia 5800.

  • How to move Tablespace from One disk group to another disk group in RAC

    Hi All,
    I have 11gR2 RAC env on Linux.
    As ofnow I have problem with disk group. I have 3 disk group which is almost full - 98%. I have added one NEW disk group and want to move some of the Tablespace(TBS) from OLD disk group to NEW diskgroup and make some free space in OLD disk group.
    Can any one suggest me how to move TBS from one disk group to another disk grup without shutting down the instance.
    DB is in Noarchive mode.
    Thanks...

    user12039625 wrote:
    Hi Helios,
    Thanks for doc id but I am looking for noarchive mode solution. becaues I got ORA-
    "ORA-01145: offline immediate disallowed unless media recovery enabled " when run alter database datafile '...' offline.
    Hence I am trying something and findout below steps but not sure how useful it is:
    1- put tablespace offine
    2- Copy the file to new diskgroup using Either RMAN or DBMS_FILE_TRANSFER.
    3- Rename the file to point to new location.
    4- Recover the file.
    5- Bring the file online.
    I had move 240M TBS from OLE to NEW.
    These steps run successfully so I think this is valid for noarchive mode.Hence want to confirm..so inform me please.
    Thanks :)I have doubt in my mind:
    1. You database is in noarchivelog mode
    2. You're taking tablespace offline
    3. Suppose you're moving a file of size 10GB(or any larger filesize) to another disk group
    4. Now after moving the file, you're trying to bring the tablespace online............NOW
    tablespace will need recovery. if the required data is inside the SGA then it is ok. But if the data has been flushed, then?
    if step 2 and 3 has taken significant time, then most probably you'll not be able to bring that tablespace online.
    Regards,
    S.K.

  • How to move focus from one JTree node to another one and then back again?

    Hi all!
    Say I have a very simple JTree
    package main;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    public class SelectableTree extends JFrame implements TreeSelectionListener {
        public static void main(String[] args) {
            new SelectableTree();
        private JTree tree;
        private JTextField currentSelectionField;
        public SelectableTree() {
            super("JTree Selections");
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent event) {
                    System.exit(0);
            Container content = getContentPane();
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
            DefaultMutableTreeNode child;
            DefaultMutableTreeNode grandChild;
            for (int childIndex = 1; childIndex < 4; childIndex++) {
                child = new DefaultMutableTreeNode("Child " + childIndex);
                root.add(child);
                for (int grandChildIndex = 1; grandChildIndex < 4; grandChildIndex++) {
                    grandChild = new DefaultMutableTreeNode("Grandchild "
                            + childIndex + "." + grandChildIndex);
                    child.add(grandChild);
            tree = new JTree(root);
            tree.addTreeSelectionListener(this);
            content.add(new JScrollPane(tree), BorderLayout.CENTER);
            currentSelectionField = new JTextField("Current Selection: NONE");
            content.add(currentSelectionField, BorderLayout.SOUTH);
            setSize(250, 275);
            setVisible(true);
        public void valueChanged(TreeSelectionEvent event) {
            currentSelectionField.setText("Current Selection: "
                    + tree.getLastSelectedPathComponent().toString());
    }All I need is to move focus from currently selected node, to some other node (does not matter which one), then to "sleep" for a second and finally move it back to return selection to the previously selected node. The only question is how do I do this?

    Use a Seperate Thread to do it:
    Runnable r = new Runnable() {
        public void run() {
                   int k=tree.getSelectionRows()[0];
                   DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                                if(node.getNextSibling()!=null)
                                     tree.setSelectionRow(k+1);
                                else
                                     tree.setSelectionRow(k-1);
                                sleepe(k);
    public void sleepe(int i){
                         try{
                                Thread.sleep(1000);
                                     }catch(Exception e){
                                         e.printStackTrace();
                                  tree.setSelectionRow(i);
        }Then start this thread in a mouse click event(or any other similar),but not in TableSelectionListener because >>if the current selected row is 1 then it will execute the valueChanged method of TableSe..li. and we set the selected row to 2 then again it will execute the valueChanged method of TableSe..li.It will repeat till something,or in error.
    tree.addMouseListener( new MouseListener(){
    public void mouseClicked(MouseEvent e) {
                       new Thread(r).start();
    public  void mouseEntered(MouseEvent e) {
    public  void mouseExited(MouseEvent e) {
    public  void mousePressed(MouseEvent e)     {
    public  void mouseReleased(MouseEvent e) {
      });Note:it worked perfectly for me. So add all the above in the right place and import necessary.It will execute perfectly.

  • How to move phones from one CUCM server to another?

    How easy is it to migrate IP phones from one CUCM server to another?
    The situation is this:
    A vessel currently sitting in dry dock has 14 IP phones onboard which currently register with a CUCM server half way round the world (literally). As you can imagine there is quite a fair amount of delay for the signal processing, not to mention the connectivity being over a VSAT link. This being a temporary solution.
    A CUCM server has been configured and installed on the vessel with all the relevant partitions, route patterns, trunks etc. The phones have also been added to the new server ready for migration. The only real thing that will be different when the phones are migrated is the Directory Number on each phone. Both CUCM servers are running software version 7.1.3
    The phones currently pick up their local IP addresses via a local DHCP server which assigns 150 TFTP Server IP Address for the remote CUCM server. Is changing the the TFTP Server IP address to the local CUCM server enough to have the phones register with the local server.
    This is not something I've tried before so would appreciate feedback or any comments that may indicate anything I missed along the way.
    Thanks,
    Ric

    Hi Ricardo,
    On the DHCP scope created for the voice vlan change the Option 150(TFTP Server IP address) to the new CUCM and remove/delete the remote CUCM IP address just to ensure that phones once after registering to the new CUCM will not fetch any config from the remote CUCM as the DN's of the phones are changed on the new CUCM please ensure this.
    Apart from this i dont see any challenges as the firmware of the IP Phones will also remain same as CUCM version is same.
    Hope that helps.
    Regards
    Najaf

  • How to move data from one cell/sheet to another

    Hi - Help! I have a spreadsheet with multiple columns & rows for ordering clothes. The first column is  text of each item & it's size. What I want to do is:
    IF D15 has a number in it, I want that number and the text from A15 to populate into another sheet.
    Then I want to re-create this function in all the cells, so that if ANY cell has a number in it, that number and the text in the A column of that row shows up in the new sheet, in the corresponding cell.
    here's a screen shot of my sheet:
    Any help would be great!!
    Kim

    Hi Kim,
    I got the same error message when building the formula—it's easy to get lost in all the parentheses!
    Here's a breakdown of the formula I used.
    =IF(OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0,OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0),"")
    The overall stucture is an IF statement:
    IF(test,"Yes","No")
    IF(there is a value greater than zero in this cell's 'partner' on the main table,
      (then) copy that value here and append the label in column A of the main table, separated by a space, a dash, and a second space,
        (otherwise) put an empty text string here)
    Test: OFFSET(Data :: $A$1,ROW()-1,COLUMN())>0
    The 'partner' cell on the main table is the one on the same row and one column to the right of the cell containing the formula. (eg. for Summary::B2, the 'partner cell to be tested is Data::C2, the first data cell for Person 2)
    OFFSET(base,r,c)>0 compares the value in the cell r rows below and c columns to the right of the base cell with the value zero.
    Data::$A$1: A1 is my usual choice for the base cell, as it usually simplifies the calculations for r and c.
    ROW()-1: ROW() returns the row number of the row in which it is located. In B2, it will return 2. '-1' reduces that value to 1, the row offset necessary to get from Data::A1 to Data::b2.
    COLUMN(): COLUMN() returns the column number of the column in which it is located. In B2 it will return 2.  No adjustment is necessary, as 2 is the column offset necessary to get from Data::A1 to Data::C2
    OFFSET returns the value in Data::C2 and compares it with 0 (zero). The value (1) is greater than 0, so the test returns TRUE, and the IF function acts on the "yes" section.
    Yes: OFFSET(Data :: $A$1,ROW()-1,COLUMN())&" - "&OFFSET(Data :: $A$1,ROW()-1,0)
    This section contains two OFFSET statements.
    The first is the same as the one in Test, and returns the value in the tested cell (1).
    The second is the same, except for the third argument (c) which is fixed at 0 (zero). This returns the value in the cell in column A (zero columns to the right of A1) in the same row as the tested cell.
    The two returned values are linked by this expression: &" - "&
    "&" is the concatenation operator, which joins the values left and right of it into a text string. Here, the value returned by the first OFFSET (1) is joined to the text (space-space) contained between the double quotes, and that is joined to the value returned by the second OFFSET function (Item 1)
    No: ""
    If there is no number entered in the Data cell being tested, IF acts on the "no" section of the formula, and inserts an empty string ( "" ) in the cell containing the formula. An empty string displays as 'blank', and is the closest one can get to an 'empty' cell using a formula.
    Regarding your questions:
    "I seem to not understand what I'm supposed to put in the () and " " 's. I copied and pasted it and got the error message "the formula contains an invalid referance". DO i put certain row/cell numbers in somewhere?"
    ROW() and COLUMN() should have no argument entered between the parentheses. Each returns the row or column number of the cell containing the formula.
    The double quotes at the end of the IF statement define a text string with no text. You can put any text between them, but that text will then appear in all cells whose 'partner' cell does not contain a number greater than zero.
    The 'invalid reference' error message usually means a formula is referencing a cell that is not on the table. My guess is that your Summary table includes a copy of column A from your Data table. That would place "Person 1" in column B on both tables, and would require an adjustment of 'COLUMN()' to 'COLUMN()-1' in the first two OFFSET functions.
    Another possibility is a mismatch between the Data table name in the formula and the actual name of the Data table.
    Beyond those possibilities, I'd need to see either the document or screen shots of both tables and a copy of the actual formula as you've entered it.
    Regards,
    Barry

  • HOW TO MOVE DATAFILES FROM ONE  DISK RAID TO ANOTHER:PLZ HELP ME  :=)

    Hi all,
    For Tunning reasons : perform The I/O from the Instance to datafiles (database). I decide to move some Index datafiles from One DISK RAID to another.
    I'm on Linux Redhat Server and Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    My database 's On PRODUCTION and there 're many web applications updating some databases tables and for sure using Index tablespace. I preapared yet my procedure to move datafiles but I'm posting this to be sure that I will not have BAD EFFECTS on my Oracle database.
    So I plan without SHUTDOWN MY DATABASE to these steps :
    /*Step1 : */
    ALTER TABLESPACE INDX OFFLINE ;
    /*Step 2 : move datafiles to new disk raid*/
    mv /u01/oraindx/DB01/indx01_05.dbf /u01/oraindx2/DB01/indx01_05.dbf
    mv /u01/oraindx/DB01/indx01_06.dbf /u01/oraindx2/DB01/indx01_06.dbf
    mv /u01/oraindx/DB01/indx01_07.dbf /u01/oraindx2/DB01/indx01_07.dbf
    /*Step 3 : */
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_05.dbf' TO '/u01/oraindx2/DB01/indx01_05.dbf';
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_06.dbf' TO '/u01/oraindx2/DB01/indx01_06.dbf';
    ALTER TABLESPACE INDX RENAME DATAFILE '/u01/oraindx/DB01/indx01_07.dbf' TO '/u01/oraindx2/DB01/indx01_07.dbf';
    /*Step 4 : */
    ALTER TABLESPACE INDX ONLINE ;
    Please verify my procedure and tell me the precautions that I should take care :=)
    regards,

    Werner,
    If this is an active databases (indexes are used),
    you cannot set offline the index tablespace.you can offline it.
    DAB user:
    SQL>create tablespace inds datafile '/oracle/newdb/mydb/inds01.dbf' size 10m;
    Tablespace created.
    Scott user:
    SQL>create table t2 (col1 date, id number) tablespace users;
    Table created.
    SQL>create index t2_ind on t2(id) tablespace inds;
    Index created.
    SQL>insert into t2 values (sysdate,1);
    1 row created.
    SQL>insert into t2 values (sysdate,2);
    1 row created.
    SQL>insert into t2 values (sysdate,10);
    1 row created.
    DBA user:
    SQL>select segment_name,segment_type,tablespace_name
      2  from dba_segments
      3  where owner='SCOTT' and segment_name like 'T2%';
    SEGMENT_NAME                   SEGMENT_TYPE       TABLESPACE_NAME
    T2                             TABLE              USERS
    T2_IND                         INDEX              INDS
    SQL>alter tablespace inds offline;
    Tablespace altered.
    SQL>!mv /oracle/newdb/mydb/inds01.dbf /oracle/newdb/mydb/inds0001.dbf
    SQL>alter tablespace inds rename datafile '/oracle/newdb/mydb/inds01.dbf' to
      2  '/oracle/newdb/mydb/inds0001.dbf';
    Tablespace altered.
    SQL>alter tablespace inds online;
    Tablespace altered.
    scott user:
    SQL>insert into t2 values (sysdate,20);
    1 row created.
    SQL>
    SQL>select * from t2;
    COL1              ID
    22-NOV-07          1
    22-NOV-07          2
    22-NOV-07         10
    22-NOV-07         20
    SQL>commit;
    Commit complete.

  • HOW TO MOVE MESSAGES FROM INTERNAL TO EXTERNAL MEM...

    I have an E70 with Blackberry connect installed.
    This works fine but I have a problem with the emails storage
    Indeed, when I first did the config of the BB connect, I don't remember being offered the choice to direct the emails to the external memory.
    Now, by default all emails are sent to the phone memory and this obliges me to erase these emails from time to time as phone memory as very little capacity
    I have found the parameter for moving the message to the external memory ( this is under "messages/parameters)
    The required procedure is to de-activate Blackberry before doing this.
    This is OK until I want to re-activate BB. There is no way this can happen : the blackberry command does not "respond"
    If anyone has gone through that, I would appreciate your insights
    Thanks, David

    Hi dave ok i think this is maybe the answer if not sorry , ok the normal way to move all messages and recive messages to e drive (extrnal) instead of c drive (internal) is by opening messages press options . Now scroll down and select settings then scroll down and select other . Go down to memory in use change that from c drive to e drive

  • How to move messages from one computer to another?

    Just got my new iMac and have successfully transferred everything over from my old computer except the mail in the mailboxes.
    Anyone know how to do that?

    From the File menu in mail, select Import. Navigate to the old computer (connected via Target mode). Go to ~/Library/mail, and look for POP or IMAP folder names. They begin with these, and have a " - " in them. Import one for each account.
    You could also use that Mail folder, and ~/Library/preferences/com.apple.mail.plist, and replace them on the Leo install, to rebuild.

  • How to move content from one Apple ID to another?

    When I first started with Apple, I shared an Apple ID with my dad because I only had an iPod. Now that I have an iPhone, iPad, and Mac, I need to have my own Apple ID. Is there a way to move everything currently on my phone (music, sms messages, contacts, photos) to my new Apple ID? I have looked in the threads and I know this question has been asked before, but none of the answers really made complete sense to me....so dumb it down a little? Thank you in advance!

    See http://support.apple.com/kb/PH2689 and http://support.apple.com/kb/HT5902 for information on sharing calendars and photos through iCloud.  Contacts are not included in the sharing from one ID to another.

  • How to move image from one hard drive to another - T41

    Hi All
    I have a T41 which has a 30GB hard drive, over the time I have installed quite a few programs which I don't have the cd's for to reinstall. Now that I am almost out of space I need to swap my present Hard Drive with another one. I already bought a 60GB HD for the laptop but I don't want to just swap it, what I want to do is make an image of the existing HD and past it in the new HD and then swap the HD so that I have everything from my previous HD.
    Can I do this with Ghost 2003 or maybe with anyother ghost app. Also what if I just make a backup of the registry and system state through windows backup tools then install windows XP in the new HD and then restore the restore the system state and registry from the backup. In this wall I will loose the hidden partition.
    Please advice whether I can image of the current HD and then move it to the new HD.
    Thanks in advance 

    Thanks for the responses for far, I really appriciate it.
    Ok, I have two question for two response I received:
    To infocatchjp:
    1. I didn't find any connector for "ThinkPad 2nd HDD Adapter for Ultrabay Slim".
    2. Rescue and recovey is a windows tool or built in IBM tool.
    3. Would it tranfer the program as well and also the hidden partition for the laptop.
    To stbigham:
    I went to the website for the given software and checked out its feature. My only question is would the software transfer the existing and hidden partition when it is moved to the new HD.
    thank you both for your support. Hope to hear from you soon.
    Haydes 

  • How to move pictures from one photo library to another

    I really don't want all my daughter's iPhone selfies in our family Photo library, but I'd like to be able to move/copy some pictures from our family vacation from her library to mine.  Can I do that with the new Photos?  Is there a setting somewhere that will automatically import her iPhone pictures into her Photos library when her phone is plugged into our family Mac?

    The app will import to the Library that's open, so make sure hers is open.
    Currently there is no way rot move between libraries except by exporting from one and importing to the other.

  • How to move photos from one hard drive to another without losing data?

    I have lightroom latest version.  I have an in-computer hard drive full of photos.  It is clogging the machine and I am running out of storage space.  To make room, I would like to transfer most photos to an outboard portable hard drive.  How do I do that without losing all the hard earned flags, stars, tweaks, and other data currently stored regarding those moved photos and confirm I can still locate them again when using Lightroom (which will remain on the main hard drve)?

    This describes the procedure: Adobe Lightroom - Find moved or missing files and folders

  • How to move objects from one transport request to another transport request

    Hi Experts,
        When I am changing the code I selected the wrong the transport request number. I want to move my objects into another transport request number in the same DEV and same client number. Could you please help to move these objects between the transport request numbers.
    Thanks,
    Chinna.

    Hi Chinna,
    If you need to change a transport request number, you can use TCODE SE80
    Click on Repository Browser tab
    Then Select the Object(s) you want to change the Transport Request number
    Right Click > Other Functions > Write Transport Entry
    After that you will need to specify other existing Transport Request number OR create a new transport request number (F8).
    Hope this is what you are looking for.
    Thanks
    Rohan

  • How to move stuff from one iCloud acct to another?

    Because of all the goofy apple ID issues yesterday, I ended up putting my stuff into the wrong iCloud account.  I did eventually get an email for my main Apple ID account but contacts, etc were wiped off my devices because I had to sign out of the other iCloud account, which has all my contacts in it.  Is there a way to get my contacts out of the other iCloud account?  Is there an online sign-in somewhere?

    Thanks but I don't think that will work.  It wants me to tie the account to an iOS5 device first.  This is what I see after trying to login: http://d.pr/YOwF.  
    Does this mean those contacts are gone forever?  I wouldn't be surprised after yesterday's chaos.

Maybe you are looking for