keerti wrote: > I am trying to configure jms with resin. In my web.xml,i added <jms:jms-topic > name="my-topic" uri="memory:"/> > <jms:jms-connection-factory uri="resin:"/> and it keeps giving me an > error. > I had the namespaces as below > xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> I tried adding > xmlns:jms="http://caucho.com/ns/resin"> still the jms topic and connection > factory give me an error. > The resin-web.xml is where you normally put custom configuration like the JMS queues. Resin is strict about its validation, and since you're using "http://java.sun.com/xml/ns/javaee" for your web.xml, Resin is only allowing the tags specified by JavaEE in that section.
In your resin-web.xml, you'll use <web-app xmlns="http://caucho.com/ns/resin">, which allows all the javaee tags plus the Resin-specific tags like the <resin:jms-topic>. (Although, if you're using Resin 4.0, I'd recommend using the CanDI configuration instead.) The CanDI configuration looks like: <resin:JmsConnectionFactory/> <resin:MemoryTopic> <ee:Named>my-topic</ee:Named> </resin:MemoryTopic> Where "resin" is xmlns:resin="urn:java:com.caucho.resin". -- Scott > Please reply if anyone encountered a similar situation and has a fix. > _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
