<route id="file-to-jms-route">
...
<to uri="jms:queue:incomingOrders?transacted=true" />
</route>
<route id="jms-cbr-route">
<from uri="jms:queue:incomingOrders?transacted=true" />
...
</route>
<route id="file-to-jms-route">
...
<to uri="jms:queue:incomingOrders?transacted=true" />
</route>
<route id="jms-cbr-route">
<from uri="jms:queue:incomingOrders?transacted=true" />
...
</route>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<reference interface="javax.jms.ConnectionFactory" />
</property>
<property name="transactionManager" ref="transactionManager"/>
</bean>
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
<property name="connectionFactory">
<reference interface="javax.jms.ConnectionFactory" />
</property>
<property name="transactionManager" ref="transactionManager"/>
</bean>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
<reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" />
<reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" />
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
karaf@root()> service:list org.springframework.transaction.PlatformTransactionManager
[org.springframework.transaction.PlatformTransactionManager]
------------------------------------------------------------
service.bundleid = 21
service.id = 527
service.scope = singleton
Provided by :
Red Hat Fuse :: Fuse Modules :: Transaction (21)
Used by:
Red Hat Fuse :: Quickstarts :: camel-jms (256)
karaf@root()> service:list org.springframework.transaction.PlatformTransactionManager
[org.springframework.transaction.PlatformTransactionManager]
------------------------------------------------------------
service.bundleid = 21
service.id = 527
service.scope = singleton
Provided by :
Red Hat Fuse :: Fuse Modules :: Transaction (21)
Used by:
Red Hat Fuse :: Quickstarts :: camel-jms (256)
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
karaf@root()> headers 21
Red Hat Fuse :: Fuse Modules :: Transaction (21)
------------------------------------------------
...
Bundle-Name = Red Hat Fuse :: Fuse Modules :: Transaction
Bundle-SymbolicName = fuse-pax-transx-tm-narayana
Bundle-Vendor = Red Hat
...
karaf@root()> bundle:services -p 21
Red Hat Fuse :: Fuse Modules :: Transaction (21) provides:
----------------------------------------------------------
objectClass = [org.osgi.service.cm.ManagedService]
service.bundleid = 21
service.id = 519
service.pid = org.ops4j.pax.transx.tm.narayana
service.scope = singleton
----
objectClass = [javax.transaction.TransactionManager]
provider = narayana
service.bundleid = 21
service.id = 520
service.scope = singleton
----
objectClass = [javax.transaction.TransactionSynchronizationRegistry]
provider = narayana
service.bundleid = 21
service.id = 523
service.scope = singleton
----
objectClass = [javax.transaction.UserTransaction]
provider = narayana
service.bundleid = 21
service.id = 524
service.scope = singleton
----
objectClass = [org.jboss.narayana.osgi.jta.ObjStoreBrowserService]
provider = narayana
service.bundleid = 21
service.id = 525
service.scope = singleton
----
objectClass = [org.ops4j.pax.transx.tm.TransactionManager]
provider = narayana
service.bundleid = 21
service.id = 526
service.scope = singleton
----
objectClass = [org.springframework.transaction.PlatformTransactionManager]
service.bundleid = 21
service.id = 527
service.scope = singleton
karaf@root()> headers 21
Red Hat Fuse :: Fuse Modules :: Transaction (21)
------------------------------------------------
...
Bundle-Name = Red Hat Fuse :: Fuse Modules :: Transaction
Bundle-SymbolicName = fuse-pax-transx-tm-narayana
Bundle-Vendor = Red Hat
...
karaf@root()> bundle:services -p 21
Red Hat Fuse :: Fuse Modules :: Transaction (21) provides:
----------------------------------------------------------
objectClass = [org.osgi.service.cm.ManagedService]
service.bundleid = 21
service.id = 519
service.pid = org.ops4j.pax.transx.tm.narayana
service.scope = singleton
----
objectClass = [javax.transaction.TransactionManager]
provider = narayana
service.bundleid = 21
service.id = 520
service.scope = singleton
----
objectClass = [javax.transaction.TransactionSynchronizationRegistry]
provider = narayana
service.bundleid = 21
service.id = 523
service.scope = singleton
----
objectClass = [javax.transaction.UserTransaction]
provider = narayana
service.bundleid = 21
service.id = 524
service.scope = singleton
----
objectClass = [org.jboss.narayana.osgi.jta.ObjStoreBrowserService]
provider = narayana
service.bundleid = 21
service.id = 525
service.scope = singleton
----
objectClass = [org.ops4j.pax.transx.tm.TransactionManager]
provider = narayana
service.bundleid = 21
service.id = 526
service.scope = singleton
----
objectClass = [org.springframework.transaction.PlatformTransactionManager]
service.bundleid = 21
service.id = 527
service.scope = singleton
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
필요한 모든 컨텍스트에서 사용할 수 있습니다. 예를 들어 camel-jms
를 사용하려면 org.apache.camel.component.jms.JmsConfiguration. CryostatManager
필드를 초기화해야 합니다. 이 예제에서는 다음을 사용합니다.
<reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" />
<reference id="transactionManager" interface="org.springframework.transaction.PlatformTransactionManager" />
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
<reference id="transactionManager" interface="javax.transaction.TransactionManager" />
<reference id="transactionManager" interface="javax.transaction.TransactionManager" />
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow