title: Tibco EMS with Tomcat configuration
body: <p>I searched for and answer before posting, but didn't find a solution. If I missed it please link me to it.</p>
  
  <p>Here is my problem. I'm trying to use jndi to connect my tibco server. </p>
  
  <p>Right now I have my resource tag setup inside my tomcat server.xml file:</p>
  
  <pre><code>&lt;Resource name="tibcoConnection" 
     auth="Container"
     type="com.tibco.tibjms.naming.TibjmsInitialContextFactory"
     factory="com.tibco.tibjms.naming.TibjmsObjectFactory"
     severUrl=&lt;tibcourl&gt;
     userName=xxxxxxx
     password=xxxxxxx /&gt;
  </code></pre>
  
  <p>For the factory I originally had com.tibco.tibjms.TibjmConnectionFactory but tomcat threw an error cast it to ObjectFactory. So I changed it.</p>
  
  <p>I have my ResourceLink tag in context.xml pointing to the tibcoConnectoin name and type com.tibco.tibjms.naming.TibjmsInitialContextFactory.</p>
  
  <p>My Spring bean is <code>&lt;jee:jndi-lookup id="tibco" jndi-name="tibcoConnection"/&gt;</code></p>
  
  <p>I'm using the connection for:</p>
  
  <pre><code>&lt;bean class="org.springframework.jms.connection.CachingConnectionFactory"&gt;
     &lt;property name="targetConnectionFactory" ref="tibco"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I my logs I'm getting a <code>javax.naming.NameNotFoundException: Name [tibco] is not bound in the Context. Unable to find [tibco]</code></p>
  
  <p>I'm lost since there isn't much documentation out there for tomcat and tibco that I could find. If anyone has had any luck with configuring tomcat with tibco and spring, please help. </p>