-
1. Re: Running jboss-messaging client in the JBoss AppServer
mskonda Mar 19, 2007 12:49 PM (in response to sdhaliwal)you have (AFAIK) two choices:
1. create an EJB that can publish messages using standard JMS API (and ofcourse using MDB to subscribe/consume)
2. Create a service (MBean) that can instantiate your test client (if you expose a method on the MBean, it can be invoked via JMX console.
Thanks
Madhu -
2. Re: Running jboss-messaging client in the JBoss AppServer
sdhaliwal Mar 19, 2007 1:48 PM (in response to sdhaliwal)Actually, the question is not how to accomplish this. But how to configure the server so that it does not throw the exception when we try to run the client.
-
3. Re: Running jboss-messaging client in the JBoss AppServer
mskonda Mar 19, 2007 2:05 PM (in response to sdhaliwal)have you had a chance to look at this:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Enabling_access_to_remote_JBoss_Messaging_instance
Hope this helps. Shout if not. -
4. Re: Running jboss-messaging client in the JBoss AppServer
clebert.suconic Mar 19, 2007 2:45 PM (in response to sdhaliwal)loader constraints violated when linking org/jboss/remoting/InvokerLocator
"mskonda" wrote:
have you had a chance to look at this:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Enabling_access_to_remote_JBoss_Messaging_instance
Hope this helps. Shout if not.
Yep... correct...
It looks like you have a classLoading scoping problem. -
5. Re: Running jboss-messaging client in the JBoss AppServer
sdhaliwal Mar 19, 2007 4:16 PM (in response to sdhaliwal)I think I did not explain clearly what we are trying to do. We are not trying to run the jboss-messaging client code from an MDB which the provided link addresses. We have the JMS as you will have it from a stanalone client (running in its own JVM). However, we want to invoke it from a jboss server instance because we want to take advantage of the management capabilities of the server. Therefore, we have an MBean which on startup creates and InitialContext with the properties pointing to the remove server and tries to lookup the ConnectionFactory. That is when we get the exception.
Any help will be greately appreciated -
6. Re: Running jboss-messaging client in the JBoss AppServer
mskonda Mar 20, 2007 6:33 AM (in response to sdhaliwal)As you have not deployed your MBean in a scoped env (unfortunately you should have them scoped - there's a work around, see below), your JMS client is failing..
So, the best and official way is - to scope your client!
Unofficial way - replace the JBoss's jboss-remoting.jar with those bundled with JBM. I experiemented this with earlier and current versions of JBM and it worked for me without any hassles!
Thanks
Madhu -
7. Re: Running jboss-messaging client in the JBoss AppServer
jaink Mar 27, 2007 1:52 PM (in response to sdhaliwal)We have same issue. We are using EJB3 MDBs and a servlet that creates a local listerner in the same server instance as JBM (1.2.0.GA).
Could you please let me us know what finally worked for you? I have tried replacing remoting jar but EJB3 seems to stop working then.