You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org> on 2006/07/07 01:10:30 UTC

[jira] Created: (AXIS2-868) New JMS Implementation Unit Tests

New JMS Implementation Unit Tests
---------------------------------

         Key: AXIS2-868
         URL: http://issues.apache.org/jira/browse/AXIS2-868
     Project: Apache Axis 2.0 (Axis2)
        Type: Improvement

  Components: Integration  
 Environment: Win2K, JDK 1.4, SonicMQ 7.0
    Reporter: Ali Sadik Kumlali


Hi,

I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.

I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.

I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.

There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.

If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.

To much words, huh? :)


SonicMQ Configuration
---------------------------------------------------
- I used SonicMQ as JMS provider.
  - Created two brokers 
    - InsecureBroker (localhost:2507)
      - No username and password requires to connect
      - Created TEST_QUEUE under the broker
    - SecureBroker (localhost:2508)
      - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
      - Created SECURE_TEST_QUEUE under the broker
  - Created two connection factories and JNDI entries for them
     - InsecureQueueConnectionFactory
       - Creates connections to InsecureBroker
     - SecureQueueConnectionFactory 
       - Creates connections to SecureBroker      
  - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)


Content of the Attached Package
---------------------------------------------------
- Unit test class (NewJMSEchoRawXMLTest)
- Security enabled JMSConnectionFactory and JMSSender
- Client and server repositories
- Screen shots of SonicMQ configuration for secure and insecure connection factories
- Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.

[1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
[2] www.hermesjms.com


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-868?page=all ]

Ali Sadik Kumlali updated AXIS2-868:
------------------------------------

    Attachment: NewJmsImplUnitTest.zip

Oops! JMSSender.java and JMSConnectionFactory.java are added. Previous attachment may safely be deleted.

> New JMS Implementation Unit Tests
> ---------------------------------
>
>          Key: AXIS2-868
>          URL: http://issues.apache.org/jira/browse/AXIS2-868
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: Integration
>  Environment: Win2K, JDK 1.4, SonicMQ 7.0
>     Reporter: Ali Sadik Kumlali
>  Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-868?page=comments#action_12441947 ] 
            
Ali Sadik Kumlali commented on AXIS2-868:
-----------------------------------------

Dims,

For my MDB scenario, I tried using ActiveMQ embedded in Geronimo. But wasn't able to get a result due deployment bugs found in Geronimo[1].

I'll try to port this unit test to standalone ActiveMQ when I have time.

[1] https://issues.apache.org/jira/browse/GERONIMO-2451


> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-868?page=all ]

Ali Sadik Kumlali updated AXIS2-868:
------------------------------------

    Attachment: AXIS2-868.patch

Please apply this patch under ..\branches\1_1\modules\integration\test\org\apache\axis2\


> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: AXIS2-868.patch, JMSEchoRawXMLOneWayTest.java, NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-868?page=comments#action_12458481 ] 
            
Ali Sadik Kumlali commented on AXIS2-868:
-----------------------------------------

Hi Asankha, Dims

I could, at last, manage to port the sample :) 

Some points:
- It know uses the embedded ActiveMQ broker.
- All the TODO tasks commented at the beggining of the JMSEchoRawXMLOneWayTest.java.
- It's ready for testing authenticated connections if the JMS implementation supports it. I found how ActiveMQ can be configured for authenticated connections[1]. You may find the line[2] that enables security in embedded broker. I commented out it, since enabling security needs some more steps.
- Embedded or standalone broker use is selectable now. I used to need this since I could enable security only with the standalone broker. But it's not the case anymore :)

Since I don't have write access on SVN, 'svn diff' doesn't reflect the new file additions. So, I'll attach JMSEchoRawXMLOneWayTest.java separately.

Regards,

Ali Sadik Kumlali

[1] http://issues.apache.org/activemq/browse/AMQ-982
[2] broker.setPlugins(new BrokerPlugin[] { new JaasAuthenticationPlugin () });


 

> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-868?page=all ]

Davanum Srinivas resolved AXIS2-868.
------------------------------------

    Resolution: Fixed

woohoo!!! Thanks for your persistence and hard work :)

-- dims

> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: AXIS2-868.patch, JMSEchoRawXMLOneWayTest.java, NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


RE: [jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests

Posted by Plorks mail <pl...@hotmail.com>.
Take me off this list - your unsubscribes does not work


>From: "Davanum Srinivas (JIRA)" <ji...@apache.org>
>Reply-To: axis-dev@ws.apache.org
>To: axis-dev@ws.apache.org
>Subject: [jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests
>Date: Thu, 12 Oct 2006 07:46:38 -0700 (PDT)
>
>     [ 
>http://issues.apache.org/jira/browse/AXIS2-868?page=comments#action_12441761 
>]
>
>Davanum Srinivas commented on AXIS2-868:
>----------------------------------------
>
>Ali,
>
>Current SVN has support to launch activemq and run the old testcases. Would 
>you have some time to port this set of tests to work with activemq?
>
>thanks,
>dims
>
>
> > New JMS Implementation Unit Tests
> > ---------------------------------
> >
> >                 Key: AXIS2-868
> >                 URL: http://issues.apache.org/jira/browse/AXIS2-868
> >             Project: Apache Axis 2.0 (Axis2)
> >          Issue Type: Improvement
> >          Components: Integration
> >         Environment: Win2K, JDK 1.4, SonicMQ 7.0
> >            Reporter: Ali Sadik Kumlali
> >         Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
> >
> >
> > Hi,
> > I've created full documented unit tests for the new JMS implementation 
>based on JMSEchoRawXMLTest. It may be used to establish a base for 
>discussions found in 
>http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a 
>starter point, it only addresses authenticated connection discussed[1] in 
>the user-list a couple of days ago.
> > I used in-only services. Therefore, messages are sent to the queue 
>without waiting a response. When the message arrives at the queue, 
>listener(at the server) retrieves and delegates it to the AxisEngine. 
>Finally, echoOMElement () method is invoked.
> > I created two services: EchoXMLService and SecureEchoXMLService. First 
>one is accessed through TEST_QUEUE and the second one is accessed through 
>SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and 
>password must be passed. These are different from the principal and the 
>credentials defined either in JMS URL or axis2.xml. The principal and the 
>credentials are needed to access initial context factory of the JMS server. 
>We can retrieve connection factories by using these values. Whereas, if the 
>security is enabled, the username and the password are needed to create 
>connection by using the retrieved factory. The factory implicitly creates 
>connections to the broker. Thus, when the security option of the broker is 
>enabled, there will be a need for username and the password. That is what 
>the new JMS implementation doesn't support.
> > There are two unit tests: test01EchoXMLOneWay () and 
>test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService 
>through TEST_QUEUE. And the second one makes call to the 
>SecureEchoXMLService through SECURE_TEST_QUEUE.
> > If the original JMSConnectionFactory  and JMSSender are used, 
>test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( 
>to these files to show authenticated connection. You may look at the TODO 
>lines of the mentioned files.
> > To much words, huh? :)
> > SonicMQ Configuration
> > ---------------------------------------------------
> > - I used SonicMQ as JMS provider.
> >   - Created two brokers
> >     - InsecureBroker (localhost:2507)
> >       - No username and password requires to connect
> >       - Created TEST_QUEUE under the broker
> >     - SecureBroker (localhost:2508)
> >       - To be able to connect to this broker Username=SecureBroker and 
>Password=myPassword must be passed.
> >       - Created SECURE_TEST_QUEUE under the broker
> >   - Created two connection factories and JNDI entries for them
> >      - InsecureQueueConnectionFactory
> >        - Creates connections to InsecureBroker
> >      - SecureQueueConnectionFactory
> >        - Creates connections to SecureBroker
> >   - Created JNDI entries for the queues (TEST_QUEUE and 
>SECURE_TEST_QUEUE)
> > Content of the Attached Package
> > ---------------------------------------------------
> > - Unit test class (NewJMSEchoRawXMLTest)
> > - Security enabled JMSConnectionFactory and JMSSender
> > - Client and server repositories
> > - Screen shots of SonicMQ configuration for secure and insecure 
>connection factories
> > - Screen shots of Hermes[2], an application that allows you to interact 
>with JMS providers. I did this to make sure the secure and insecure 
>connections can be established(while browsing) by a generic tool.
> > [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> > [2] www.hermesjms.com
>
>--
>This message is automatically generated by JIRA.
>-
>If you think it was sent incorrectly contact one of the administrators: 
>http://issues.apache.org/jira/secure/Administrators.jspa
>-
>For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-dev-help@ws.apache.org
>

_________________________________________________________________
Windows LiveĀ™ Messenger has arrived. Click here to download it for free! 
http://imagine-msn.com/messenger/launch80/?locale=en-gb


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-868?page=comments#action_12441761 ] 
            
Davanum Srinivas commented on AXIS2-868:
----------------------------------------

Ali,

Current SVN has support to launch activemq and run the old testcases. Would you have some time to port this set of tests to work with activemq?

thanks,
dims


> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Asankha C. Perera (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-868?page=comments#action_12442011 ] 
            
Asankha C. Perera commented on AXIS2-868:
-----------------------------------------

ActiveMQ doesn't properly support authenticated connections, or at least does not allow one to do so easily nor provide adequate documentation http://www.mail-archive.com/activemq-dev@geronimo.apache.org/msg01286.html

I tried to do this sometime back looking into the activeMQ code etc, but didn't reach a point I could use.

> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-868?page=all ]

Ali Sadik Kumlali updated AXIS2-868:
------------------------------------

    Attachment: NewJmsImplUnitTest.zip

Unit test package has been attached.

> New JMS Implementation Unit Tests
> ---------------------------------
>
>          Key: AXIS2-868
>          URL: http://issues.apache.org/jira/browse/AXIS2-868
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement

>   Components: Integration
>  Environment: Win2K, JDK 1.4, SonicMQ 7.0
>     Reporter: Ali Sadik Kumlali
>  Attachments: NewJmsImplUnitTest.zip
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-868) New JMS Implementation Unit Tests

Posted by "Ali Sadik Kumlali (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-868?page=all ]

Ali Sadik Kumlali updated AXIS2-868:
------------------------------------

    Attachment: JMSEchoRawXMLOneWayTest.java

Please put the file under ..\branches\1_1\modules\integration\test\org\apache\axis2\jms

> New JMS Implementation Unit Tests
> ---------------------------------
>
>                 Key: AXIS2-868
>                 URL: http://issues.apache.org/jira/browse/AXIS2-868
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: Integration
>         Environment: Win2K, JDK 1.4, SonicMQ 7.0
>            Reporter: Ali Sadik Kumlali
>         Attachments: AXIS2-868.patch, JMSEchoRawXMLOneWayTest.java, NewJmsImplUnitTest.zip, NewJmsImplUnitTest.zip
>
>
> Hi,
> I've created full documented unit tests for the new JMS implementation based on JMSEchoRawXMLTest. It may be used to establish a base for discussions found in http://www.mail-archive.com/axis-dev@ws.apache.org/msg18552.html. At a starter point, it only addresses authenticated connection discussed[1] in the user-list a couple of days ago.
> I used in-only services. Therefore, messages are sent to the queue without waiting a response. When the message arrives at the queue, listener(at the server) retrieves and delegates it to the AxisEngine. Finally, echoOMElement () method is invoked.
> I created two services: EchoXMLService and SecureEchoXMLService. First one is accessed through TEST_QUEUE and the second one is accessed through SECURE_TEST_QUEUE. To be able to access SECURE_TEST_QUEUE, username and password must be passed. These are different from the principal and the credentials defined either in JMS URL or axis2.xml. The principal and the credentials are needed to access initial context factory of the JMS server. We can retrieve connection factories by using these values. Whereas, if the security is enabled, the username and the password are needed to create connection by using the retrieved factory. The factory implicitly creates connections to the broker. Thus, when the security option of the broker is enabled, there will be a need for username and the password. That is what the new JMS implementation doesn't support.
> There are two unit tests: test01EchoXMLOneWay () and test02SecureEchoXMLOneWay(). First one makes call to the EchoXMLService through TEST_QUEUE. And the second one makes call to the SecureEchoXMLService through SECURE_TEST_QUEUE.
> If the original JMSConnectionFactory  and JMSSender are used, test02SecureEchoXMLOneWay () test cannot be passed. I made an ugly hack :( to these files to show authenticated connection. You may look at the TODO lines of the mentioned files.
> To much words, huh? :)
> SonicMQ Configuration
> ---------------------------------------------------
> - I used SonicMQ as JMS provider.
>   - Created two brokers 
>     - InsecureBroker (localhost:2507)
>       - No username and password requires to connect
>       - Created TEST_QUEUE under the broker
>     - SecureBroker (localhost:2508)
>       - To be able to connect to this broker Username=SecureBroker and Password=myPassword must be passed.
>       - Created SECURE_TEST_QUEUE under the broker
>   - Created two connection factories and JNDI entries for them
>      - InsecureQueueConnectionFactory
>        - Creates connections to InsecureBroker
>      - SecureQueueConnectionFactory 
>        - Creates connections to SecureBroker      
>   - Created JNDI entries for the queues (TEST_QUEUE and SECURE_TEST_QUEUE)
> Content of the Attached Package
> ---------------------------------------------------
> - Unit test class (NewJMSEchoRawXMLTest)
> - Security enabled JMSConnectionFactory and JMSSender
> - Client and server repositories
> - Screen shots of SonicMQ configuration for secure and insecure connection factories
> - Screen shots of Hermes[2], an application that allows you to interact with JMS providers. I did this to make sure the secure and insecure connections can be established(while browsing) by a generic tool.
> [1] http://www.mail-archive.com/axis-user@ws.apache.org/msg15817.html
> [2] www.hermesjms.com

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org