How to get an XMLBean off the jms queue

          Hello all,
          I think I can post an XMLBean to a JMS queue, but how to I read it off the JSM
          queue from within a MDB?
          When I cast the message from the onMessage(Message msg) event to my XMLBEan, I
          get a class cast exception.
          I want to post some form data to a MDB to kick off some processes.
          Here is the code that generates the XML bean and posts it to my jms :
          VCALENDARDocument vcaldoc = VCALENDARDocument.Factory.newInstance();
          VCALENDAR vcalendar = vcaldoc.addNewVCALENDAR();
          VEVENT vevent = vcalendar.addNewVevent();
          vcalendar.setProdid(form.getProdid());
          vcalendar.setVersion(form.getVersion());
          vevent.setDtstart(form.getDtstart());
          vevent.setDtend(form.getDtend());
          vevent.setSummary(form.getSummary());
          vevent.setOrganizer(form.getOrganizer());
          appointmentCtrl.sendAppointmentRequest(vcalendar, "12345");
          Here the code in the JMS Control:
          public interface AppointmentCtrl extends JMSControl,com.bea.control.ControlExtension
          * @jc:jms-property key="accountIdentifier" value="{accountID}"
          * @jc:jms-property key="transactionType" value="NOT SUPPORTED"
          public void sendAppointmentRequest(VCALENDAR vcalendar, String accountID);
          static final long serialVersionUID = 1L;
          Here is how I am trying to read it off the queue in my MDB:
          public void onMessage(Message msg)
          VCALENDAR vcalendar = (VCALENDAR)msg;
          System.out.println("Message received");
          System.out.println(vcalendar.getProdid());
          Here the error that i get:
          <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
          th
          rew an Exception in onMessage(). The exception was:
          java.lang.ClassCastException.
          java.lang.ClassCastException
          at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
          at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
          at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
          java:316)
          at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
          at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
          at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          >
          <Apr 10, 2004 2:02:16 AM CDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean
          th
          rew an Exception in onMessage(). The exception was:
          java.lang.ClassCastException.
          java.lang.ClassCastException
          at mdb.AppointmentEJB.onMessage(AppointmentEJB.java:24)
          at weblogic.ejb20.internal.MDListener.execute(MDListener.java:382)
          at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.
          java:316)
          at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
          at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
          at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
          >
          Any ideas what it should look like?
          Thanks,
          Marc
          

Hi trevenator, 
If you are having issues with an iPod touch directing you to connect to iTunes, you may find the following article helpful:
If you can't update or restore your iPhone, iPad, or iPod touch
Regards,
- Brenden

Similar Messages

  • I need to replace my laptop Hard drive.  How do I get my iTunes off the old hard drive to an external so I can put it back on the new hard drive?

    I need to replace my laptop Hard drive.  How do I get my iTunes off the old hard drive to an external so I can put it back on the new hard drive?

    Type move itunes library into the google serach bar.
    It has always been very basic to always maintain  abackup copy of your computer.  Do you not have a backup copy?

  • I was using OS Snow Leopard and on 8/1/13 I downloaded Mountain Lion and found out it was not compatible with my HP printer (HP photosmart C5580) so I called Apple and asked how to get Mountain Lion off and Snow Leopard back on.  The Tech told me to

    I was using OS Snow Leopard and on 8/1/13 I downloaded Mountain Lion.  Then I found out it was not compatible with my HP Printer (HP Photosmart C5580 all-in-one) so I called Apple support and the tech told me to erase the hard drive instead of going in the time machine.  Well I did that and then it took about three hours three days a week for about three weeks on the phone with an apple tech to get all my stuff back on my computer.  I have had trouble with my printer (won't do the scan anymore and wasn't printing on my DVDs.  Also the computer keeps freezing up when it is in the sleep mode, etc.
    When I tried to list my problem on this forum it lists your OS at the bottom and mine had Mountain Lion listed as what I was using so apparently it didn't erase it.  Want to know how to get Mountain Lion off and put my Snow Leopard on so things start working right.

    Go to the  menu/About This Mac - what OS version shows there?
    Do a backup, preferably 2 separate ones on 2 separate drives.
    Revert to a Previous OS X
    Revert to Snow Leopard
    If you do revert, I'd use Setup Assistant to restore your data. This process takes a while, so do it when you won't need the computer for several hours, based on my experience.

  • HT4847 My phone was stolen.  How can I get my photos off the iCloud with a Snow Leopard operating system?

    My phone was stolen.  How can I get my photos off the iCloud with Snow Leopard.

    Welcome to the Apple Community
    You can't, if the photos are in photostream you need a compatible device, if they are in a backup, you can only use the backup to restore to a new device.

  • How do i get Windows 2000 off the VPC 5 disc to install with VP 7

    VPC 5 With windows 2000 upgraded to VPC 6 ran great. But hey I thought lets upgrade so I bought VPC 7 Stand-alone, installed XP PRO and it is soooooo
    Sloooow. I want to get Windows 2000 off the VPC 5 disc to install on VPC 7 to see if there is a difference. Yeah we got 1.5 gigs of Ram and a Dual processor
    Machine. Maybe something else is going on but I cant figure what. So How do I get Windows 2000 off that VPC 5 disc???

    Yep tried that. No go but thanks.
    Some of the previous versions of the VPC CDs
    (unfortunately, I can't remember which) were hybrids
    and doubled as not only the VPC for Mac installer CD
    but also the Windows OS installer CD. You might try
    creating a new virtual PC and then when asked for a
    Windows installer disk, insert and capture your VPC 5
    disk. I have no idea if this will work for you.
    Later versions of VPC came with the Windows OS
    pre-installed on VPC disk images and not with a
    Windows installer. If your version has a disk image,
    copy it from your version 5.0 CD and try opening that
    in VPC 7.0. You should see a conversion process.
    Hope this helps! bill
    1
    GHz Powerbook G4   Mac OS X (10.4.4)  

  • How do you get you iphone off the screen where it says itunes

    how do you get you iphone off the screen where it says itunes

    Connect the phone to your computer using the usb cable provided with the phone and start itunes on the computer. It sounds like you have a pre iOS5 phone and it needs to be activated using itunes on your computer.

  • How to get ALL photos off iPhone and into iMac?

    I hope I can describe this clearly.
    I have close to 1000 photos on my iPhone 5s, all in different albums.  I want to get ALL of them off the iPhone and backed up into my iMac so I don't lose them when I upgrade (which has happened before.) The albums I seem to have the biggest problem with are the ones that came over when I went from a PC to a Mac about 2 years ago and were in albums in my Kodak Easy Share.  I can't get iPhoto to recognize these photos/albums so I can move them from the iPhone. Honestly, I'm not even sure how I got them from where they originated into my iPhone. I'd thought I'd lost them so when they popped up on my iPhone I refused to even update my phone for a while, I was so afraid to lose them.
    I tried using Image Capture and it only recognized 176 photos on the iPhone.
    I went into settings on my iPhone, into camera and photos, and saw that iCloud Photo Library (Beta) was "OFF." I clicked "ON" and got the message "Photos synced from iTunes will be removed. Syncing photos via iTunes is not supported when include Photo Library is turned on.  833 photos will be removed."
    I hit cancel.
    If I connect my iPhone to my Mac, and check off "Sync Photos" it appears that it's going to put photo's in iPhoto on my computer on my phone, so that isn't what I want either.  I've tried Googling this, and searching on the Apple site and I can't find anything like this. Similar but not quite the same.
    I also read (I think) that the iCloud would delete my photos in 30 days so I'm not sure what the value of backing them up to the iCloud is.
    I've used Finder to search Kodak, Easy Share, Kodak Easy Share, in case these photos are somewhere else on the iMac that I'm not aware of, most likely due to user ignorance.
    My screen is cracked, I'm going to need to upgrade soon, and I don't want to lose valuable photos again. 
    Thank you!

    Thank you to all for this info. Discouraging, but finally I can stop banging my head on the desk trying to figure out what I'm doing wrong.
    I do believe that when I synced my iPhone at some point in the last 2 years, I pulled all the photos OUT of iPhoto and then it deleted them.  Which is most likely why the older Kodak photos that I am almost 100% certain were in iPhoto are now gone. How/when they ended up on my iPhone I don't know because I swear they suddenly appeared there a few weeks ago.
    Since the old PC is gone (accessible but wiped clean & restored to original factory settings) and Easy Share is no more, I will have to explore outside options to get those photos off the iPhone somewhere.  Online photo storage sites have been suggested.  Archaic as it is, I wish I'd just put them all on cd's.
    Using the info provided, I did SUCCESSFULLY get all 237 photos off of my iPhone 3.  (yes, I still have it.)  Now I know better and will never ever sync my photo's in iTunes again.
    Thank you all again!!
    ***Addendum: ALL answers helped, but apparently I can't indicate that.

  • How can you delete songs off the ipod without deleting songs off your itunes library?

    How can you delete songs off the ipod without deleting songs off your itunes library?  My son's ipod automatically synced all the songs in my library to his ipod which he now wants to get rid of.  Is there a way to delete them all without me having to erase my library?

    Do not select the songs to sync, then sync.

  • How to keep a back up of messages from the JMS queues?

    Hi,
    I need to keep a back up of messages which are coming in the JMS queue before they get consumed. This is for recovery purpose.
    I checked file store option but it doesnt have any time stamp on messages so dont know how to trace back messges if needed from file store.
    Please let me know if you guys have any idea to handle this.
    Thanks in advance
    Bips

    No. Not with Time Machine at least.
    If you tell Time Machine to backup the external then you will have it.
    Or you can manually copy it to another disk for storage outside of Time Capsule/TimeMachine.
    Allan

  • HT4889 Replacing System hard drive with a new one. How to get everything over to the new boot drive?

    Replacing System hard drive with a new one. How to get everything over to the new boot drive? Should I use Carbon Copy or does apple have a better untility to do this?
    I can't get my current system drive (OSX 10.8.3) to start on the first try. I always have to shut down and restart again to finally see the Apple logo.
    Have used disc utility to repair the disc and permissions several times and that works. The next time I boot up, it works fine and I get the apple logo, but then the second time I boot up, it's back to the blank screen again and it only boots after the second try.  I have tried this repair three different times now always with the same result. Works right the first try (after the repair) then from the second time on it doesn't work. I just get the white screen until I reboot a second time.
    Thinking I should change drives but what's the easist and best way to move everything over to the new drive so it will boot correctly with all my data on it. This is the system drive for a Pro Tools 10HD setup. MacPro 3,1 with 16 gigs ram and OSX10.8.3 on it.
    Thanks for any help!

    If you have a time machine back up of your current drive you can do this
    Shut down your computer, install the new drive. While the computer is off plug in the external hard drive that you have your time machine back up on. Hold Option key while the computer turnes on, let go of the option key once you get a grey screen. Shortly after you'll see  a list of bootable drives, select the one that has your time machine back up on it and boot into that drive.
    From there go into disk utility, format your new drive too, osx extended journaled ( I think, double check that, its been awhile since ive had to do this), hit format
    Exit disk utility and then you can use time machine to copy all your exisit data to the new hhd and then your pretty much done.
    There is also a program called Carbon Cloner that will do esentially the same thing however I've never uesed it.

  • I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    I excluded iphone from controls in Keynote. How I get it back on the list to use Keynote remote?

    Welcome to the Apple Community.
    If you haven't turned find my phone off on the device, it should just reappear next time it is connected to an appropriate network. If you have turned off find my phone, turn it back on.

  • Restored my 4S. How to get pictures back from the cloud?

    Background: I had a 3GS and on launchday of the 4S I picked one up. A white 32GB on AT&T to be exact.
    I had been having some issues with the battery, so today I figured I'd try and start fresh. Well, I backed up everything on the cloud, and I also backed up everything onto the computer in iTunes when I did the restore.
    I've got my music back. Cool.
    I've got my apps back. Great.
    I can't seem to figure out how to get my photos from the camera roll back. Nor do I know how or if it is even possible to get the photos and my old text messages back on this new restore. Also, none of my mail is coming back either.
    I can see my most recent backup in the iphone settings under iCloud. And I can also see my most recent computer backup on the computer. But I'm not sure what I need to do.
    Any help would be great. Thanks.

    OK - understood.
    There are a couple of ways of going about this. First, my recommended method:
    Restore from a backup (so your photos, SMS etc are on the phone
    Connect to iTunes
    Set the phone to sync photos to a relevant app on your desktop (what app depends whether you're Windows or Mac) - this gets your pics onto the desktop and safe.
    If you want to save SMS, use PhoneView (Mac) or TouchCopy (Windows) or similar to copy them off the phone
    Restore the phone as a new device
    Get the photos back the way you got music etc back - via iTunes sync
    The second method entails using one of the utuilities around the place that can extract from the backup - I have no experience with them, so I don't know how well they work. That's why I go for the first method - simpler, more robust.
    By the way, I came across this other method for SMS:
    http://hints.macworld.com/article.php?story=20090624022758268
    Hope this helps

  • My Overdrive for my library books does not allow me to access the book that i am currently reading since IOS7 updated.  also how do i now turn off the apps running in the background that are draining my battery?

    my Overdrive for my library books does not allow me to access the book that i am currently reading since IOS7 updated.  also how do i now turn off the apps running in the background that are draining my battery?

    hey i m working on my illustrator and i m having many problems with my swatches
    for example i use the green phosphorique i don't get this color i get another green
    and many colors too it's like illustrator chooses for you the only green color
    so please i kind of need help i can show you pictures of that i print screen viewed them.. so anybody who can help... pleaaaaaaaaaase contact me because i m having a project now..
    my e mail is [email protected] i would be thankful
    i even tried to download the illustrator on my friend's computer also i m having this problem ....

  • How come I can print off the Apple support page but not of my note book i n documents.

    How come I can print off the Apple support page but not off of note pad in my documents.

    No. It is not free unless the phone was originally purchased less than 90 days ago or you have an active AppleCare agreement.
    Where did you get the phone? This is almost always a symptom of a phone that was hacked or jailbroken to unlock it.

  • How to check the jms Queue is persistance or not in jboss application serve

    hi,
    i am using jboss as application server for jms and database is postgres.For an message store i am using the "*database store*".while starting the jms adding queue it is adding the messages to the jms queue after starting the jms receiver the datas are received sucessfully....afte some 10 to 13 hours i am getting java.lang.OutOfMemoryError in jms..so i checked the postgres table space.Table space is increased gradually...I think that the after receiver received that message the messages are not deleted in the database.how to debugg the the secnario in jboss as wel as in database.....how to chaeck the queue is in persistance or not persistance...
    regards.
    naresh govindaswamy.

    Send a request to the server somehow, so that the server is aware of this. AJAX may be very useful in this if you want to do this asynchronously.
    its very urgently This is irrelevant information. That's your problem. We don't care less or more. Some users here will even refuse to help you if you're putting pressure.

Maybe you are looking for

  • GWI: Add new filter criteria for replication object BUPA_MAIN

    Hello, we are currently setting up Groupware Integration with CRM 7.0 and Outlook Exchange 2007. We would like to filter the BPs that are replicated to Outlook's public folder. The replication object BUPA_MAIN in Tx. SMOEAC has only got the following

  • Re:Bi content reports

    Hi expert, This is pradeep.in my project my client required sd,mm and fico reports are in excel format ofter then the client decision take place .please give me those reports please .my id [email protected] Thanks & Regards, Pradeep kandepu Edited by

  • ACK from MDM PI Adapter

    Hi All, Can you please let me know whether we can receive the ACK messages back from MDM-PI adapter only with BPM in place ?(where in we explicitly ask for ACK) If we do not use BPM, we would never have SXMB_MONI updated with the MDM ACK messages - I

  • Using MS Access from a file server

    i have a ms access db that i'd like to read from using jdbc. It is on a network file server. Can i read from it from a jsp on a separate weblogic box without having a dsn to the DB? ie using some kind of a file path in the connection address instead

  • Why Do My Tiger iMac G4s Fail to perform as Target Disks For Each Other

    When Needed, My two Flat Screen iMac G4s could perform as Target Disks for each other, but only before becoming Tiger iMacs. When starting out (at 10.4.6) as Tiger iMacs, they each appeared to be Tiger Target Disks when so instructed, each producing