Hi Chinthana,

I think we should create template poms for these kind of common cases and
make them available. They saves lot of time when you want to do something
quick. SA team might already have them :)

--Srinath


On Mon, Sep 2, 2013 at 11:29 AM, Chintana Wilamuna <[email protected]>wrote:

> Shall we add this to the documentation also. Looks like it's a generally
> useful thing.
>
>     -Chintana
>
>
> On Sun, Sep 1, 2013 at 5:38 AM, Nirmal Fernando <[email protected]> wrote:
>
>> Hi Mike,
>>
>> You need following dependencies.
>>
>> <dependency>
>>         <groupId>org.wso2.andes.wso2</groupId>
>>         <artifactId>andes-client</artifactId>
>>         <version>0.13.wso2v3</version>
>>     </dependency>
>> <dependency>
>>         <groupId>org.apache.geronimo.specs.wso2</groupId>
>>         <artifactId>geronimo-jms_1.1_spec</artifactId>
>>         <version>1.1.0.wso2v1</version>
>>     </dependency>
>>
>>
>> On Sun, Sep 1, 2013 at 5:14 AM, Mike Stoddart <[email protected]> wrote:
>>
>>> I'm playing around with the message broker, trying to learn the product.
>>> I'm using the code on this page to create JMS clients:
>>>
>>>
>>> http://docs.wso2.org/display/MB210/Sending+and+Receiving+Messages+Using+Queues
>>>
>>> I'm getting the following exception at runtime:
>>>
>>>> getTCPConnectionURL(userName,password) = amqp://admin:admin@carbon
>>>> /carbon?brokerlist='tcp://localhost:5672'
>>>>
>>>> Exception in thread "main" javax.naming.NoInitialContextException:
>>>> Cannot instantiate class:
>>>> org.wso2.andes.jndi.PropertiesFileInitialContextFactory [Root exception is
>>>> java.lang.ClassNotFoundException:
>>>> org.wso2.andes.jndi.PropertiesFileInitialContextFactory]
>>>>
>>>> at javax.naming.spi.NamingManager.getInitialContext(
>>>> NamingManager.java:657)
>>>>
>>>> at javax.naming.InitialContext.getDefaultInitCtx(
>>>> InitialContext.java:288)
>>>>
>>>> at javax.naming.InitialContext.init(InitialContext.java:223)
>>>>
>>>> at javax.naming.InitialContext.<init>(InitialContext.java:197)
>>>>
>>>> at QueueSender.sendMessages(QueueSender.java:56)
>>>>
>>>> at QueueSender.main(QueueSender.java:45)
>>>>
>>>> Caused by: java.lang.ClassNotFoundException:
>>>> org.wso2.andes.jndi.PropertiesFileInitialContextFactory
>>>>
>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>>
>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>
>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>
>>>> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>
>>>> at java.lang.Class.forName0(Native Method)
>>>>
>>>> at java.lang.Class.forName(Class.java:249)
>>>>
>>>> at com.sun.naming.internal.VersionHelper12.loadClass(
>>>> VersionHelper12.java:46)
>>>>
>>>> at javax.naming.spi.NamingManager.getInitialContext(
>>>> NamingManager.java:654)
>>>>
>>>> ... 5 more
>>>>
>>>
>>>
>>> What Maven dependencies do I need to run this client? I'm not that
>>> familiar with Maven but I have this repository configured:
>>>
>>>  <repository>
>>>
>>>  <id>wso2-maven2-repository</id>
>>>
>>>  <name>WSO2 Maven2 Repository</name>
>>>
>>>  <url>http://dist.wso2.org/maven2</url>
>>>
>>>  <snapshots>
>>>
>>>   <enabled>false</enabled>
>>>
>>>  </snapshots>
>>>
>>>  <releases>
>>>
>>>   <enabled>true</enabled>
>>>
>>>   <updatePolicy>never</updatePolicy>
>>>
>>>   <checksumPolicy>fail</checksumPolicy>
>>>
>>>  </releases>
>>>
>>> </repository>
>>>
>>>
>>> Thanks
>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Architecture mailing list
>>> [email protected]
>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>>
>>>
>>
>>
>> --
>>
>> Thanks & regards,
>> Nirmal
>>
>> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
>> Mobile: +94715779733
>> Blog: http://nirmalfdo.blogspot.com/
>>
>>
>> _______________________________________________
>> Architecture mailing list
>> [email protected]
>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>>
>>
>
>
> --
> Chintana Wilamuna
> Architect - Solution Architecture
> WSO2, Inc.; http://wso2.com
> lean.enterprise.middleware
>
> phone: +94 72 145 4545
> blog: http://engwar.com/
> photos: http://flickr.com/photos/chintana
> linkedin: http://www.linkedin.com/in/engwar
> twitter: twitter.com/std_err
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 
============================
Srinath Perera, Ph.D.
   http://people.apache.org/~hemapani/
   http://srinathsview.blogspot.com/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to