How can a Stomp client know if it is a TextMessage or ByteMessage?

The functional specification for the Stomp implementation says: "MQ always set content-length for MESSAGE frame sent to STOMP clients" (https://mq.dev.java.net/4.4-content/stomp-funcspec.html)
However, the specification also says about messages sent from the client to the broker: "A STOMP frame message sent from a STOMP client is converted to a JMS BytesMessage if content-length header presents else it is converted to a JMS TextMessage."
Do I understand correctly that the client should simply receive the message and store the data in a byte array, and that client-side logic should be used to decide which message type it is (for example using application-defined JMSType header, or application-defined header properties)? (because of the missing message type information)

yes.

Similar Messages

  • How can I get Client IP Address in oracle?senthil

    How can I get Client IP Address in oracle?senthil

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

  • How can I get client IP address in portlet (servlet) ?

    How can I get client IP address in portlet (servlet) ?
    request.getRemoteAddr() return server IP.
    May be I must use Portal API, which extend Servlet classes, but I can't find this.
    Can any help me?

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

  • MSExchangeTransport 1020 'NT AUTHORITY\ANONYMOUS LOGON - How can I identify Client?

    My Exchange 2010 box is logging this error with some regularity:
    MSExchangeTransport
    1020
    The account 'NT AUTHORITY\ANONYMOUS LOGON' provided valid credentials, but is not authorized to use the server; failing authentication.
    How can identify what client is attempting this connection?

    Hi,
    If there is no event id 1035, I recommend you use protocol logs with log parser to check the sender IP. Also, you can use network monitor to verify this client's IP address.
    Here is a helpful article for your reference.
    Report Top Sender IP’s on Exchange Server 2010 using Log Parser
    http://exchangeserverpro.com/exchange-2010-report-top-sender-ips-log-parser/
    Note: Microsoft is providing this information as a convenience to you. The site is not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make
    sure that you completely understand the risk before retrieving any suggestions from the above link.
    Hope it helps.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • How can I get to know if a method is threads-safe?

    Hi, there.
    How can I get to know if a method is threads-safe?
    For example, in two different threads, is System.out.print() method safe or not?And where can I find the information with regard to this?
    thanks very much.

    System.out is a PrintStream object. None of the methods there use the synchronized modifier, but if you look in the source code, you will find out it is thread-safe, because it will use synchronized blocks whenever it writes some text.
    The source code is in the src.jar file which you can extract.
    I didn't find any comments about that PrintStream is thread-safe in the API.

  • Iphone 4s charger not working..how can i come to know that is there problem with charger or iphone

    i phone 4s is not taking charge...how can i come to know that is there any problem with charger or with my iphone?

    JimHdk wrote:
    Try a different charger and cable.
    Great minds think alike. Or. "Fools seldom differ"

  • How can I get to know what's my iCloud account and password, I forgot them

    How can I get to know what's my iCloud account and password, I forgot them

    Welcome to the Apple community.
    If you can't remember the password, reset it at...
    iForgot.com

  • How can i get to know the widget type from the sample.

    If am trying to copy a widget sample from a reference site, how can I get to know if its a standard out of box or some custom widget.
    For example what type of widget could be the given, it seems its a google map for any location.

    Hello,
    Open the site for edit, in the side panel open the 'Content Catalog' and filter by 'Delivered with product' to see the list of the out of the box widgets.
    The Google maps widget is not an out of the box widget.
    Regards,
    Eliel.
    Cloud Portal Dev.

  • How can i load Client side XML file to Table

    Hi,
    How can i load the all the XML files (near 10,000 files) available in client machine to the XML table .
    I did try with directrory list in the Webutility demo form, but when the number of file is near to 1,500 its giving error.
    Please suggest the best method to implement my requirements.
    1. XML fies are in a folder in end users machine(Windows OS)
    2. I need to load all the XML files to table (Oracle Database is in Unix)
    I am using forms 10g
    Thanks in advance.
    Rizly

    Hi,
    What is the error you are getting when you reach 1,500 records? Can you post it? You mentioned you are using the webutil to load them. How you are loading? From the client machine you are loading to the database directly? Can you post the code you are using for that?
    -Arun

  • How can i get to know what is the reason for implausible meater reading?

    Hi All,
    I am new to this SAP -ISU.
    can any body tell me how can i get the reason for implausible meater reading.
    my requirement is to get the unbilled meters becasuse of unrealibility of meter reader.
    here what i understood is if meater reading is not in a position to bill so it means meater reading may be in implausible state. so i want to know the reason for implausible meater reading so that i get the meters which are not billed because of unreliasility of meter reader.
    in which table these reasons get store.
    if any body knows about these please reply me ASAP.
    Thanks in Advance.

    At the very least, you will receive EXACTLY the same product you sent in.  You may get a newer product.  It's Apple's choice.

  • How can I catch Client Application crash?

    Hi all.
    I'm developing a client application, which makes several long-time operations on its server.
    These server-operations are started, monitored and stopped by my cllient, during a "normal" lifecycle.
    The problem is: if my client unexpectedly shut down (i.e. system crash or interruption by task manager), how can I catch this event, in order to send the "interrupt" to the server and stop the current thread?
    I tried to add a WindowListener on the Main Window of my client app, but it doesn't work... any other idea?
    Thanks in advance for any help.

    But if you "pull the plug" how can the "finalize" method in the client be called?
    It's like asking your wife if she is sleeping.
    If she answers "yes" she is lying because she must be awaken to answer your question.
    The server must manage disconnections (for instance, you can devise a "ping" transaction that all clients must execute periodically.
    If the client stops to send the "ping" you can assume that the client was disconnected.)

  • How can i  get to know whether a ip Address is reachable?

    i am sorry for my poor english...now i meet a session:
    if i have very many ipaddresses,in system,we use ping to know
    whether the single ip is reachable,but in java application,how can
    i do it rapidly?
    thank u...

    There is a method named isReachable
    try to see its syntex and usage in java.net documentation
    bye

  • How can I preserve Client Port on CSS

    Hi guys,
    I’m wondering if there is a way to configure CSS11503 running 8.10 so that the servers in the content rules can see the client port number??
    The servers can see the client IP, but not the port!! It seems when forwarding packets to the servers in the content rule, the CSS uses a new high-number port when communicating with servers.
    Thanks

    I might be wrong, but afaik it depends on the type of balancing method used.
    As long as the CSS only needs to nat the destination it won't change the client source port.
    As soon as it get's a Layer4 rule it will intercept and setup a new connection and thus cause higher port numbers.

  • How can Webservice manage client sections and send back messages to clients

    Hi all.
    I am starting working with Webservice (jax-ws). Now i can make a good server side and on client side i can use method interface on webservice server side.
    But i want to make a advance feature as Server side manage client section and can send back message to client when Server change status...
    I know RMI and Corba can seems to support to send back messages to sections of cliens right ?
    So Webservice can do it ? Please help me !
    Thanks
    Diego
    Edited by: ThuCT on Sep 14, 2010 1:57 AM

    Hi all.
    I am starting working with Webservice (jax-ws). Now i can make a good server side and on client side i can use method interface on webservice server side.
    But i want to make a advance feature as Server side manage client section and can send back message to client when Server change status...
    I know RMI and Corba can seems to support to send back messages to sections of cliens right ?
    So Webservice can do it ? Please help me !
    Thanks
    Diego
    Edited by: ThuCT on Sep 14, 2010 1:57 AM

  • Changing the external hard drive - how can I let FCP know where to find my footage?

    Just got an 8TB RAID because my existing 2TB drive is full -- and I'm still working on a very large video project.
    So...I want to transfer everything over from the smaller drive to the bigger one.
    Question: How do I let Final Cut know where all the footage has been sent to?
    Can I simply drag all the footage to the new drive, and then change the capture scratch settings so FCP knows where to look for the footage from now on?
    OR...is it more complicated than this?
    Thanks
    Toni

    Hello
    Thanks for your reply
    I've copied all of the material from the old HD (Redd Foxx) to the new HD (Silverberg).
    Unfortunately, the screen capture you included in your email looks nothing like my version of FCP -- I'm using FCP 6.0.6.  Also, I can't find anywhere that allows me to "modify event references."
    Either way, I can't open the project on the new HD (Silverberg) -- FCP wants me to turn on the old HD (Redd Foxx).
    So...I reset the scratch disks to Silverberg but haven't "cleared" the old one off yet, as I'm worried I might have to re-render everything.
    I just want to get rid of Redd Foxx (the old HD) altogether.  Step by step help, please!!
    Thanks
    TL

Maybe you are looking for