[JBoss Messaging] - Re: Problem with large strings
by timfox
| Connection conn = cf.createConnection();
|
| conn.start();
|
| Session sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
| MessageProducer prod = sess.createProducer(queue);
|
| prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
|
| StringBuffer sb = new StringBuffer();
| for (int i = 0; i < 50 * 1024 * 1024; i++)
| {
| sb.append("X");
| }
| String s = sb.toString();
|
| TextMessage tm1 = sess.createTextMessage(s);
|
| long start = System.currentTimeMillis();
| log.info("Sending message");
| prod.send(tm1);
| log.info("Sent message");
| long end = System.currentTimeMillis();
|
| log.info("Send took " + (end-start) + " ms");
|
| MessageConsumer cons = sess.createConsumer(queue);
|
| start = System.currentTimeMillis();
| log.info("Receiving message");
| TextMessage tm2 = (TextMessage)cons.receive(1000);
| log.info("Received message");
| end = System.currentTimeMillis();
|
| log.info("Receive took " + (end-start) + " ms");
|
| assertEquals(tm1.getText(), tm2.getText());
|
| conn.close();
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961339#3961339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961339
19 years, 9 months
[EJB/JBoss] - TransactionManager not bound
by KickMeToAndy
Hi all,
when i try to access a jboss (3.2.7) cluster with my ejb client i am getting
the following warning :
| 20060727-134606.965 WARN [DefaultPartition] [MessageDispatcher up processing thread] [] javax.naming.NameNotFoundException: TransactionManager not bound
is this something serious, or can i ignore the message ? The task that
i wanted to executed was executed successful. The message
shows up only, if i am running against a jboss cluster, if i am running
agains a single jboss, i do not get this warning.
Another issue i have is that i am getting this ctx lock warning.
20060727-134611.685 WARN [AbstractInstanceCache] [RMI TCP Connection(10863)-16.30.58.178] [] Unable to passivate due to ctx lock, id=1253557886
however i do only get those if i am running my ejb client against a cluster
(surprise!), i do not get these warnings, when i run the client against
a single jboss server.
any ideas, comments.
thanks in advance,
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961338#3961338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961338
19 years, 9 months
[JBossWS] - Web client for WS Secure web service: how to?
by garyng
Hello,
I have a simple web service created, and an equally simple web-based (servlet) client. Both are deployed to the same JBoss instance.
Everything works, but now I'd like to enable encryption.
>From reading through the docs and the forum posts, I've managed to get the service to expect a secured message. So, now, when I try to connect to the service from my client, I get back the expected message:
javax.xml.rpc.soap.SOAPFaultException: This service requires <wsse:Security>, which is missing.
This is fine. So now the question is this: how do I enable security in my web client?
I understand that jboss-wsse-client.xml is required on the client side - but this XML file does not specify the location of the key or trust.
The docs say this:
"We did not specify a key store or trust store, because client apps instead use the wsse System properties instead. If this was a web or ejb client (meaning a webservice client in a war or ejb jar file), then we would have specified them in the client descriptor."
Can anyone clarify this? Has anyone figured out how to specify these settings in a client descriptor?
For that matter, has anyone actually managed to get an encrypted web service message working with anything except a stand-alone client?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961333#3961333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961333
19 years, 9 months