Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:18:12+00:00 2026-06-13T22:18:12+00:00

The Oracle Docs say – A TextMessage object is used to send a message

  • 0

The Oracle Docs say –

A TextMessage object is used to send a message containing a java.lang.String. It inherits >from the Message interface and adds a text message body.
This message type can be used to transport text-based messages, including those with XML >content.

How is this possible? Are the contents of the XML only send-able(by converting it into an Object and then sending it)? Can the XML File be really put on the Queue in any way and then be read on the receiver side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:18:14+00:00Added an answer on June 13, 2026 at 10:18 pm

    Please use this and object you send must be Serializable

    class Master implements serializable
     {
       List<File> f=new ArrayList<File>();
      //getter and setter
     }
    

    Add –xml files as many as you want

         Master eMaster = new Master();
        eMaster.setF();
        //add Files here 
    
        QueueSender queueSender = queueSession.createSender(queue1);
        ObjectMessage objMessage = queueSession.createObjectMessage();
        objMessage.setObject(eMaster);
        queueSender.send(objMessage);
    

    Receiver End :–

            Master em =null;
            Message message = queueReceiver.receive(1);
            if (message instanceof ObjectMessage
                    && ((ObjectMessage) message).getObject() instanceof Master) {
                em = (Master) ((ObjectMessage) message).getObject();
                //use this and get list of xml file and iterate and process xml file by 
                //below link
            }
    

    1 xml parsing link here

    2 xml parsing link here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: String and Final From http://docs.oracle.com/javase/6/docs/api/java/lang/String.html I can read that: Strings are constant;
http://docs.oracle.com/javaee/1.4/api/javax/jms/Session.html#createTopic(java.lang.String ) This API says that session.createTopic(topicname) is not for creating the physical topic.
https://docs.oracle.com/javase/6/docs/api/java/lang/System.html#currentTimeMillis() says: Returns the current time in milliseconds. Note that while the unit of
Read this on the oracle docs java.lang page: Frequently it is necessary to represent
Here's a quote from: http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html 'd' '\u0054' Formats the argument as a decimal integer.
http://docs.oracle.com/javase/tutorial/java/generics/genmethods.html Quoting from there- A more realistic use of generic methods might be something
I have a very simple java applet that I took from here: http://docs.oracle.com/javase/tutorial/deployment/applet/subclass.html import
I've been reading the Java docs ( http://docs.oracle.com/javase/tutorial/essential/regex/matcher.html ) but am having trouble achieving
http://docs.oracle.com/javase/6/docs/api/java/sql/Timestamp.html The only non-deprecated ctor takes millis. Is there no way to ask for
According to Oracle's online documentation, JnlpDownloadServlet is still a part of Java 7: http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/downloadservletguide.html

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.