Expand my Community achievements bar.

ContactManager sample on Tomcat

Avatar

Level 1
I'm tring to deploy the FDS ContactManager sample using
Tomcat 5.5. I installed and configured jotm 2.0 as described here:




http://www.silver-island.com/arts/flex/FDS2.0_on_Tomcat/contact_manager_2.html



but when browsing contactmgr.mxml I still get this message
"Unable to access UserTransaction in DataService". Any idea what is
wrong here?
1 Reply

Avatar

Level 1
I'm using fds beta 3 and all work fine i hope that this help
you follow this step.

devis



How to Install TOMCAT JTOM ACTIVEMQ



Site

1.
http://tomcat.apache.org/
Tomcat 5.5

2.
http://jotm.objectweb.org/

3.
http://www.activemq.org/







1)Into $CATALINA_HOME\conf\Catalina\localhost\
{applicationame}.xml

For Flex Samples.war I have written sample.xml, here my
context code:



<Context path="/samples" docBase="c:\\samples" debug="0"
reloadable="true" crossContext="true">



<!-- Description of the resource "UserTransaction -->

<Resource name="UserTransaction" auth="Container"
type="javax.transaction.UserTransaction" />

<ResourceParams name="UserTransaction">

<parameter>

<name>factory</name>


<value>org.objectweb.jotm.UserTransactionFactory</value>


</parameter>

<parameter>

<name>jotm.timeout</name>

<value>60</value>

</parameter>

</ResourceParams>

<Resource

name="jms/ConnectionFactory"

auth="Container"

type="org.activemq.ActiveMQConnectionFactory"

description="JMS Connection Factory"

factory="org.activemq.jndi.JNDIReferenceFactory"

brokerURL="ssl://localhost:61616"

brokerName="LocalActiveMQBroker"

useEmbeddedBroker="false"/>



<Resource name="jms/topic/MyTopic"

auth="Container"

type="org.activemq.message.ActiveMQTopic"

factory="org.activemq.jndi.JNDIReferenceFactory"

physicalName="MY.FLEX.SAMPLES "/>









</Context>

Important I have extract Flex Samples.war into c:\samples of
my pc.!!!! otherwise changed your docBase.











2)I have extract this file

From JOTM_HOME/lib/ directory, copy the following jar files
to $CATALINA_HOME/common/lib/ :

1. jotm.jar

2. jotm_jrmp_stubs.jar

3. jonas_timer.jar (optional)

4. ow_carol.jar

5. jta-spec1_0_1.jar

6. jts1_0.jar

7. objectweb-datasource.jar

8. xapool.jar

9. howl.jar

10. commons-cli-1.0.jar

11. connector-1_5.jar

12. mysql-connector-java-X.X.X-bin.jar (X = value of
downloaded connector JAR file)



Create a file named carol.properties in
$CATALINA_HOME/common/classes/ with the following properties:

carol.rmi.activated = lmi

carol.jndi.start = false

carol.ns.start = false



Note Don’t copy samples.war into tomcat webapps!





I hope this help you, sorry for my english and if this
tutorial is very poor.

Write me for any question.

Devis