[jboss-user] [JBoss Messaging] - Re: JBM2 Beta4 with JBAS5.1 - setListener( null )

2009-08-19 Thread jmesnil
simon_temple wrote : Using the JMS API.  If I attempt to clear the currently 
registered listener on a QueueReceiver then I get an IllegalStateException when 
I try to receive on it:
  | 
  | javax.jms.IllegalStateException: Cannot call receive(...) - a 
MessageHandler is set
  |   | at 
org.jboss.messaging.core.client.impl.ClientConsumerImpl.receive(ClientConsumerImpl.java:161)
  |   | at 
org.jboss.messaging.jms.client.JBossMessageConsumer.getMessage(JBossMessageConsumer.java:213)
  |   | at 
org.jboss.messaging.jms.client.JBossMessageConsumer.receiveNoWait(JBossMessageConsumer.java:146)
  | 
  | I have a simple test case which looks this:
  | 
  | queueReceiver.setMessageListener( listener );
  |   | 
  |   | queueConnection.start(  );
  |   | thread.wait( 3 );
  |   | 
  |   | queueReceiver.setMessageListener( null );
  |   | queueReceiver.receiveNoWait(  );
  |   | 
  | 
  | How can I clear the message listener attribute from a QueueReceiver once 
it's been set? 

Thre is a bug in the JBossMessageConsumer which prevents to unset the message 
listener. We'll fix it.

Please not however that even with this bug fixed, your test case may not work.
From MessageConsumer.setMessageListener() javadoc:

anonymous wrote : 
  | The effect of calling MessageConsumer.setMessageListener while messages are 
being consumed by an existing listener or the consumer is being used to consume 
messages synchronously is undefined.
  | 

You should stop your queueConnection to prevent message consumption before 
unsetting the message listener to have a correct behavior.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250322
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM2 Beta4 with JBAS5.1 - Missing JAR jbm-jms-api.jar?

2009-08-18 Thread jmesnil
simon_temple wrote : Bit confused.  Can anyone clarify?
  | 
  | The manual 
http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta4/html/client-classpath.html#d0e1097
 refers to jbm-jms-api.jar yet the Beta4 bundle contains jboss-jms-api.jar.
  | 

there is a typo in the doc, the correct file name is jboss-jms-api.ar. I'll fix 
it.

We provide this file for convenience so that  JMS *clients* can use JBoss 
Messaging without downloading a separate jar for the JMS API.

When you bundle JBM2 in JBoss AS, you don't need to copy this jar as JBoss AS 
already has all the Java EE API (including JMS).


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-04 Thread jmesnil
clebert.suco...@jboss.com wrote : 
  | In your case.. you have the server full. We can't route any more messages 
until DestinationA had messages being consumed and Acked.
  | 

I'm not sure I understand it. Why would I been able to consume from 
destinationA but not from destinationB?
When I hit the global page mode, I'm expecting to be able to consume from any 
queue. Otherwise, a single queue with no consumer could prevent to consume from 
any other queues (like the example). This seems wrong, no?

clebert.suco...@jboss.com wrote : 
  | For the management case.. I was suggesting to never page anything. But 
there is a risk of OME. (If we don't protect it). But as far as I know.. 
management destinations will aways be consumed or dropped. So.. I guess it 
would be ok to ignore paging on Management. Maybe the same would apply to 
temporary queues.

We can bypass paging for management or temp queues (even if I'd prefer not to) 
but this won't solve the issue highlighted by the example.
How can we make sure that when we hit the global page mode, a consumer can 
receive messages from any queue?

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247797
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-08-03 Thread jmesnil
I've managed to reproduce the issue using only JMS API (no management code).
It seems the problem is related to global depaging.

The code to show the problem is SenderWithoutManagement attached to 
https://jira.jboss.org/jira/browse/JBMESSAGING-1695 and the settings in 
jbm-configuration.xml:

  | global-page-size10485760/global-page-size 
  | paging-max-global-size-bytes104857600/paging-max-global-size-bytes 
  | 

The example does the steps:
1/ ceate a temp queue
2/ create a consumer for the temp queue
3/ send a message on the temp queue
4/ consume the message from the temp queue using the consumer

5/ send 5 messages on *another queue*

6/ send a message on the temp queue
7/ consume the message from the temp queue using the consumer open at #2

The 1st time, the example runs fine.
The 2nd time, step #7 fails as the consumer does not receive a message from the 
consumer

Even if I increase the number of messages sent to another queue e.g. to 40, 
the issue appears only on the 2nd run.

This is similar to the issue reported by the user as the management code used 
internally a client consumer which is used for the lifespan of the messaging 
server.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247623
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread jmesnil
i have been able to reproduce the issue.
Once the gobal-page-size is reached, the management message is paged  (fyi, 
internally the mbean uses a Core message to invoke the management operation to 
ensure replication over a cluster).
However, it should be depaged when the mbean tries to receive the management 
message using the ReplicationOperationInvoker

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any

2009-07-31 Thread jmesnil
clebert.suco...@jboss.com wrote : IMO the management address shouldn' t be 
paged (ever).

You're right.

If I bypass paging for management message in PostOfficeImpl.route(), the issue 
disappears.
However, the message which is paged is the *reply* containing the operation 
result. It is not routed to the management address but (generally) to a 
temporary address. This means I can't use the message destination to bypass 
paging as it is not the management address.
The only way to know if the message corresponds to a management message is to 
lookup for a well-known property.
But this is not optimal as I don't want to lookup every message while only 
management message should never be paged.

So, I added a pagingEnabled boolean parameter to PostOffice.route().
When a *management message* is routed, I set it to false. Otherwise, it is 
true. 
Then, in the route() method, I wrapped the paging code in a if(pagingEnabled) 
block.

This avoids to do any lookup to check if the message is a management message or 
not but it clutters a little bit the PostOffice API.

wdyt?



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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247312
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Unable to set connection-ttl or client-failure-check-

2009-07-28 Thread jmesnil
hi,

this is indeed a bug: https://jira.jboss.org/jira/browse/JBMESSAGING-1694. -1 
should be a valid value but it is not accepted in 2.0.0.Beta3 (and Beta4). This 
is fixed in the trunk, sorry for the inconvenience.

As a workaround, you can try to pass the Long.MAX_VALUE which in effect will 
means an infinite timeout.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246410
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Unable to set connection-ttl or client-failure-check-

2009-07-28 Thread jmesnil
hi,

this is indeed a bug: https://jira.jboss.org/jira/browse/JBMESSAGING-1694. -1 
should be a valid value but it is not accepted in 2.0.0.Beta3 (and Beta4). This 
is fixed in the trunk, sorry for the inconvenience.

As a workaround, you can try to pass the Long.MAX_VALUE which in effect will 
means an infinite timeout.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4246411
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Dynamic queues

2009-07-23 Thread jmesnil
bendg25 wrote : Hi,
  | 
  | I would like to use JBoss Messaging 2 but need to check some things first.
  | 
  | 1) Can I create queues dynamically at runtime (using MBeans for example)
  | 

yes 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html/management.html#d0e4803

anonymous wrote : 
  | 2) Can these dynamic queues be persistent
  | 

these queues will be durable (their messages will be persisted).
However, when the server is restarted, they won't be bound to JNDI.

anonymous wrote : 
  | 3) Can these dynamic queues be told to use a security manager?
  | 

I'm not sure to understand your question.
JBM 2.0 defines a security manager 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html/security.html

anonymous wrote : 
  | 4) Do expired messages get moved straight to the DLQ, ie. immediately?
  | 

Expiration is not immediate (as it'd require to scan in permanence the queues, 
slowing down the server).
A expiry reaper periodically moves the expired messages to the DLQ
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html/message-expiry.html



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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM2 Beta3 with JBAS5.1.0 - Configuring Destinations

2009-07-23 Thread jmesnil
your xml file does not correspond to the schema (see 2nd example of 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html/queue-attributes.html#predefined.queues.

It should be something like:

  | queues
  |   queue name=MyQueue
  | addressmyQ/address
  |   /queue
  | /queues
  | 

Please note that in JBM 2.0 Beta 3, there is no longer a separate 
jbm-queues.xsd. Instead, you should validate your configuration file against 
jbm-configuration.xsd

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM2 Beta3 with JBAS5.1.0 - Binding Service?

2009-07-21 Thread jmesnil
JBoss Messaging 2.0 Beta 3 is already configured to work with the service 
bindings.

For an example, have a look at the javaee/jca-config example.
The 2nd server is started with:
run.sh -c jca-config-example-profile2 -Djboss.service.binding.set=ports-01

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245003
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: 5.1.0 CA and messaging 2.0.0 beta 3 cannot deploy MDB

2009-07-20 Thread jmesnil
jim_stoll wrote : thanks to clebert suconic, Core Developer ,i have been 
progressing, 
  | 
  |  i was working thru the J2ee MDB example and while  i didn't get a stack 
trace. i did get an innocuous message
  | 
  | WARNING [config] Unable to process deployment descriptor for context 
'/mdb-example'
  | 
  | 
  |   |  [exec] 15:09:40,140 INFO  [TomcatDeployment] deploy, 
ctxPath=/mdb-example
  |   |  [exec] 15:09:40,180 WARNING [config] Unable to process deployment 
descriptor for context '/mdb-example'
  |   |  [exec] 15:09:40,180 INFO  [config] Initializing Mojarra 
(1.2_12-b01-FCS) for context '/mdb-example'
  |   | 
  | 
It seems the /mdb-example context warning is related to your WAR and Tomcat, 
not to JBoss Messaging.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244590
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBoss 5.1.0GA with JBM2.0.0. b3

2009-07-15 Thread jmesnil
guntherv wrote : Next I tried to find the testQueue of the MDB sample using 
the JMX console as pointed out by ataylor, but I fail to find the MBean. 
  | 

There is a bug in JBM 2.0.0.Beta3 which prevents its MBeans to show up in AS 5 
JMX console.
The bug is fixed in the trunk and there is a workaround for Beta3, see 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4240363 


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243666
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread jmesnil
Leos.Bitto wrote : Thanks a lot for all the quick answers! Navigating me to 
JMSServerManagerImpl was exactly what I needed. I do not like 
JMSServerManagerImpl much for embedding, though, because of two reasons. First 
is that it somehow automagically picks the file jbm-jms.xml, which in my case 
belongs to a different server instance and therefore must not be used. Second 
is that it registers the queues and topics into JNDI (passing null as the 
secong argument to createTopic leads to NullPointerException) and I am trying 
to avoid JNDI in this case.
  | 

Regarding jbm-jms.xml, it will be picked up if it is in the classpath. Could 
you place it in a separate directory and add it to the classpath of the other 
server instance instead?

For JNDI, you could pass a no-op Context implementation to 
JMServerManager.setContext() to disable JNDI.

Do not hesitate to fill JIRA issues for this kind of improvements.

Thanks for the feedback,
jeff


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-06-30 Thread jmesnil
The queue you created is a core queue.

The preferred way to create JMS destinations is using the JMSServerManagerImpl 
on top of the MessagingServer you created:


  | Configuration configuration = new ConfigurationImpl(); 
  | configuration.setPersistenceEnabled(false); 
  | configuration.setSecurityEnabled(false); 
  | configuration.setAcceptorConfigurations(transports); 
  | server = Messaging.newMessagingServer(configuration);
  | JMSServerManager manager =new JMSServerManagerImpl(server);
  | 
  | manager.createQueue(...);
  | manager.createTopic(...);
  | 
  | manager.start(); // will also start the underlying MessagingServer
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Can't control queues from jconsole

2009-06-26 Thread jmesnil
this was fixed in 2.0.0.BETA2 release (see 
https://jira.jboss.org/jira/browse/JBMESSAGING-1605)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240263
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Can't control queues from jconsole

2009-06-26 Thread jmesnil
JBoss Messaging is not currently manageable through the AS 5 console but it is 
planned: https://jira.jboss.org/jira/browse/JBMESSAGING-1636

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240352
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Can't control queues from jconsole

2009-06-26 Thread jmesnil
err... sorry, I confused JON and AS 5 JMX console.

there is an issue in the current configuration of JBoss Messaging which 
prevents to manage it directly in AS 5 console.
To fix it:
1/ change the MBeanServer code in deploy/messaging.sar/jbm-jboss-beans.xml to:


  |bean name=MBeanServer class=javax.management.MBeanServer
  |   constructor factoryClass=org.jboss.mx.util.MBeanServerLocator
  |factoryMethod=locateJBoss/
  |/bean 
  | 

2/ edit conf/props/messaging-users.properties and add the line:

  | JBM.MANAGEMENT.ADMIN.USER=CHANGE ME!!
  | 

3/ that's it, JBoss Messaging is manageable using the JMX console: 
http://localhost:8080/jmx-console/
in the domain tab using org.jboss.messaging

We'll fix this configuration issue in our next release.
Sorry for the inconvenience


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240363
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to create persistent queues on the fly

2009-06-23 Thread jmesnil
How does the problem occur? Do you have an exception when looking up the queue 
in JNDI?

There is a bug in the creation of JMS queue using the management API.
The underlying core queue is durable and messages will survive server restart 
but when the server is restarted, the JMS queue is not bound to JNDI and can 
not be looked up.

We will fix the bug. In the meantime, a possible workaround for you is to 
always recreate the queue when the server is restarted using the management 
API. The 1st time, it will create the queue, the other times, the queue won't 
be created (it already exists) but the queue will be bound to JNDI again.

Tell us if this workaround works for you.





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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4239297
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to create persistent queues on the fly

2009-06-23 Thread jmesnil
timfox wrote : 
  | You can access your queue directly by doing something like:
  | 
  | JBossQueue queue = new JBossQueue(queue_name);
  | 

or use  JMS API Session.createQueue(foo) (provided the JMS Queue was
still created first by using the management API)

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4239369
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBoss SMPP Mobile Messages

2009-06-18 Thread jmesnil
This forum is for JBoss Messaging (JMS).

You should post this question to the AS forum instead. People there may know 
the answer...

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4238410
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to know what jars are needed for various of JMS bus

2009-05-15 Thread jmesnil
for JBoss Messaging, have a look at the documentation for a list of the 
required jars: 
http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.3.GA/html/installation.html#inst.remoteclient.

For other providers, you'd better ask them directly.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4231213
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMS Porting from SUN Java Application Server to JBOSS

2009-05-06 Thread jmesnil
have a look at the documentation for a list of the required jars:
http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.3.GA/html/installation.html#inst.remoteclient

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Hashtable Bean in microcontainer XML configuration

2009-04-27 Thread jmesnil
Hi, 

I've several POJOs deployed from the microcontainer which requires a Hashtable 
in their constructor (JNDI properties fwiw).
I looked in the doc but I've not found a way to declare a Bean which is a 
Hashtable with all the required properties.
So I use a map in all the POJO's constructor:


  |bean name=SourceDestinationFactory 
class=org.jboss.messaging.jms.bridge.impl.JNDIDestinationFactory
  |constructor
  |parameter
  | map class=java.util.Hashtable 
keyClass=java.lang.String valueClass=java.lang.String
  |   entry
  |   keyjava.naming.factory.initial/key
  |   
valueorg.jnp.interfaces.NamingContextFactory/value
  |   /entry
  |   entry
  |   keyjava.naming.provider.url/key
  |   valuejnp://localhost:1099/value
  |   /entry
  |   entry
  |   keyjava.naming.factory.url.pkgs/key
  |   
valueorg.jboss.naming:org.jnp.interfaces/value
  |   /entry
  |   /map
  |/parameter
  |parameter/queue/source/parameter
  |/constructor  
  |/bean
  | 

What I'd like is to define a JNDI bean and inject it directly in my POJOs 
instead:

  |bean name=SourceDestinationFactory 
class=org.jboss.messaging.jms.bridge.impl.JNDIDestinationFactory
  |constructor
  |parameter
  | inject bean=JNDI /
  |/parameter
  |parameter/queue/source/parameter
  |/constructor  
  |/bean
  | 

where JNDI bean is a Hashtable where I filled in the JNDI properties

Is it possible to do that? Where can I find an example/doc about that?

thanks!


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4226592
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - Re: Hashtable Bean in microcontainer XML configuration

2009-04-27 Thread jmesnil
alesj wrote : 
  | There is no such (exact) example.
  | Unless you expect us to cover every bean possible. :-)

Isn't that too much too ask? ;)

Thansk for the answer Ales, I did not know about the install element but I 
should have thought about using the Hashtable's constructor to populate my 
properties.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4226841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Starting/Stopping JNDI server does not exit cleanly the JVM

2009-03-31 Thread jmesnil
Hi, 

when starting JBoss Messaging in standalone mode, I found out that the JVM is 
not exited cleanly when we shutdown the server.
After some investigation, I narrow the problem down to the JNDI server: 


  |   public static void main(String[] args) throws Exception
  |{
  | 
  |   System.setProperty(java.naming.factory.initial, 
org.jnp.interfaces.NamingContextFactory);
  |   System.setProperty(java.naming.factory.url.pkgs, 
org.jboss.naming:org.jnp.interfaces, value);
  | 
  |   NamingBeanImpl namingInfo = new NamingBeanImpl();
  |   namingInfo.start();
  |   org.jnp.server.Main jndiServer = new org.jnp.server.Main();
  |   jndiServer.setNamingInfo(namingInfo);
  |   jndiServer.setPort(1099);
  |   jndiServer.setBindAddress(localhost);
  |   jndiServer.setRmiPort(1098);
  |   jndiServer.setRmiBindAddress(localhost);
  |   jndiServer.start();
  | 
  |   System.out.println(STARTED);
  | 
  |   jndiServer.stop();
  |   namingInfo.stop();
  |   }
  | 

When I run the code (using both  jnpserver 5.0.0.Beta3 and 5.0.0.Beta4), the VM 
hangs and I get the thread dump:


  | Full thread dump Java HotSpot(TM) Client VM (1.5.0_16-133 mixed mode, 
sharing):
  | 
  | DestroyJavaVM prio=5 tid=0x010014b0 nid=0xb0801000 waiting on condition 
[0x..0xb0800060]
  | 
  | NamingBootstrap Pool(1)-1 daemon prio=5 tid=0x01013480 nid=0x82be00 
waiting on condition [0xb0e8e000..0xb0e8ed90]
  | at sun.misc.Unsafe.park(Native Method)
  | at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
  | at 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1841)
  | at 
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
  | at 
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:470)
  | at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674)
  | at java.lang.Thread.run(Thread.java:613)
  | 
  | GC Daemon daemon prio=2 tid=0x010128e0 nid=0x914a00 in Object.wait() 
[0xb0e0d000..0xb0e0dd90]
  | at java.lang.Object.wait(Native Method)
  | - waiting on 0x25b02af8 (a sun.misc.GC$LatencyLock)
  | at sun.misc.GC$Daemon.run(GC.java:100)
  | - locked 0x25b02af8 (a sun.misc.GC$LatencyLock)
  | 
  | RMI Reaper prio=5 tid=0x010124c0 nid=0x913c00 in Object.wait() 
[0xb0d8c000..0xb0d8cd90]
  | at java.lang.Object.wait(Native Method)
  | - waiting on 0x25b01b00 (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
  | - locked 0x25b01b00 (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
  | at sun.rmi.transport.ObjectTable$Reaper.run(ObjectTable.java:336)
  | at java.lang.Thread.run(Thread.java:613)
  | 
  | Timer-0 daemon prio=5 tid=0x010120c0 nid=0x84d200 in Object.wait() 
[0xb0d0b000..0xb0d0bd90]
  | at java.lang.Object.wait(Native Method)
  | - waiting on 0x25b01fa0 (a java.util.TaskQueue)
  | at java.lang.Object.wait(Object.java:474)
  | at java.util.TimerThread.mainLoop(Timer.java:483)
  | - locked 0x25b01fa0 (a java.util.TaskQueue)
  | at java.util.TimerThread.run(Timer.java:462)
  | 
  | RMI TCP Accept-1098 daemon prio=5 tid=0x01011d30 nid=0x84c400 runnable 
[0xb0c8a000..0xb0c8ad90]
  | at java.net.PlainSocketImpl.socketAccept(Native Method)
  | at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
  | - locked 0x25b01b58 (a java.net.SocksSocketImpl)
  | at java.net.ServerSocket.implAccept(ServerSocket.java:450)
  | at java.net.ServerSocket.accept(ServerSocket.java:421)
  | at sun.rmi.transport.tcp.TCPTransport.run(TCPTransport.java:340)
  | at java.lang.Thread.run(Thread.java:613)
  | 
  | Low Memory Detector daemon prio=5 tid=0x01009110 nid=0x81ba00 runnable 
[0x..0x]
  | 
  | CompilerThread0 daemon prio=9 tid=0x01008660 nid=0x81ac00 waiting on 
condition [0x..0xb0b077d8]
  | 
  | Signal Dispatcher daemon prio=9 tid=0x01008130 nid=0x819e00 waiting on 
condition [0x..0x]
  | 
  | Finalizer daemon prio=8 tid=0x01007a70 nid=0x818200 in Object.wait() 
[0xb0a05000..0xb0a05d90]
  | at java.lang.Object.wait(Native Method)
  | - waiting on 0x25a82180 (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:120)
  | - locked 0x25a82180 (a java.lang.ref.ReferenceQueue$Lock)
  | at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:136)
  | at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
  | 
  | Reference Handler daemon prio=10 tid=0x010076b0 nid=0x816a00 in 
Object.wait() [0xb0984000..0xb0984d90]
  | at java.lang.Object.wait(Native Method)
  | - waiting on 0x25a82208 (a java.lang.ref.Reference$Lock)
  | at java.lang.Object.wait(Object.java:474)
  | at 

[jboss-user] [JBoss Messaging] - Re: JBM 2.0 BETA1 -- quque/topicExample failed in jndi looku

2009-03-30 Thread jmesnil
oops... I submitted too fast...

I've fixed the issue in r6210. SimpleString ctor does not accept null strings.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221869
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM 2.0 BETA1 -- quque/topicExample failed in jndi looku

2009-03-30 Thread jmesnil
gaohoward wrote : another problem found with topicExample when this issue 
removed, client side:
  | 

I've fixed the issue.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221868
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: jbm 2.0 beta1 snapshort server startup error

2009-03-27 Thread jmesnil
in build-messaging.xml's distro target, the version of netty jar is wrong and 
the jar is not included in the distribution.

I'm fixing it right now

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221548
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: jms over port 80

2009-03-17 Thread jmesnil
it's possible you have already something else running on port 80 (e.g. web 
server, web service or something else)

Did you try loading the URL in your browser?

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4218536
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Can't Deploy my app on jboss 5.0.0 GA

2009-03-12 Thread jmesnil
Hi, 

This forum is for JBoss *Messaging* question.

You already asked at the right place in the installation, configuration  
deployment forum: you won't have more help posting on the messaging forum.


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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217458
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: jms communications in the same jvm in the client side

2009-03-12 Thread jmesnil
1. check out the trunk: svn co http://anonsvn.jboss.org/repos/messaging/trunk
2. build the jars: ant jar
3. all the jars will be in build/jars/ directory

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4217461
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: MessagingPostOfficeService MBean View on jmx-console is

2009-02-27 Thread jmesnil
wild guess but I suspect that the XML configuration is mixed up with the HTML 
tag of the web console.

Somehow, somewhere, the XML text is not properly escaped 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4213643
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to consume the queue in remote websphere queue from

2009-02-20 Thread jmesnil
you should post the question to the JCA forum, it is not related to JBoss 
Messaging.

The short answer is to use the WSMQ JCA adaptor.
The guys on the JCA forum will give you more info if you need help.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4211794
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Programatically create RemoteJMSProviders, Queues and Br

2009-02-12 Thread jmesnil
you could use JMX to do that.

Instead of calling JMX operations through the web console, you can write Java 
code to perform the JMX operations to create Queues, etc.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4209490
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user



[jboss-user] [JBoss Messaging] - Re: Connection Factory Configuration problem in JBoss Messag

2009-01-26 Thread jmesnil
siddharth_2279 wrote : 1) Any update on this topic. Please Help !!!
  | 

Have you checked that the client application has all the required jars listed 
in the documentation?

siddharth_2279 wrote : 
  | 2) Also does JBoss 5.0.0-G.A. not give us a default QueueConnectionFactory 
and TopicConnectionFactory. This seems to be the case as its giving 
QueueConnectionFactory not bound. But in JBoss-4.2.2 G.A. we used to get a 
default QueueConnectionFactory and TopicConnectionFactory. 
  | 

In JBoss AS 5, connection factories are defined in 
server/$CONFIG/deploy/messaging/connection-factories-service.xml

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4204753
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: int type is unsuitable : MessageCounter.getCount()

2009-01-16 Thread jmesnil
https://jira.jboss.org/jira/browse/JBMESSAGING-1489

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4202338
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBoss messaging help

2008-12-22 Thread jmesnil
* did you configured JBoss Messaging correctly?

http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Installation_And_Getting_Started_Guide/5/html/Using_other_Databases.html#configuring_jbossmessaging_persistence_manager

* did you manage to run the MDB example?
* did you configure your destinations correctly?

http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.destination

More information on what fails for you would help us help you more efficiently.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4198019
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: creating message queues programmatically JMX

2008-12-01 Thread jmesnil
ncaralicea wrote : 
  | i want to create the jmx administrative client able to create this queue
  | 

use ServerPeer MBean to create the queue by calling its deployQueue() method.

jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193513
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Need to configure two different JMS Queue with two diffe

2008-10-10 Thread jmesnil
creativegalaxy wrote : Hi,
  | 
  |I am using Jboss 4.0.5.G.A and MYSQL
  |   
  |I have QueueA, and QueueB, and I want QueueA's messages to be persisted 
to DatabaseA on MYSQL, and I want QueueB's messages to be persisted to 
DatabaseB on MYSQL. 
  | 
  | Plz suggest me the ideas or better solution.
  | 

afaik, this is not possible: JBoss Messaging uses a single database for each 
server. You can't chose a database on a queue basis.




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181433
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: @MessageDriven annotation

2008-09-22 Thread jmesnil
bfach wrote : Hello,
  | 
  | I am attempting to find a workaround for @MessageDriven annotation issue.  
If you put @MessageDriven and want to add more deployments using the deployment 
descriptors in the ear, you will have an error saying that the destination type 
is not configured for default bean name.
  | 

Hi, the @MessageDriven annotation are handled by the EJB code, not by JBoss 
Messaging.

You should ask your question on the EJB forum instead: 
http://www.jboss.com/index.html?module=bbop=viewforumf=221

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4177981
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: exception while sending message from producer

2008-09-16 Thread jmesnil
it seems you are using JBossMQ, not JBoss Messaging.

you should post your question on JBossMQ user forum: 
http://www.jboss.com/index.html?module=bbop=viewforumf=48

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4176834
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: NPE in JBossMessage#propertyExists(String) call

2008-07-28 Thread jmesnil
RavshanKos wrote : 
  | ataylor wrote : What information are you looking for?
  | How many messages in queues, what messages in queue, what properties of 
messages and so on.
  | 

The management interfaces for JBM 2.0 is currently developed in a branch 
https://svn.jboss.org/repos/messaging/branches/Branch_JBMESSAGING-1303 and 
should be merger into the trunk soon.

Fyi, the expected management attributes and operation is described in our wiki: 
http://wiki.jboss.org/wiki/JBM2Management

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167017
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to set up a durable subscriber?

2008-07-17 Thread jmesnil
janylj wrote : 
  | if (client.isDurable()) {
  |   | String clientName = getClientName();
  |   | LOG.info(Creating durable subscriber ( + clientName + ) 
to:  + dest.toString());
  |   | jmsConsumer = getSession().createDurableSubscriber((Topic) 
dest, clientName);
  |   | } else {
  |   | LOG.info(Creating non-durable consumer to:  + 
dest.toString());
  |   | jmsConsumer = getSession().createConsumer(dest);
  |   | }

In both case, you use the same destination dest.
Do you mean that if you client is durable, the jmsConsumer does not receive any 
message from the topic? while it is not durable, it receives message?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165124
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMS Failure to Insert Message (ORA-01483)

2008-07-15 Thread jmesnil
ethanackerman wrote : 
  | JMS Version: JBOSS Messaging v.1.0.1 GA
  | 

You're using a old version of JBoss Messaging.
Can you upgrade to a more recent one? It's likely the bug you're encountering 
has been resolved since then.

jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164524
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Not able to connect to remote Queue through Bridge

2008-07-07 Thread jmesnil
jjacobwip wrote : Hi,
  | 
  | 
  |   | mbean code=org.jboss.jms.jndi.JMSProviderLoader
  |   | 
name=jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider
  |   | attribute name=ProviderNameLocalJMSProvider/attribute
  |   | attribute 
name=ProviderAdapterClassorg.jboss.jms.jndi.JNDIProviderAdapter/attribute
  |   | attribute 
name=QueueFactoryRefXAConnectionFactory/attribute
  |   | attribute 
name=TopicFactoryRefXAConnectionFactory/attribute
  |   | attribute name=Properties
  |   | 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |   | 
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |   | 
java.naming.provider.url=${jboss.bind.address:localhost}:1100
  |   |  /attribute
  |   |  /mbean
  |   | 
  | 
  | 

One thing you could try is to prepend java:/ to your FactoryRefs.
e.g.:


  | attribute name=QueueFactoryRefjava:/XAConnectionFactory/attribute
  | 

hope it helps,
jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162841
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBOSS configuration for multiple brokers.

2008-06-23 Thread jmesnil
Which JMS provider are you using? JBoss Messaging or another one?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4159828
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message Consumer fails when using messageSelector

2008-06-19 Thread jmesnil
mbreuer wrote : I am evaluating JBoss 4.2.2 and JBoss Messaging 1.4.0SP3. 
When using MessageConsumer with a messageSelector, the communication hangs.
  | 
  | ...
  | Differences: 
  | Outside JBossAS the inspector indicates a SpyObjectMessage while inside the 
container a JbossObjectMessage is used.
  | 

SpyObjectMessage is a class from JBossMQ, not JBoss Messaging.
Are you sure you're using JBoss Messaging outside the container?

anonymous wrote : 
  | 2.) Is there a difference in these lines or are they equivalent?
  |  msg.setJMSCorrelationID(correlationId); // 1
  |  msg.setStringProperty(JMSCorrelationID, correlationId ); //2
  | 
  | 

#2 is not legal: you're not allowed to start the name of a property by JMS.
JMSCorrelationID must be set using #1 to work

hope it helps,
jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4159318
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JOBSS Messaging POC

2008-04-24 Thread jmesnil
ssjboss wrote : 
  | Thanks for reply jiffy.
  | 
  | Now I am able to execute queue example in local system, 
  | 
  | My big issue is how can i run listener in remote system, so that if I send 
a message from my local system remote listener (some another system) must 
listen to that messages.
  | 

On the client-side, you have to adapt jndi.properties so that the 
java.naming.provider.url property corresponds to the url of your server.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4146448
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JOBSS Messaging POC

2008-04-24 Thread jmesnil
ssjboss wrote : 
  | 
  |   | //InitialContext ic = getInitialContext();
  |   | Properties props = new Properties();
  |   | 
props.setProperty(java.naming.factory.initial,org.jnp.interfaces.NamingContextFactory);
  |   | props.setProperty(java.naming.factory.url.pkgs, 
org.jboss.naming);
  |   | props.setProperty(java.naming.provider.url, 
jnp://localhost:1099);
  |   | 
  | 

you still points to localhost.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4146500
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JOBSS Messaging POC

2008-04-23 Thread jmesnil
err... I meant the *queue* example...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4146183
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JOBSS Messaging POC

2008-04-23 Thread jmesnil
you should have a look at the topic example in JBoss Messaging.

jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4146182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: ((BytesMessage)message).readBytes(...) on a redelivered

2008-04-18 Thread jmesnil
plesur wrote : 
  | But then calling bytesmessage.readBytes(payload) method on a redelivered 
BytesMessage results in a strange behavior (maybe only strange for me:) - the 
'payload'-bytearray is still initialized although as I can see when I debug my 
project the JBossBytesMessage.payloadAsByteArray[] property (private) isn't 
empty and holds the right content.
  | 

I'm not sure to follow you: you say that your 'payload' byte array is 
initialized with the content of the BytesMessage, right?
If that's the case, it is the expected behavior.

hope it helps,
jeff



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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: ((BytesMessage)message).readBytes(...) on a redelivered

2008-04-18 Thread jmesnil
plesur wrote : 
  | with initialized i mean a new created empty bytearray in the size of the 
Bytemessage's payload:
  | byte[] payload = new byte[(int)bytesmessage.getBodyLength()]; 
  | 
  | with:
  | bytesmessage.readBytes(payload);
  | it should be filled - this is what didn't work for me on a redelivered 
message.

Ok, we're on the same page.

This is indeed weird. We have a JUnit test BytesMessageTest.testRedelivery() 
which checks this use case and this test pass for JBM 1.4.0.SP3.
Our test does not use a MessageListener but I don't think it'd affect the 
message behaviour.

Can you write a unit test which reproduces your problem in your environment?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145187
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMSServerInvocationHandler deadlock

2008-04-15 Thread jmesnil
azafran wrote : Similar to post 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4051404#4051404, we 
are facing a dead lock in the JMSServerInvocationHandler.
  | 
  | JBM version 1.3.0 GA
  | ...
  | 

Hi,

I'd suggest you to update JBM to the latest release.
A lot of bugs have been fixed since the version you use and it's possible this 
deadlock issue has already been fixed.

hope it helps,
jeff


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4144219
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JBM clustered connection factory and load balancing

2008-04-10 Thread jmesnil
Meyers79 wrote : We have been struggling with this for some time and I am 
hoping that someone can help shed some light. 
  | 
  | ...
  | 
  | Currently using the clustered connection factory (load balancing set true) 
to get a connection and post messages to the messaging nodes, we were expecting 
to see the messages sent to the queue from the UI nodes to be evenly 
distributed across both JBM nodes in a round robin fashion. 
  | 

The load balancing is not a true round robin: the local node is always favored 
if it can consume messages.
This avoids unnecessary network hops to send the message to another node if it 
can be consumed locally:

http://www.jboss.com/index.html?module=bbop=viewtopict=133370

hope it helps,
jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4143170
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: how to prevent others to deploy queue using MBeanServerC

2008-04-09 Thread jmesnil
subrata_jboss wrote : my problem is i have following program which others can 
write and deploy a queue in my machine ...
  | 
  | public static void deployQueue(String queueName,InitialContext ic) throws 
Exception {
  | ...
  | }
  | 
  | How can i configure it so that others can not deploy the queue ??

Why don't you decrease the visibility of the deployQueue() method so that it 
can not be called by anybody but you?

It seems the issue is more related to your API than to JBoss Messaging 
deployment...

hope it helps,
jeff




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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4142774
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: on jboss messaging

2008-04-09 Thread jmesnil
zhangzhiyong wrote : I'm chinese.I am not good at English.sorry! 
  | I hope you can understand. 
  | 
  | I want to learn jboss messaging with spring.but I did not find this 
information.jboss messaging have little information. 
  | 
  | Can you provide some information? thanks

http://wiki.jboss.org/wiki/JBMSpringJMSTemplateNotes

hope it helps,
jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4142790
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Client Connect Fails with

2008-04-01 Thread jmesnil
jmesnil wrote : 
  | It seems that our configuration for jboss-remoting is broken.
  | 

I meant *your* configuration.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4140562
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Client Connect Fails with

2008-04-01 Thread jmesnil
jhd wrote : My JMS client fails to connect with the following stack trace:
  | 
  | ...
  | Caused by: java.lang.Exception: Error setting up client lease
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:405)
  | at org.jboss.remoting.Client.setupClientLease(Client.java:1625)
  | at org.jboss.remoting.Client.connect(Client.java:1525)
  | ... 24 more
  | Caused by: org.jboss.remoting.marshal.InvalidMarshallingResource: Can not 
find a valid marshaller for data type: jms
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:79)
  | at 
org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:373)
  | ... 26 more
  | 
  | ...
  | 
  | Anyone have any ideas?
  | 

It seems that our configuration for jboss-remoting is broken.
You should double-check it (remoting-bisocket-service.xml) and be sure that you 
use the correct configuration for JBoss Messaging[1]

hope it helps,
jeff

[1] the warning just above 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.SP3/html/installation.html#install.extra-steps

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4140561
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: basic JBM cluster configuration

2008-03-28 Thread jmesnil
navjeetc wrote : I need to install two or more clusters of JBoss AS and JBM 
on a machine(actually the two nodes in each cluster will be on different 
machines). To make cluster work I am using a different port binding for each 
node and also a different server peer Id. We have also deployed JBM bridges on 
each node. Is that all that is needed to separate one cluster from the other 
especially from JBM point of view?
  | 
  | Using JBM 1.4.0 SP3 and JBoss AS 4.2.1
  | 
  | 

You must also configure the GroupName[1] attribute to identify the cluster  the 
node belongs to.

[1] 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.postoffice.attributes.groupname
 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4139684
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Channel id map for node 21000 already contains binding f

2008-03-27 Thread jmesnil
Hi,

ambika wrote : Hi, 
  |  I am trying to start three different JBoss nodes in three different 
clusters. 
  | 

You mean you have nine different JBoss nodes: 3 per cluster, right?

Each cluster is identified by a GroupName[1]: cluster1, cluster2, cluster3.
Each node must have a globally unique ServerPeerID[2]: in your case from 0 to 8.
Did you configure these 2 attributes properly on your 9 nodes?

hope it helps,
jeff

[1] 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.postoffice.attributes.groupname
[2] 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/configuration.html#conf.serverpeer.attributes.serverpeerid

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4139250
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Messaging standalone

2008-03-27 Thread jmesnil
speleomaniac wrote : 
  | Is there any link that I can get quickly information about configuring 
Messaging standalone.
  | 

JBoss Messaging 1.4.x requires an instance of JBoss AS to run[1] but the 
instance can be configured to run JBoss Messaging only.

hope it helps,
jeff

[1] 
http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.1.Beta1/html/installation.html#install

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4139320
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How to setup multiple messaging services on single serve

2008-02-13 Thread jmesnil
seanshih wrote : Hi,
  | 
  | I am trying to setup multiple messaging services for DEV, QA, and other 
groups on a single JBoss instance.
  | 
  | However, I don't want to create multiple JBoss installation for this 
purpose.
  | 

afaik, you can run multiple messaging services on a single computer using many 
JBoss instances 
(http://labs.jboss.com/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.0.GA/html/installation.html#install.automated)
 but you can't have many messaging services hosted by a single JBoss instance.

jeff

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129065
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: long live consumer stops working

2008-01-30 Thread jmesnil
bodrin wrote : Ok. I tried to setup jboss-messaging-1.4.0.SP3 on 
jboss-4.2.2.GA with jboss-remoting-2.2.2.SP4.
  | 
  | I have done all the steps described in [4.1.1. Automated Installation] for 
clustered installation with two nodes.
  | 
  | When starting there is a problem with the remoting configuration and the 
messaging factories failed to start:
  | 
  |   | 16:48:15,281 ERROR [ConnectionFactory] Parameter pingFrequency is not 
specified in the remoting congiguration
  |   | 
  | 

This means that the pingFrequency parameter is not present in the remoting 
configuration file (presumably remoting-bisocket-service.xml).

You should check that in that file, you have a line like:


  | attribute name=pingFrequency isParam=true214748364/attribute
  | 

for the bisocket transport configuration.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4124811
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How Do I Run JBoss Messaging TestSuite in Q1 2008

2008-01-24 Thread jmesnil
cmagidcmagid wrote : Thank you so much for your reply. 
  | I will need more clarification as to the target of the jbm-beans.xml file 
you mentioned above.  I can not find that file on my system.  I am guessing 
that these instructions are out of date and I will need to install the AS 
before I can get the tests working.  I am including the stacktrace and the FIT 
test results below.  thnx in advance.
  | 

I think I found out what the bug is.
Can you do me a favor to confirm what I suspect?
Can you change  the settings in 
jboss-messaging/src/etc/server/default/deploy/jbm-beans.xml, line 100 from

  |  parametertcp/parameter  
  | 
to 

  |  parameterTCP/parameter  
  | 
and rerun the tests?

It seems that JBoss Microcontainer is confused between the 2 constructors of 
MinaService.
I don't get the problem on my JVM (1.5.0_13-b05 on Linux) but I don't have 
access to a Windows box to check it on the same JVM than yours.

thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: How Do I Run JBoss Messaging TestSuite in Q1 2008

2008-01-22 Thread jmesnil
cmagidcmagid wrote : My goal is to get some version of JBM unit / integration 
tests working.  
  | 
  | ...
  | 
  | testTopic Error Incompletely deployed: *** DEPLOYMENTS IN ERROR:
  | Name - Error MinaService - java.lang.IllegalArgumentException:
  | No enum const class
  | org.jboss.messaging.core.remoting.TransportType.tcp ***
  | 
  | 

I've not been able to reproduce the problem.
Do you have a complete stack trace corresponding to this 
IllegalArgumentException?
Can you also copy the definition of the MinaService bean from 
src/etc/server/default/deploy/jbm-beans.xml?

Thanks,
jeff


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Integrate JBoss MQ With Orion

2008-01-21 Thread jmesnil
hi,

this forum is for JBoss Messaging, not JBoss MQ.
You should repost you question to JBoss MQ Forum 
(http://www.jboss.com/index.html?module=bbop=viewforumf=48), people there 
will be able to better help you.

jeff


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121803
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Subscribe two diferent topics

2008-01-18 Thread jmesnil
rolmovel wrote : Hi all,
  | 
  | Is it possible to subscribe a class to two diferent topics?
  | 

You can set the same MessageListener for the 2 TopicSubscribers you have

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4121268
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: listAllMessages doesn't list persisted messages

2008-01-09 Thread jmesnil
Is there a way of getting all messages in the queue?

AFAIK, the only way to get all the message in the queue is to use a 
QueueBrowser.
I don't think we have a management operation through JMX which lists paged 
messages


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118304
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: listAllMessages doesn't list persisted messages

2008-01-09 Thread jmesnil
pschuebl wrote : I used a QueueBrowser and HermesJMS to list the content of 
the queue and it behaves the same way as the listAllMessages.

my bad: you're right.
The QueueBrowser will only enumerate the messages in memory, it won't list  the 
messages which are paged.

Do not hesitate to create a feature request in JIRA if you need this feature.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118334
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: NoLocal Subscription building up messages in server queu

2007-10-11 Thread jmesnil
see http://jira.jboss.com/jira/browse/JBMESSAGING-1100

it's fixed in the trunk.[/url]

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

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094038
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user