On 6/19/06, Peter Farland <[EMAIL PROTECTED]> wrote:
Make sure you mention that the <Transaction> tag for a <Context> is for Tomcat 5.5 only (I believe JOTM config is more complicated in earlier versions of Tomcat). This new tag makes it very simple to configure transactions with JOTM:

<Context reloadable="true">
    <Transaction factory="org.objectweb.jotm.UserTransactionFactory" jotm.timeout="60" />
</Context>


This is funny. You are talking about this as though I already knew about the transaction tag. I didnt before, but I do now! This is much much nicer than using the Resource and ResourceParams tags. I will add this as an option.


Since I had just one Tomcat samples web application using FDS I copied the JOTM jar files to the /WEB-INF/lib directory, although I believe they can also be installed into /common/lib.
 
I don't have an example of the overall format of the context.xml file for Tomcat in general... but, yes, it's the web application directory's META-INF folder.

It looks like the context.xml file may just have the context xml in it with no other header stuff or anything. I am going to check today.

Hank
 

/samples/META-INF/context.xml
/samples/WEB-INF/lib/...
 
 
 
 

From: [email protected] [mailto:[email protected]] On Behalf Of hank williams
Sent: Monday, June 19, 2006 11:22 AM
To: [email protected]
Subject: Re: [flexcoders] FDS Samples

Oh thanks. I was going to ask about that. I hate the idea of modifying the server.xml file for an app specific thing.

But I am not familiar with the context.xml file. What is the overall format of that file. Can I see a sample somewhere. Also, I presume that this *is* the META-INF in the application directory and not some global META-INF file, right?

Once I more fully understand I will re-post the steps with the new info.

Thanks
Hank

On 6/19/06, Peter Farland < [EMAIL PROTECTED]> wrote:
My apologies, this was sitting in my outbox for over a day and only went out now. I see that you've already got this to work.
 
I agree that the docs could be better on this subject. Also, I've found for Tomcat 5.5 that modifying the <Context> in the /META-INF/context.xml file of the web application more convenient.


From: [email protected] [mailto: [email protected]] On Behalf Of Peter Farland
Sent: Monday, June 19, 2006 9:46 AM
To: [email protected]
Subject: RE: [flexcoders] FDS Samples

Are you running on Tomcat by any chance? If so, what version? For Tomcat you need to setup JOTM first as Data Services makes use of JTA (for transactions).


From: [email protected] [mailto: [email protected]] On Behalf Of hank williams
Sent: Sunday, June 18, 2006 3:20 PM
To: [email protected]
Subject: [flexcoders] FDS Samples

I just downloaded flex data services, installed, and tried to run the the sample apps.

The flash UI part all works fine, but it cant connect to data. The error that comes in on the java console looks like this:


[Flex] [DEBUG] Before invoke service: data-service
  incomingMessage: Flex Message (flex.data.messages.DataMessage)
    operation = fill
    id = null
    clientId = 5C535BF9-496C-1163-025E-E8915E76244B
    correlationId =
    destination = contact
    messageId = 43802177-0968-4AB3-9AB5-E8915E86D54E
    timestamp = 1150658109140
    timeToLive = 0
    body =
    [
     
    ]
    hdr(DSEndpoint) = my-rtmp

Throwable in RtmpReader thread: java.lang.NoClassDefFoundError: javax/transaction/SystemException
java.lang.NoClassDefFoundError: javax/transaction/SystemException
    at flex.data.DataService.serviceMessage (DataService.java:284)
    at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:565)
    at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298)
    at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage (AbstractRTMPServer.java:653)
    at flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:650)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:643)
    at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
    at java.lang.Thread.run(Unknown Source)


Obviously I have done something wrong from a setup perspective, but I am not sure what.

Any input would be greatly appreciated.

Hank



__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to