-
15. Re: Accessing JMS queue from SwitchYard
rmarmun Sep 15, 2011 7:55 AM (in response to beve)Hi Daniel,
I used the HornetQ client from the 'hornetq-binding' quickstart. I'll try this out with the client you are speaking about.
I'll let you know.
Cheers,
Raúl
-
16. Re: Accessing JMS queue from SwitchYard
beve Sep 15, 2011 8:12 AM (in response to rmarmun)I used the HornetQ client from the 'hornetq-binding' quickstart.
I just tried it and I'm seeing the same error. I'll look into it now.
Thanks,
/Daniel
-
17. Re: Accessing JMS queue from SwitchYard
beve Sep 15, 2011 9:51 AM (in response to beve)This error will be fixed with the following jira
The issue here is that I was incorreclty looking at the type of the payload when creating the invoker invokation metadata . The above jira takes care of this issue and will allow a message payload of null.
Regarding why the client from the hornetq-binding quickstart sent a message that was the JMS component was not able to extract the body from, hence it is null, I'll need to investigate further to understand why this happens.
Regards,
/Daniel
-
18. Re: Accessing JMS queue from SwitchYard
rmarmun Sep 15, 2011 10:12 AM (in response to beve)Ok Daniel, many thanks. By the way, I've just been able to execute correctly the service we have been speaking about, introducing the JMS message using the HornetQ client from the camel-jms-binding example.
Now.. the next step, how could the messege be read from a remote JMS Server? (Weblogic, in my case). We have been speaking about retrieving the connection factory from the LOCAL JNDI server but.. with Weblogic... it must be retrieved from the remote JNDI server (I think it's not possible to do it in other way).
The JNDI conection properties are something like that:
java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory
java.naming.provider.url = t3://host:port
I tried adding a jndi.properties file, with this content, to the classpath but it's not working...
So, how could I configure this scenario? I don't know if it's possible to configure JBoss in a way that the Weblogic ConnectionFactory can be retrieved from the local JNDI..
I would really appreciate any help!
Thanks,
Raúl
-
19. Re: Accessing JMS queue from SwitchYard
kcbabo Sep 26, 2011 9:29 AM (in response to rmarmun)Hi Raul,
You might want to ask the question about remote JNDI on the AS7 mailing list. Given the lack of reply here, I'm guessing that I'm not alone in not knowing the answer to your question. ;-)
cheers,
keith
-
20. Re: Accessing JMS queue from SwitchYard
kcbabo Sep 26, 2011 9:30 AM (in response to rcernich)Has anyone tried this yet? If not, I plan to give it a go this afternoon.
Rob Cernich wrote:
Couldn't you get the best of both worlds by injecting the JNDI resources? Take Daniel's example and apply http://docs.jboss.org/weld/reference/latest/en-US/html/ee.html#jms to it.