RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Jim Davis
I agree that for the most part the implementing developer of the CFC shouldn't need to worry about transactions - for the most part I wonder if they even need to know that there's a database. ;^) I'm new to OO and struggled with this as well. I ended up with (perhaps a poor) model that seems to

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Barney Boisvert
I agree completely, but that CFC (or CFCs) is business-layer, not persistance, because it encapsulates business logic. I was only discussing the interaction between business layer and persistance layer, not necessarily between your actual business objects, and the persistance layer (which would li

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Nathan Dintenfass
Well, some DBs will let you have nested transactions, AFAIK, so that might be an option (in other words, just put the transaction logic in both saveUser and saveUsers. Also, if saveUsers (or, saveUserBatch, in your lexicon) is just going to call the same few methods of your persister, I would say

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Jay Gibb
Thanks Nathan.. I don't think you're missing the boat at all. This is exactly like the problem I'm attempting to solve. To recap.. These functions do not contain any transaction logic at all... insertUser(id,fname,lname,email); associateUserWithDepartment(userID,deptID); associateUserAsDirectRe

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Nathan Dintenfass
Can I ask: why not just build a CFC layer that exposes a simple API that does the transaction internally, then have that layer make use of your underlying persistence mechanism? That is, why make an end-developer have to even think about transactions if they are a known quantity in advance? Instea

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Barney Boisvert
I'm not sure I have an answer to that one, as you're kind of mixing different styles. I think I'd still say that a transaction can only be controlled from the upper level, outside the function, so you'd need to add CFTRANSACTION tags around the first CFINVOKE, just like the second set. Here's ano

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Jay Gibb
Hey Barney, What about if you're not using OO modelling? This is for a procedural system. A pseudo implementation might be... - j. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barney Boisvert Sent: Tuesday, November

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Nat Papovich
Very abstract, rather academic: http://www.ambysoft.com/persistenceLayer.html If followed to a "T", it would produce an unusable persistence model in ColdFusion. NAT > There have been a couple discussions here about persistence > components, but I'm not quite sure I ever understood them or > how

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Barney Boisvert
Data integrity is definitely a business logic concern. The persistance layer only cares about type validity (int, decimal, string, etc), it should have no knowledge of what a given piece of data actually means, or whether it needs to be kept in sync with some other piece of data (which is an even

Re: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Ben Curtis
In my way of thinking, transactions are a pure business logic "thing", they have nothing to do with persistance (though that's where they're actually implemented). Although I'm not sure about this (is data integrity really part of business logic?), I like your thinking and the model code you sho

RE: [CFCDev] cftransactions in low level modules

2003-11-18 Thread Barney Boisvert
In my way of thinking, transactions are a pure business logic "thing", they have nothing to do with persistance (though that's where they're actually implemented). If you accept that as valid, then there is never a need to deal with transactions anywhere except in your business logic components, s

[CFCDev] cftransactions in low level modules

2003-11-18 Thread Jay Gibb
I could use an opinion from you gurus out there.. Given a situation where you want to use a cftransaction block in a low level module, there is a typical problem that comes up. In some cases, you may want to call this function on it's own, and in others you may want to have an "outer" transaction

Re: [CFCDev] BSF TagLib

2003-11-18 Thread Matt Liotta
See attached. /* * Created on Sep 27, 2003 * * @author mliotta */ package com.montarasoftware.cfx; import org.apache.bsf.BSFEngine; import org.apache.bsf.BSFManager; import com.allaire.cfx.CustomTag; import com.allaire.cfx.Request; import com.allaire.cfx.Response; /** * @author mliotta *

Re: [CFCDev] BlueDragon 6.1 - CFCs, Web Services, XML - Beta Available

2003-11-18 Thread Matt Liotta
Note that we don't support Mach II yet, so don't even try it. :-) So you don't want me to file a bug for that then? :) I used Mach II as a test for BlueDragon's CFC implementation since I figured it would provide interesting results. Interestingly, the process has had me find both Mach II and Bl

Re: [CFCDev] BlueDragon 6.1 - CFCs, Web Services, XML - Beta Available

2003-11-18 Thread Sean A Corfield
On Nov 18, 2003, at 6:51 AM, Vince Bonfanti wrote: There's a "Known-Issues.txt" document in the "docs" directory of the BD 6.1 installation that lists known issues with the current beta. OK, thanx. One area I know we're going to be different is we don't tri-state the OUTPUT attribute; our "YES" c

RE: [CFCDev] BlueDragon 6.1 - CFCs, Web Services, XML - Beta Available

2003-11-18 Thread Vince Bonfanti
Hi Sean, There's a "Known-Issues.txt" document in the "docs" directory of the BD 6.1 installation that lists known issues with the current beta. The intention is that BD 6.1 will be fully compatible with CFMX 6.1 before the final release; any exceptions and enhancements will be documented in the B