GigaSpaces XAP 7.0 API

org.openspaces.jms
Class GigaSpaceXAConnectionFactory

java.lang.Object
  extended by org.openspaces.jms.GigaSpaceXAConnectionFactory
All Implemented Interfaces:
FactoryBean, InitializingBean

public class GigaSpaceXAConnectionFactory
extends Object
implements FactoryBean, InitializingBean

A Spring factory bean for creating GigaSpaces JMS implementation of JMS XAConnectionFactory based on a Space instance.

Note, the GigaSpace is used to acquire the IJSpace instance allowing to get the "clustered" flag behavior. Transactional support should use plain JMS transactional handling and GigaSpace support for automatic transaction joining is not used in this case.

Author:
kimchy

Constructor Summary
GigaSpaceXAConnectionFactory()
           
 
Method Summary
 void afterPropertiesSet()
           
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setGigaSpace(GigaSpace gigaSpace)
          The GigaSpace instance to acquire the IJSpace from.
 void setMessageConverter(com.j_spaces.jms.utils.IMessageConverter messageConverter)
          An optional message converter allowing (for sending purposes) not to send JMS messages to the Space, but to send a converted instance and write a "business" entry to the Space.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GigaSpaceXAConnectionFactory

public GigaSpaceXAConnectionFactory()
Method Detail

setGigaSpace

public void setGigaSpace(GigaSpace gigaSpace)
The GigaSpace instance to acquire the IJSpace from.

Note, the GigaSpace is used to acquire the IJSpace instance allowing to get the "clustered" flag behavior. Transactional support should use plain JMS transactional handling and GigaSpace support for automatic transaction joining is not used in this case.


setMessageConverter

public void setMessageConverter(com.j_spaces.jms.utils.IMessageConverter messageConverter)
An optional message converter allowing (for sending purposes) not to send JMS messages to the Space, but to send a converted instance and write a "business" entry to the Space.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.