Hi again, Finally, I've managed to initilize SimpleJMSListener and retrieved the message on it. Although the same manual processes were required to achive this, I would like to congratulate Axis2 team as these are not too easy to accomplish tasks in a transport-transparent manner.
Some of the missing points I've figured out: - Modules are loaded three times - jndiName is lost - username and password are lost - Ambiguity and incompleteness in the code - Configuration file are loaded many times - There are lots of static definitions for the repository and conf/axis2.xml - Unclearness of the differences between connectorMap and cfMap - Many TODO comments that indicate incomplete features All problems aside, I could manage to do followings - Sending and receiving messages over JMS provider (SonicMQ) - Signing and verifying messages with rampart - Optionally, adding WSA headers I still need to know - The improvement plans of JMS transport - Anyone who has successfully implemented JMS based solution by using Axis2 Thanks, Ali Sadik Kumlali ----- Original Message ---- From: Ali Sadik Kumlali <[EMAIL PROTECTED]> To: axis-user <[email protected]> Sent: Tuesday, June 20, 2006 11:42:59 PM Subject: [Axis2][1.0] JMS test problems with SonicMQ Hi all, Is there anyone who has successfully implemented JMS based solution by using SonicMQ and Axis2? I simply tried to use JMSEchoRawXMLTest.java found in integration tests, but couldn't get it work without doing changes. What I saw that there are problems due to missing environment parameters while creating InitialContext(). I simply did followings to make it run: - Manually set username and password fields in JMSSender.setupTransport () - Manually set environment parameters in JNDIVendorAdapter.getConnectionFactory() You may find details of the changes I made at the end of the mail I also noticed that the message in queue is byte array instead of clear text. Actually, that part of work just related with sending a message to the queue. I didn't try JMS listener implemantation of the Axis2. Any information regarding Axis2, JMS (especially SonicMQ), setup procedures and sample would be greatly appreciated. Many thanks in advance. Ali Sadik Kumlali JMSEchoRawXMLTest -------------------------------- ... static String sampleJmsUrl = "jms:/BAR?" + "ConnectionFactoryJNDIName=AxisTestQueueConnectionFactory" + "&java.naming.factory.initial=com.sonicsw.jndi.mfcontext.MFContextFactory" + "&java.naming.provider.url=tcp://localhost:2506" + /*"&vendor=SonicMQ" +*/ "&domain=QUEUE" + /*"&com.sonicsw.jndi.mfcontext.domain=Domain1" + */ "&java.naming.security.principal=Administrator" + "&java.naming.security.credentials=Administrator"; ... JMSSender.setupTransport () ------------------------------ ... String username = "Administrator"; String password = "Administrator"; ... JNDIVendorAdapter.getConnectionFactory() ---------------------------------------------------------------- ... environment.put (Context.INITIAL_CONTEXT_FACTORY, "com.sonicsw.jndi.mfcontext.MFContextFactory"); environment.put (Context.PROVIDER_URL, "tcp://localhost:2506"); environment.put ("com.sonicsw.jndi.mfcontext.domain", "Domain1"); environment.put ("com.sonicsw.jndi.mfcontext.idleTimeout", "6000"); environment.put (Context.SECURITY_PRINCIPAL, "Administrator"); environment.put (Context.SECURITY_CREDENTIALS, "Administrator"); context = new InitialContext(environment); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
