How can i send a XML document object over the JMS wire

          HI,
          does anybody has anyidea about sending the XML Document over the JMS and receiving
          it n the other side..
          regards,
          Akhil
          

Is this the full stack trace?
          Akhil Nagpal wrote:
          > HI ,
          > Sorry the excepiotn is of deserialization...this is the stack trace...mistake...
          >
          > weblogic.jms.common.JMSException: Error deserializing object
          > at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
          > at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
          > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
          > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
          > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
          > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
          > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
          > ----------- Linked Exception -----------
          > weblogic.jms.common.JMSException: Error deserializing object
          > at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
          > at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
          > at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
          > at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
          > at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
          > at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
          > at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
          >
          >
          > Akhil
          >
          >
          > "Akhil Nagpal" <[email protected]> wrote:
          >
          >>HI,
          >> Actually i have created my own class which implements serializable.
          >>I set the
          >>object of this class in the ObjectMessage and send it across. Sometime
          >>i have
          >>to send some vector,sometimes string and sometime a XML document. So
          >>i can set
          >>these type of objects in my custom serializable object and send it. For
          >>sending
          >>XML , either i can send it as a string or as u said as Document object.
          >>But i
          >>want to do send it as a Document object. So i have created a an object
          >>of "org.jdom.Document"
          >>which implement serializable and setting this object into my custom object
          >>and
          >>sending this custom object in the objectmessage. But then weblogic throws
          >>some
          >>exceptions which has nothing to do with serialization.I am printing the
          >>exception
          >>below. (without the object of org.jdom.Document this custom object reaches
          >>safely
          >>and happily:))...this exception is something related to transactions.....can
          >>you
          >>or anybody tell me what could be the reason..
          >>I am not able to think why this kind of exception comes only when i try
          >>to send
          >>the jdom's Document object and never in other cases..
          >>
          >>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
          >>has occured
          >>in the transaction branch start() failed o
          >>n resource 'oraclePool': XAER_RMERR : A resource manager error has occured
          >>in
          >>the transaction branch
          >>oracle.jdbc.xa.OracleXAException
          >> at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
          >> at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
          >> at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
          >> at weblogic.jdbc.jta.DataSource.start(DataSource.java:569)
          >> at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1165)
          >> at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1108)
          >> at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
          >> at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:391)
          >> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1146)
          >> at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1101)
          >> at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:145)
          >> at weblogic.jdbc.jta.Connection.createStatement(Connection.java:204)
          >> at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:130)
          >> at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:71)
          >> at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:134)
          >> at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
          >> at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
          >> at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
          >> at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
          >> at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
          >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
          >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
          >>
          >> at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1151)
          >>
          >>
          >>any help will be appriciated..
          >>Akhil
          >>
          >>
          >>
          >>Raj <[email protected]> wrote:
          >>
          >>>wrap it up as an object message(I think DocumentImpl is Serializable).
          >>>This way you
          >>>wont be vendor specific and can retrieve it at the other end.
          >>>
          >>>Akhil Nagpal wrote:
          >>>
          >>>
          >>>>HI Raj,
          >>>> thanks for the response..actually we dont want our application
          >>>
          >>to
          >>
          >>>be weblogic
          >>>
          >>>>specific...
          >>>> there should be some other way arround....
          >>>>
          >>>>REgards
          >>>>Akhil
          >>>>
          >>>>"Raj" <[email protected]> wrote:
          >>>>
          >>>>>There is a weblogic specific XMLMessage similar to ObjectMessage,
          >>>>
          >>>BytesMEssage
          >>>
          >>>>>etc.. Try using that to wrap ur XML document and send it across.
          >>>>>
          >>>>>-Raj
          >>>>>
          >>>>>"Akhil Nagpal" <[email protected]> wrote:
          >>>>>
          >>>>>>HI,
          >>>>>>does anybody has anyidea about sending the XML Document over the
          >>>>>
          >>>JMS
          >>>
          >>>>>>and receiving
          >>>>>>it n the other side..
          >>>>>>regards,
          >>>>>>Akhil
          >>>>>
          >
          

Similar Messages

  • How can I send an XML request to the server using servlets

    How can I send an XML request to the server using servlets

    http://forum.java.sun.com/thread.jspa?threadID=5158333
    http://forum.java.sun.com/thread.jspa?threadID=5158705
    Crossposting is lame.

  • How can I send a Powerpoint document from my Mac to a PC?

    How can I send a Powerpoint document from my Mac to a PC?

    As an attachment in the usual way.

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • HT2486 I have two email addresses for some of my contacts.  How can I send a email to both of the addresses using the one contact?

    I have two email addresses on some of my address contact cards.  How can I send emails to both addresses.. Now it will only send to one of them.

    Start typing the second address in, it will fill in.

  • How can I send an XML request to the server using JSP

    Can anybody say how to send a xml request
    For ex:
    Address:__________
    City: ________
    State:__________
    Country:________
    and a Submit Button.
    By clicking on the Submit Button -- xml request had to go to the server.
    Please send the detailed code for it

    xml http request..is that wat your are looking for?

  • How can I create a XML document from a DOM?

    Hello,
    I'm using the parser for C, version 2 in the DOM modus. How can I dump the object model to a (XML) string after changing some field?
    Do I need to create my own function or is there a function in the DOM interface??

    You need to create your own function. The Java XML parser has such a function
    and we'll probably add one in a future release as well.
    Oracle XML Team

  • How can I send a personalized mass email with the mail app?

    I need to be able to send a mass email where the "Dear So-and-so" is personalized for each recipient. Is it possible to do this with Mail? If so, how can I accomplish that?

    you'll have to use a feature called "Mail Merge"
    it works with either MS Word + Outlook
    http://office.microsoft.com/en-ca/mac-word-help/use-mail-merge-to-create-a-form- letter-RZ103895371.aspx
    or
    Pages + Mail
    http://support.apple.com/kb/VI129

  • HT2486 How can I send an email to all of the email addresses associated with one contact? Similarly, in regard to group lists, how do you include for distribution all email addresses associated with each contact in the group?

    Often times there are multiple email addresses associated with a single contact in address book.  How can I included all of these email addresses when creating an address book group?

    Don't be surprised.
    Apple offers free, basic Mail and Address Book apps and creates paid, more sophisticated solutions, also allowing Developers to provide more sophisticated solutions for sale in the marketplace.
    When I need to repeatedly email to multiple contacts, I create a blank draft email, and use the Address Book button to list the appropriate address book group. With the Address Book window open, it's easy to click to add multiple email addresses for a single contact name. Each is added to the message email address list. Then I save that blank email to iCloud Drafts, and it retains the email addreses I've entered. Next time I need to send a message I double-click on it in Drafts to open it, and drag it to one of my other email accounts to add Subject and details, then send from the other account.
    Message was edited by: kostby

  • How can I watermark 100 page documents without purchasing the full Photoshop program?

    How can I watermark 100 page PDF documents without purchasing the whole Photoshop program for a MAC?

    Surely you mean "the full Acrobat program". You can use the free trial version.

  • How can I convert an XML document to a tree structure w/properties?

    I'm working on a way for my config files to use an xml like format where data can be converted into a tree like structure for easy reading (by my program). What I need to do is know how to convert my data. Right now I check character to character looking for an opening bracket which doesn't have a forward slash after it. I copy each character until I come to the closing bracket. Then I start copying each character as the value into a buffer until I come to the closing tag of the opening tag. Then I do searches inward. I set the parent key to be the key of the tag I'm searching in. I don't care for this method myself and it could lead to too many problems. What I'm wondering is if there's a practical way to do this. Is there a way for me to tokenize something like this? Any suggestions?

    something like this? Any suggestions?Yeah. Don't re-invent the wheel. It's pointless.
    I'm pretty sure Apache Jakarta has XML parsers

  • How can I send a word document as the body of email

    I have documents that are based on Word Templates that I wish to send to clients. The documents require a reply with input in a table that needs completed by the client.
    I understand there is a way to make the Word document in effect become the email and sent through TB.
    Can someone explain what I need to do i.e. settings in Word and TB.
    I don't want to send the documents either as pdf or attachment.

    I have documents that are based on Word Templates that I wish to send to clients. The documents require a reply with input in a table that needs completed by the client.
    I understand there is a way to make the Word document in effect become the email and sent through TB.
    Can someone explain what I need to do i.e. settings in Word and TB.
    I don't want to send the documents either as pdf or attachment.

  • How can i view an xml document on my MacBook Air?

    I was sent a document with the extension .xml - I haven't been able to find a program that will open it with any formatting that makes sense. Can you help me?

    Thanks, Roger.
    Safari showed it with coding also but then I had a stroke of "Duh, Genius?" -- I chose to open it with Excel! TAH-DAH! It opened it, perfectly formatted.
    Thanks everybody!

  • How can I send many invoice documents to one customer in SAP B1?

    Hi
    Now I can send e-mail through sap b1 to customer by using outlook_integration add-on.
    But I want send many invoices to a customer in one email.
    Can I do it in sap b1?
    Thank u
    Theerawat

    Hi Julie, will this work for electronic invoices also used in Mexico?
    Regards

  • How can I send a ThinkLink image with all the embedded links in Thunderword Email?

    As you are aware, ThinkLink images have embedded links (word files, images, videos etc.). I am, however, not able to send these images through Thunderword emails. I have tried both Inset Image and Insert HTML but nothing works. Of course, I can understand that ThinkLink is a new concept and most of the email clients don't support it.
    Thanks,

    No I am not aware. I have now googled thinklink, joined their site and found that they do not create images. Only Javascript.
    So no email client such as Thunderbird, which does not allow javascript, or any person disabling it in their browser for security reasons, will see your interactive images because they are not images they are interactive programs written in Javascript.
    Now how to get unsubscribed from these folk, they already tried spamming my whole Google Plusfriends list.

Maybe you are looking for

  • Unable to disconnect - files used by another program?

    Looking for some help. Last few times I've connected my iPod to my computer, it won't let me eject it after the update is complete. When I click either eject button, I get a message claiming that some of the files are being used by another program an

  • 10.5.3 upgrade removed my Network Preference

    Literally! In my System Preferences > under Internet & Network > my system now reads NetworkPref whereas before it always said Network. When I click on it the whole system preferences window is empty (with the exception of the menu bar, i.e. "show al

  • Got a 40FT2U - Composite input issue

    Just got it from Wal-Mart, says it has: Connector Type: 2 x HDMI ( 19 pin HDMI Type A ) ¦ 1 x VGA input ( 15 pin HD D-Sub (HD-15) ) ¦ 1 x component video input ¦ 1 x composite video input ¦ 1 x USB ( 4 pin USB Type A ) My dvd player uses composite in

  • How to create s cutomised function module

    Hi all, i want to create acutomised fm , i want to create a zfm , same as like one standard fm . how to copy the original one, i wnat to change one include based on customer requirement. Regards, pandu.

  • Can I open multiple windows in iPhoto?

    How do I view photos in multiple albums/events at the same time?