Thanks Dejan. I've created https://issues.apache.org/activemq/browse/AMQ-2022
I think tooltips might be a bad choose for this. Unless I am misunderstanding what is happening it seems like a large message is being trimmed only for it to be displayed in a tooltip. So you could end up with an enormous tooltip. Would a scrollable div or read only text area not be a better gui choice? ----- Original message ----- From: "Dejan Bosanac" <[EMAIL PROTECTED]> To: [email protected] Date: Tue, 2 Dec 2008 14:33:34 +0100 Subject: Re: XStream and ActiveMQ component Hi, please file a Jira request. I think this should be optional and configurable option. Until then you can "hack" admin console yourself; just replace <form:tooltip text="${requestContext.messageQuery.body}" length="78"/> with <c:out value="${requestContext.messageQuery.body}" escapeXml="true" /> in webapps/admin/message.jsp Cheers -- Dejan Bosanac ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net On Tue, Dec 2, 2008 at 2:18 PM, Claus Ibsen <[EMAIL PROTECTED]> wrote: > Hi > > I think you should report this to the AMQ jira, with a screenshot if > possible. Then they could clip the tooltip to max 200 chars etc. > > /Claus Ibsen > Apache Camel Committer > Blog: http://davsclaus.blogspot.com/ > > > > On Tue, Dec 2, 2008 at 2:11 PM, Martin Gilday <[EMAIL PROTECTED]> > wrote: > > Thanks Claus, that works. > > > > Unfortunately AMQ 5.2 has some new yucky tooltip display mode when your > > body is over a couple of lines long :( > > > > > > ----- Original message ----- > > From: "Claus Ibsen" <[EMAIL PROTECTED]> > > To: [email protected] > > Date: Tue, 2 Dec 2008 13:41:53 +0100 > > Subject: Re: XStream and ActiveMQ component > > > > Hi Martin > > > > I had the same problem with IBM WebSphere MQ. Here is a route I > > created for a POC so I could browse the XML in WebSphereMQ: > > > > Hint: use convertBodyTo(String.class) > > > > > > from("gsoQueue") > > // map the input from GS to our inhouse format > > .processRef("mapper") > > // marhsal the inhouse format to a xml stream and as a > > string so we can browse > > // it on the queue (xstream is default byte arrays) > > .marshal().xstream().convertBodyTo(String.class) > > .to("inhouseQueue"); > > > > from("inhouseQueue") > > // from the skygge queue unmarshal back from xml to our > > domain model objects > > .unmarshal().xstream() > > // process it by our own processor where we can do in java > > what we want > > // and we want to update the database > > .processRef("skyggedb"); > > > > > > /Claus Ibsen > > Apache Camel Committer > > Blog: http://davsclaus.blogspot.com/ > > > > > > > > On Tue, Dec 2, 2008 at 1:13 PM, Martin Gilday <[EMAIL PROTECTED]> > > wrote: > >> I am placing messages onto ActiveMQ through Camel and using the XStream > >> component to marshal to XML. However when I look in the ActiveMQ admin > >> panel I can see that the messages are there but the body looks empty. > >> When I consume the messages and use unmarshal and pass to a bean ref > >> then the body is correctly recieved. Searchs of the mailing list show > >> cases where the body is null, but as I can later unmarshal this can't be > >> the case here. Is there any reason why ActiveMQ would not be able to > >> display my XML message bodies? When using marshal does it send the body > >> as BytesMessage or TextMessage? > >> > >> Thanks, > >> Martin. > >> > > >
