[JBoss-user] [JBossWS] - WS Mappings in different packages / client mapping

2005-06-14 Thread mkprim
Hi , I'm using JBoss 4.0.2 jax-rpc services.
I use the jwsdp (wscompile) for xml and wsdl generation from an interface.
This is my interface: 

  | package com.primary.server.analitics;
  | import com..ev.AnaliticUpdate;
  | 
  | public interface AnaliticsInterface extends Remote {
  | 
  | public void publish(AnaliticUpdate analytics) throws RemoteException;
  | 
  | public String echo(String message) throws RemoteException;
  | }
  | 

However, as you can see, the parameters classes are in different packages than 
the webservice interface. So, whenever wscompile generates the wsdl and 
jaxrpc-mapping it points to the service package (com.primary.server.analitics) 
and not to the parametrs packages (com.ev and com.primary.common.product, 
respectively)
In the same way, when we run a client, it says that it cannot find the mapping 
for the AnaliticUpdate classs (one of the parameters).
I also put an ws4ee-deployment file but nothing happened.
Anyone knows how to make wscompile to use the correct namespace for eacha 
package? Or how to make this work?

Help will be greatly appreciated.
Marcelo


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3881457#3881457

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3881457


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Duplicate messages

2005-03-14 Thread mkprim
OK, I've done some debugging, and inspecting the trace generated by the client 
(the receiver/consumer) gone through the code.
Now, the code in the class org.jboss.mq.il.uil2.UILClientILService, in the 
method handleMsg we saw this:


  |   switch( msgType )
  |   {
  |  case m_receiveRequest:
  | ReceiveRequestMsg rmsg = (ReceiveRequestMsg) msg;
  | ReceiveRequest[] messages = rmsg.getMessages();
  | connection.asynchDeliver(messages);
  |socketMgr.sendReply(msg);
  | break;
  |   ...
  |}
  | 

The line in red, is sending the full message back when a receiveRequest message 
is received. That's the part that seems to be resending the message back.
So, I've commented this line and recompiled the jboss sources. I took the 
jbossmq.jar for the clients, rerun the test, and everithing worked just fine, 
and the duplicate messages disappeared.
I wanted to  know if I can just do this, or it will break something.
What's the purpose of returnin the message, even if the message is one way?
Thanks,
   Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3870095#3870095

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870095


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Duplicate messages

2005-03-13 Thread mkprim
Tested also on JBoss 4.01, using UIL2 connection.
For discarding a network problem, also tested on different networks.
The same problem goes on.
It's a real bug, and actually i'm debugging JBossMQ code.
If anyone wants to help, it will be welcomed.
Thanks,
   Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3869967#3869967

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869967


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Duplicate messages

2005-03-04 Thread mkprim
I did a simple test to discard the fact that my app was adding some noise.
I made a QueueSender (sends a BytesMessage to the JBoss queue/testQueue) and a 
QueueReceiver (consumes messages from the same queue).
I captured the traffic between those machines, and the result was the same.

I here add the frames capture made with ethereal (the sender's ip is 
192.168.7.121, the receiver's ip is 192.168.7.192, jboss jms server running on 
192.168.7.121:8093)

anonymous wrote : 
  | source 192.168.7.121  dest 192.168.7.192  8093  40662
  | 
  |   00 08 a1 55 cb e3 00 10  4b 8a 87 9e 08 00 45 00   ...U K.E.
  | 0010  00 9f 2e 55 40 00 80 06  3b 7a c0 a8 07 79 c0 a8   [EMAIL PROTECTED] 
;z...y..
  | 0020  07 c0 1f 9d 9e d6 87 16  42 a4 05 f7 66 5b 80 18    B...f[..
  | 0030  fa 29 5a e5 00 00 01 01  08 0a 00 35 db 44 03 66   .)Z. ...5.D.f
  | 0040  96 c9 77 68 19 80 00 00  21 00 00 00 00 01 02 02   ..wh !...
  | 0050  00 09 74 65 73 74 51 75  65 75 65 00 00 00 02 00   ..testQu eue.
  | 0060  00 00 00 00 00 00 00 00  00 00 04 07 00 13 49 44    ..ID
  | 0070  3a 33 2d 31 31 30 39 39  35 35 32 35 37 31 38 36   :3-11099 55257186
  | 0080  33 00 00 01 02 6e 7d 23  62 01 09 ff ff ff ff 00   3n}# b...
  | 0090  09 00 00 01 07 00 04 49  44 3a 33 00 00 00 00 00   ...I D:3.
  | 00a0  00 00 04 48 6f 6c 61 01  80 00 00 00 79...Hola. y 
  | 
  | source 192.168.7.192  dest 192.168.7.121  40662   8093
  | 
  |   00 10 4b 8a 87 9e 00 08  a1 55 cb e3 08 00 45 00   ..K. .UE.
  | 0010  00 9f b4 0c 40 00 40 06  f5 c2 c0 a8 07 c0 c0 a8   [EMAIL 
PROTECTED]@. 
  | 0020  07 79 9e d6 1f 9d 05 f7  66 5b 87 16 43 0f 80 18   .y.. f[..C...
  | 0030  16 d0 3c de 00 00 01 01  08 0a 03 66 97 bf 00 35   ... ...f...5
  | 0040  db 44 77 68 19 80 00 00  21 00 00 00 00 01 02 02   .Dwh !...
  | 0050  00 09 74 65 73 74 51 75  65 75 65 00 00 00 02 00   ..testQu eue.
  | 0060  00 00 00 00 00 00 00 00  00 00 04 07 00 13 49 44    ..ID
  | 0070  3a 33 2d 31 31 30 39 39  35 35 32 35 37 31 38 36   :3-11099 55257186
  | 0080  33 00 00 01 02 6e 7d 23  62 01 09 ff ff ff ff 00   3n}# b...
  | 0090  09 00 00 01 07 00 04 49  44 3a 33 00 00 00 00 00   ...I D:3.
  | 00a0  00 00 04 48 6f 6c 61 01  80 00 00 00 79...Hola. y 
  | source 192.168.7.192  dest 192.168.7.121  40662   8093
  | 
  |   00 10 4b 8a 87 9e 00 08  a1 55 cb e3 08 00 45 00   ..K. .UE.
  | 0010  00 64 b4 0d 40 00 40 06  f5 fc c0 a8 07 c0 c0 a8   [EMAIL 
PROTECTED]@. 
  | 0020  07 79 9e d6 1f 9d 05 f7  66 c6 87 16 43 0f 80 18   .y.. f...C...
  | 0030  16 d0 b9 12 00 00 01 01  08 0a 03 66 97 bf 00 35    ...f...5
  | 0040  db 44 77 2d 01 00 00 00  3b 00 01 01 02 00 09 74   .Dw- ;..t
  | 0050  65 73 74 51 75 65 75 65  00 13 49 44 3a 33 2d 31   estQueue ..ID:3-1
  | 0060  31 30 39 39 35 35 32 35  37 31 38 36 33 80 00 00   10995525 71863...
  | 0070  00 79  .y 
  | 
  | source 192.168.7.192  dest 192.168.7.121  40662   8093
  | 
  |   00 10 4b 8a 87 9e 00 08  a1 55 cb e3 08 00 45 00   ..K. .UE.
  | 0010  00 4a b4 0e 40 00 40 06  f6 15 c0 a8 07 c0 c0 a8   [EMAIL 
PROTECTED]@. 
  | 0020  07 79 9e d6 1f 9d 05 f7  66 f6 87 16 43 19 80 18   .y.. f...C...
  | 0030  16 d0 22 88 00 00 01 01  08 0a 03 66 97 bf 00 35   ... ...f...5
  | 0040  db 44 77 13 0d 00 00 00  3c 00 80 00 00 00 00 00   .Dw. ...
  | 0050  00 00 00 00 00 00 00 79...y   
  | 
  | 

Thanks a lot,
Marcelo.

PS: Maybe I could add this to JBossMQ JIRA? I will look in the sources to see 
if i can fix this problem

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3868835#3868835

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868835


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - Duplicate messages

2005-03-03 Thread mkprim
Hi I'm using JBoss 3.2.3, to run an application that uses JBossMQ as it's JMS 
provider.
The performance is not bad, however we've been capturing the network packets 
using a sniffer (Ethereal).
We've seen that when the server sends an object message to the client (using a 
TemporaryQueue established at the beggining of the app), the client resends 
back the same message to the server.
The JMS options are:
- TTL = 0
- NON_PERSISTENT (using messageCache)
- MaxRedelivery = 10
- priority = 4.

We know for sure it's not a network problem, but an application server one. And 
our app is not sending back the messages.
If anyone knows what this could be, or how to fix it, I would greatly 
appreciate your help.
Thanks a lot,
Marcelo 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3868694#3868694

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868694


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Duplicate messages

2005-03-02 Thread mkprim
Hi I'm using JBoss 3.2.3, to run an application that uses JBossMQ as it's JMS 
provider.
The performance is not bad, however we've been capturing the network packets 
using a sniffer (Ethereal). 
We've seen that when the server sends an object message to the client (using a 
TemporaryQueue established at the beggining of the app), the client resends 
back the same message to the server.
The JMS options are:
   - TTL = 0
   - NON_PERSISTENT (using messageCache)
   - MaxRedelivery = 10
   - priority = 4.

We know for sure it's not a network problem, but an application one. And our 
app is not sending back the messages.
If anyone knows what this could be, or how to fix it, I would greatly 
appreciate your help.
Thanks a lot,
Marcelo



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3868529#3868529

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868529


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Duplicate messages

2005-03-02 Thread mkprim
Already know that it does not have impact in my application.
What I NEED is to lower bandwidth consumption, so I'm trying to discover why 
this is happening, and how to fix it.
Thanks,
   Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3868560#3868560

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3868560


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: TypeMapping of custom class with an array in it

2005-02-15 Thread mkprim
already posted in JBoss JIRA in JBossWS
thanks

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3866710#3866710

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3866710


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - TypeMapping of custom class with an array in it

2005-02-14 Thread mkprim
Hi, I've been using JBoss.NET with jboss-3.2.3 to access webservices. 
Everything worked ok, but we decided to move on to JBoss4. I've downloaded it 
and followed the steps to reconfigure the webservices for JBossWS.
Every WS work OK, except one wich uses a custom class that has an array in 
itself as an attribute. When I run the client, jboss throws the following error 
message:

anonymous wrote : 
  | 15:59:40,698 ERROR [BeanPropertyTarget] Could not convert 
[Lcom.primary.common.paginasFijas.PaginaFija; to bean field 'paginas[0]', type 
[Lcom.primary.common.paginasFijas.PaginaFija;
  | 15:59:40,700 ERROR [RPCInvocation] java.lang.IllegalArgumentException: 
array element type mismatch
  | java.lang.IllegalArgumentException: array element type mismatch
  | at 
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:243)
  | at 
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:305)
  | at 
org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeserializer.java:664)
  | at 
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:590)
  | at 
org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1247)
  | at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:252)
  | at 
org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
  | at 
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:436)
  | at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1180)
  | at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:244)
  | at 
org.apache.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1387)
  | at 
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:262)
  | at org.apache.axis.message.RPCElement.getParams(RPCElement.java:396)
  | at 
org.apache.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:234)
  | at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
  | at 
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
  | at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
  | at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
  | at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
  | at 
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)
  | at 
org.jboss.webservice.server.ServerEngine.invokeInternal(ServerEngine.java:202)
  | at 
org.jboss.webservice.server.ServerEngine.invoke(ServerEngine.java:91)
  | at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:975)
  | at 
org.jboss.webservice.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:84)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:370)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  | at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:44)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:169)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  | at 

[JBoss-user] [Clustering/JBoss] - Re: UDP bind_addr vs. -Dbind.address JBoss 3.2.6

2004-12-10 Thread mkprim
I would be pleased if you could add this to new versions, because I really need 
that the cluster traffic go through my internal network and not to the external 
addres (that has a public address).
Thanks, 
Marcelo.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3858192#3858192

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3858192


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Client disconnection from Windows and Linux

2004-11-25 Thread mkprim
Hi, I have a Swing client that connects using JMS to a sever (Linux) running 
JBoss4.
I'm using a firewall to make the clients detect a connection exception and 
reconnect.
When the client reconnects, theres an MDB in the server that sends a message to 
a temporary queue where the client was registered before the conection was 
broken.
If the server can succesfully send a message to the temporary queue, the client 
is not allowed to log-in, and if it fails the client ends the login.
I have tested it in Linux and works fine... the server can never send a message 
to the client, and throws a client not connected exception.
In windows, the server can send a message to the client without problems. I 
cannot understand why, due to the  broken connection.

I want to  make clear that I configured the uil2-service.xml, so we have a 
PingPeriod = 0, and  a ReadTimeout = 7.

If anybody understands what is happening... please tell me.. I've been debuggin 
for two days to get to this conclusion that the difference  may be in the OS.
Thanks,
Marcelo.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3856437#3856437

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3856437


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JBossMQ Fire Forget

2004-11-19 Thread mkprim
Yes after a few minutes my JMS onException method is callled.
But, shouldn't JMS be asychronous in the client side? I mean, shold we wait the 
message to arrive to the server, to resume the thread? I don't think this is 
good for anyone!
I don't want to think that I should create a separate thread to do a 
sender.send(message), or shoud I?
If you have an idea, please tell me!
Thanks a lot,
 Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855758#3855758

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855758


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - JBossMQ Fire Forget

2004-11-19 Thread mkprim
Hi, we' ve been using JBossMQ since JBoss 3.0.8, a long time ago.
We were testing JMS against a lot of bad conditions, like a 64 KB internet 
connection, many clients, long ping times, and many others.
However there's been a test case that is not working properly. If we have 
already established a client connection to a Queue in the server, and set up 
the firewall to block the JMS ports (ie 8093, 1099, 1098), and do a 
sender.send(msg), the thread blocks completely until we open the ports again. 
This does not comply with the 'Fire and Forget' you mention in the Wikis
Any idea if this is ok or there might be a solution?

Here's the client code:

  | ObjectMessage objMsg;
  | try {
  | objMsg = queueSession.createObjectMessage();
  | objMsg.setJMSReplyTo(tempQueue);
  | objMsg.setObject(sendEvent);
  | sender.send(objMsg, 
DeliveryMode.NON_PERSISTENT,sendEvent.getPriority(),msg_ttl);
  | } catch (JMSException e) {
  | e.printStackTrace();
  | throw new ConnectionException(e.getMessage());
  | }
  | 

The queueSession and the temporaryQueue are already created. This code executes 
every time I send a message to the server.

Any help will be appreciated.
Thanks a lot,
Marcelo.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3855748#3855748

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3855748


---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss.NET] - non-bean class

2004-09-29 Thread mkprim
Hi I have a class that implements a web service, and has this method
   public void placeChatEvent(ChatEvent evt)

But this ChatEvent is a complex type, so whenever I try to deploy the wsr, axis tries 
to
find out the complex type and generate a descriptor.
However I get this error: 

[Types] The class com.primary.common.events.ChatEvent extends non-bean class 
com.primary.common.events.GenericRequest.  An xml schema anyType will be used to 
define com.primary.common.events.ChatEvent in the wsdl file.

However, my GenericRequest adjusts to the JavaBean Specification.
Here is the GenericRequest Code: 


  | public abstract class GenericRequest extends GenericEvent {
  | 
  | private SessionID sessionId;
  | private User user; // Para ser llenado en el server
  | private String requestId;
  | 
  | /**
  |  *  Default constructor
  |  */
  | public GenericRequest() {
  | super();
  | }
  | 
  | /**
  |  * Se recomienda usar este constructor
  |  * @param type
  |  */
  | public GenericRequest(int type){
  | super(type);
  | }
  | 
  | 
  | /**
  |  */
  | public abstract void doAction(MarketsApi mApi) throws ServerException;
  | 
  | /**
  |  * @return el Id de Session
  |  */
  | public SessionID getSessionId() {
  | return sessionId;
  | }
  | 
  | /**
  |  * @param sessionID el Id de Session
  |  */
  | public void setSessionId(SessionID sessionID) {
  | sessionId = sessionID;
  | }
  | 
  | /**
  |  * Devuelve el identificador del pedido unico para este cliente
  |  * Es el mismo que tiene el request
  |  * @return int el identificador del pedido unico para este cliente
  |  */
  | public String getRequestId() {
  | return requestId;
  | }
  | 
  | /**
  |  * Setea el identificador del pedido unico para este cliente
  |  * Es el mismo que tiene el request
  |  * @param int el identificador del pedido unico para este cliente
  |  **/
  | public void setRequestId(String requestId) {
  | this.requestId = requestId;
  | }
  | 
  | 
  | /**
  |  * @return Returns the userId. Para ser usado en el servidor
  |  */
  | public String getUserName() {
  | return user.getName();
  | }
  | 
  | /**
  |  * @return the user (filled in the server)
  |  */
  | public User getUser() {
  | return user;
  | }
  | 
  | /**
  |  * @param userId The userId to set. Para ser llenado en el server
  |  */
  | public void setUser(User user) {
  | this.user = user;
  | }
  | 
  | }
  | 

Can anybody please help me? I think this might have a simple solution that I just 
cannot see because i'm a newbie in webservices and axis.
Thanks a lot,
Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3849930#3849930

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3849930


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS Over Authenticated HTTPS Proxy

2004-04-19 Thread mkprim
Yes. We have already done the test, and it worked. 
We're currently using j2sdk 1.4.2_01, JBoss 3.2.3, and for the test we needed to setup 
the default authenticator. Then it works.
Here's the simple client application code. You can see we are using a 
ProxyAuthenticator, wich is our own implementation of the java.net.Authenticator, were 
we override the getPassword(), returning the password passed in the class constructor.


  | package com.primary.test;
  | 
  | import java.io.*;
  | import java.net.Authenticator;
  | import java.net.URL;
  | import com.primary.common.communications.ProxyAuthenticator;
  | 
  | class TestHTTPAuth {
  |public static void main(String args[]) throws IOException {
  | 
  |System.setProperty(https.auth.digest.validateServer, true);
  |System.setProperty(https.auth.digest.validateProxy, true);
  |System.setProperty(https.proxyHost, 192.168.7.4);
  |System.setProperty(https.proxyPort, 3128);
  |System.setProperty(https.nonProxyHosts, );
  |Authenticator.setDefault(new ProxyAuthenticator(jero, jero));
  |
  |
  |for (int i = 0; i  args.length; i++) {  
  |URL url = new URL(args);
  |InputStream is = url.openStream();
  |Reader stream = new InputStreamReader(is);
  |int c;
  |while ((c = stream.read()) != -1)
  |System.out.print((char) c);
  |}
  |System.exit(0);
  |}
  | 
  | }
  | 

We removed the https.proxyUser and https.proxyPassword properties, because they 
made no effect on the results. For the test, we used the https://www.yahoo.com; 
address, and using the -Djavax.net.debug=all property, we saw it worked fine.

We debugged the client code, and it steps into the ProxyAuthenticator getPassword() 
method. But using the SAME code in the JBoss client, it does not step int that method.
Maybe this can help. 
It would be useful if we could change the JMS connection sockets properties, like the 
authentication (or am I wrong with all this supposition?)
Thanks a lot,
 Marcelo.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831445#3831445

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831445


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - JMS Over Authenticated HTTPS Proxy

2004-04-16 Thread mkprim
Hi! I've a Client-Server app that uses JBoss Servers and Swing Clients that 
communicate over JMS. I've already set my JBoss up, and my swing clients are able to 
connect to the server either using UIL2 Connection Factory or  HTTPIL 
ConnectionFactory.
So I was able to connect the client with the server using JMS over HTTPS.
My next step, is to connect to the JBoss server with the client being behind an HTTPS 
proxy. Well I've configured the https.proxyHost, https.proxyPort  and the proxySet in 
the client, and I can connect to a non-Authenticated proxy.
But when I try to connect to my proxy with username and password, specifiying the 
https.proxyUser and https.proxyPassword, the proxy denies the access, not seeing the 
username and password, as it was never sent.
I've tryied with an authenticator, but nothing changed.
What should I do to connect JMS over a tunneled (proxied with authentication) HTTPS?
Can you PLEASE help me?
I really need this, because the project may fail without this.
Thanks a lot,
 Marcelo

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831013#3831013

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831013


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS HTTPIL Ping Question

2004-03-22 Thread mkprim
any ideas?

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826888#3826888;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826888Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS HTTPIL Ping Question

2004-03-19 Thread mkprim
I don't understand your question?
  I need a way to detect client disconnection, to inform to my own system to erase the 
client from a connected list.

HTTP is a stateless protocol, unlike UIL2.
 OK

How can sending a message to a client help you? You send the message to the server
not the client?
 This helps me this way: I establish a TemporaryQueueConnection from every client to 
the server. If a clients needs to send a message to the server, it sends a message to 
a preexistent and known queue, and sets the Reply-to header to the TemporaryQueue.
This way, I can associate any client with its queue.
 So every 10 seconds I send a message to every tempQueue I have. If the message send 
fails, I get an exception, and I know I have to remove that client from the connected 
list. Am I clear?
Well, this works with UIL2, but not with the HTTPIL, and I don't know why.
Any idea?

If you want to detect client inactivity, you can use the ClientMonitorInterceptor,
see deploy/jms/jbossmq-service.xml
I'll see if I can override and add my own interceptor in the top of the chain.

Thanks, Marcelo


a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826536#3826536;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826536Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Exceptions for callMethodOnCluster

2004-03-12 Thread mkprim
Thank you very much! I'm willing to se the new 3.2.4!
Marcelo

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825426#3825426;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825426Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Exceptions for callMethodOnCluster

2004-03-11 Thread mkprim
Hi, i'm implementing a solution that uses the callMethodOnCluster partition service, 
to send remote requests between the servers.
However when I throw an exception in the remote server (the one that really serves the 
request) the exception does not appear or propagate to the client server (the one 
invoking the callMethod...).
Is the the way it works? Do the exceptions propagate? Or this is a problem?
Thanks a lot,
   Marcelo

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825255#3825255;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3825255Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: JNDI Failure Over HTTPS

2004-03-05 Thread mkprim
You can solve this by using ./run.sh -c all  --host=your host ip

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824458#3824458;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3824458Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: JMS over HTTP problem

2004-02-09 Thread mkprim
View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3820738#3820738

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820738

Below is my jms configuration for both UIL and HTTPIL



uil2-service.xml:



 mbean code=org.jboss.mq.il.uil2.UILServerILService

 name=jboss.mq:service=InvocationLayer,type=UIL2

depends optional-attribute-name=Invokerjboss.mq:service=Invoker

UIL2ConnectionFactory

UIL2XAConnectionFactory



8093

3000

true

!-- Used to disconnect the client if there is no activity --

!-- Ensure this is greater than the ping period --

4000

!-- The size of the buffer (in bytes) wrapping the socket --

!-- The buffer is flushed after each request --

2048

!-- Large messages may block the ping/pong --

!-- A pong is simulated after each chunk (in bytes) for both reading and writing 
--

!-- It must be larger than the buffer size --

100

  



  !-- Aliases UIL - UIL2 for backwards compatibility

   the deprecated UIL deployment can be found in docs/examples/jca --

   

  UILConnectionFactory

  UIL2ConnectionFactory

   

   

  UILXAConnectionFactory

  UIL2XAConnectionFactory

   





Here's the jboss-service in the META-INF in the HTTPIL SAR:



mbean code=org.jboss.mq.il.http.HTTPServerILService

 name=jboss.mq:service=InvocationLayer,type=HTTP

depends optional-attribute-name=Invokerjboss.mq:service=Invoker

jboss.web:service=WebServer

HTTPConnectionFactory

HTTPXAConnectionFactory

0

60

0

!--attribute name=UseHostNamefalse/attribute--

https://marcelo.MERCADOS/jbossmq-httpil/HTTPServerILServlet

!--attribute name=URLPrefixhttps:///attribute--

!--attribute name=URLSuffixjbossmq-httpil/HTTPServerILServlet

443

localhost/attribute--

  





And my code uses the Scheduler service to send a JMS Message every 10 secs to each 
client to probe if it's alive.

Maybe this will help

Thanks,

   Marcelo


---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user