Results 1 to 3 of 3

Thread: Setting up JOTM within Websphere

  1. #1
    Join Date
    Apr 2005
    Posts
    4

    Default Setting up JOTM within Websphere

    As an effort to make my app testable outside Websphere, I'm moving away from Websphere JTA and attempting to use JOTM for transaction management. My question is this. The Spring download(with dependencies) only comes with jotm.jar. Is this the only jar I need?

    My datasources are configured via Websphere and I'm hooking to them using JNDI.

    Code:
    	<bean id="myDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    		<property name="jndiName">
    			<value>jdbc/myDS</value>
    		</property>
    	</bean>
    
    	<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
    		<property name="userTransaction"><ref local="jotm"/></property>
    	</bean>
    		
    	<bean id="jotm" class="org.springframework.transaction.jta.JotmFactoryBean" />

    Thanks in advance.

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Why do you need JTA in your tests at all? Do they involve distributed transactions? Otherwise you could simply use a different PlatformTransactionManager outside WebSphere.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

  3. #3
    Join Date
    Apr 2005
    Posts
    4

    Default

    I guess by moving to JOTM, I'm not tying any of our code to websphere specificially. My question is more around what I must do to configure JOTM in a Websphere 5.1 environment.

    For testing sake, I am not using distributed transactions so my original statement isn't correct.

    Thanks for your response.

Similar Threads

  1. Replies: 3
    Last Post: Jul 26th, 2010, 09:54 PM
  2. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  3. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  4. Spring/Hibernate Delete/Update Problem
    By Noname in forum Data
    Replies: 4
    Last Post: Jun 15th, 2005, 11:07 PM
  5. Transaction Management
    By caverns in forum Data
    Replies: 3
    Last Post: Mar 8th, 2005, 06:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •