Considered UNSOLICITED BULK EMAIL from you
by Content-filter@localhost
Your message to:
-> oleg(a)pinco.ru
was considered unsolicited bulk e-mail (UBE).
Subject: =3D?windows-1251?B?xO7sIDIg8e/g6+jr6CDq4Oog7u3oIOTw7vfg8iDt4CDx4OnyIOru8g=3D=3D?=3D =3D?windows-1251?B?7vD76SD/IPLl4eUg7+7q4Obz?=3D
Return-Path: <jboss-user(a)lists.jboss.org>
First upstream SMTP client IP address: [85.140.163.193] ppp85-140-163-193.pppoe.mtu-net.ru
According to the 'Received:' trace, the message originated at: [85.140.163.193]
Our internal reference code for your message is 05695-06/RmQVnn7F2JPy.
Delivery of the email was stopped!
17 years, 6 months
[JBossWS] - Re: Are ports reusable/concurrent?
by jorgemoralespou_2
We have done this:
| // Static initialization of webservice client
| static protected SendSms stub;
|
| static{
| QName qname = new QName(
| "http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/service",
| "SendSms");
| SendSmsService service = new SendSmsService(null, qname);
| stub = service.getSendSms();
| }
|
|
| @Override
| protected String sendMessage(...params...) throws Exception {
| String response = null;
|
| if (stub==null){
| throw new Exception("There is no stub for SendSms PX 2.1 service created.");
| }
|
| //Configure stub
| stub.getRequestContext().put(StubExt.PROPERTY_CLIENT_TIMEOUT,1000);
| stub.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, ...);
| response = stub.sendSms(...params....);
| return response;
| }
|
|
But I doing tests to see if it is ThreadSafe to do this, or configuring an endpoint on the stub, will afect other clients sending messages to a previously configured stub in a previous (but concurrent) call.
In this cases I see that Stub generation only happens in the static initialization, and this way, performance is much more better.
Am I doing something wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179980#4179980
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179980
17 years, 6 months