[transfer-dev] Re: Anyone doing / soon to be doing Flex work with Transfer?

2008-11-28 Thread Tom McNeer
Mark,

Me, too. I have one client for whom I have done a public-facing application
using Transfer, and now we're getting ready to build lots of internal
management applications. Those apps will be primarily (or all) in Flex, and
I'm certainly planning on using Transfer.

I also have another project in the planning stages, to manage drug research
studies. It'll be Flex, too, and I was planning on using a
Transfer/ColdSpring back end.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Date value difficulty when passing to Flex

2009-04-29 Thread Tom McNeer
I'm having difficulty in getting Flex to recognize date values that are
coming out of a Transfer object.

The object being sent to Flex is a typed struct, and it is recognized as the
correct object.

If I create the typed struct directly from a cfquery, the date values are
correctly typed. Charles shows, for instance, Date Reference Nov 24, 2008
3:59:54 PM. And that value is correctly converted into a date in Flex.

But if I create the struct by calling getters on a Transfer object, the
values are typed as strings, and fail to convert in Flex.

For example, the same date above is shown in Charles as String Reference
2008-11-24 15:59:54.047.

I've worked around it by creating date/time strings, then using
parseDateTime before returning them. But this seems a bit clunky, and I'm
wondering if there's a better solution.

Has anyone else noticed this behavior?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Transfer BER functionality - Code Generation Toolkit

2009-05-08 Thread Tom McNeer
So ...

 except they either need to be dynamic objects, or implement an Interface
 (there needs to be a property to store some data in). Oh and they need to be
 defined as [Managed], as I hacked [Managed] in the same way dbHibernate
 does. (Big credit to Andy Powell and Mike Labriola for being huge helps on
 this).


Okay. So I need to read up on dynamic objects and what the [Managed]
metadata implies. I can do that. But if there's anything specific that you
can point me to that will be most helpful, great.


 From there there is a TransferRemoteObject.as with which you need to make
 remoting calls with, so we can track incoming TO.


Okay. I knew there was an ActionScript piece that had to be there. Do the
VOs need to extend the TransferRemoteObject, as a decorator does the
server-side TO? And -- where would that TransferRemoteObject.as be? I can't
find it in either the Transfer or Conduit packages.

And I assume that the transferFlex.swc needs to be loaded as a lib into the
Flex app, right?


 You can configure the lazy loading with a 'lazy' attribute on the
 cfproperty tag, and that occurs automatically on the Flex side, although
 if something isn't loaded it will return NULL. You can check if something is
 lazy loaded, by checking the __lazyLoaded dynamic Object that will be a
 property on the Object.


I understand that -- sorta. I'll have to look at the object to get it.


 There are also custom LazyLoaded events that fire when a value is loaded,
 and PropertyChangeEvents are fired, so you can use binding a lot with these
 VO's.


I'm guessing I can learn about this from looking at the
TransferRemoteObject.as, right?

Last question, is there any simple POC that you've created, beyond the unit
tests, that you'd be willing to share at this point, in lieu of
documentation?


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Transfer BER functionality - Code Generation Toolkit

2009-05-08 Thread Tom McNeer
Mark,

Thanks for all the help. I'll start poking around into everything, eagerly
awaiting the day you have your workaround for CFCProxy.

Sorry I won't be at CFobj :-(



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Trying not to think in terms of tables

2009-11-02 Thread Tom McNeer
You're headed in the right direction, looking to use the composed
relationships. But ...

On Mon, Nov 2, 2009 at 2:19 PM, jqdur...@gmail.com wrote:

 My first exercise in saving an Address, did so without regard of the
 CompanyID. Essentially, the handler took the AddressID, located the correct
 Transfer Object, cloned it, populated, validated and saved the Address
 without any knowledge of a Company. This seemed to be working fine.


... if you are working with a database record that currently exists and has
the Company relationship attached, you don't need to deal with the Company
at all. The Address object knows what its parent Company is, and if you
don't need to change it, then you don't have to mess with it at all.

For a new record, you'd need to use the CompanyID to retrieve the Company
object, then do Address.setParentCompany(myCompany), or something like that,
before saving the Address record.

But if the Address already has a Company, most times you can just ignore it.
(Unless of course, you actually need the Company for another reason.)

But why did you need to clone the object?


Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Re: Trying not to think in terms of tables

2009-11-02 Thread Tom McNeer
On Mon, Nov 2, 2009 at 3:10 PM, Jason Durham jqdur...@gmail.com wrote:

  My
 validation mechanism occurs once the Transfer Object has been populated.  I
 don't want the (potentially) invalid form data to dirty the cache until it
 has been validated.


Perfectly reasonable. I just didn't follow your logic before.

Ah nuts I have a m2m between Company and Address (with a Join table).
 Thus, Address isn't directly aware of Company.  My Address gets inserted but
 the join table doesn't get updated.  What's the recommended way of handling
 this?  Should my Decorator override the save() method in order to update the
 Join table... or will Transfer maintain the Join table if access the Address
 through the Company?


Depends on your configuration, but probably, yes, if the many-to-many is set
on the Company. I think if you go through the docs on Managing
Relationships, you'll see how to set this up.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

--~--~-~--~~~---~--~~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~--~~~~--~~--~--~---



[transfer-dev] Transfer EmptyQueryException

2010-01-29 Thread Tom McNeer
I'm well aware of Mark's requests for configuration information when
reporting problems. And if folks decide it will help, I'll include it. But
it doesn't seem that it would be particularly useful just yet.

Here's what's happening: I have an application that has been running on CF8
Standard/Win 2003 server on a production server, and on my dev server, it is
now running on CF9/Win Server 2008 (all 32-bit).

I'm setting up a new server now, which is a 64-bit Win Server 2008 machine
with CF9.

The application is accessed through a Flex front end. All flex config files
are identical on the dev CF9 and the new production machine.

In my initial testing, most everything works fine. But certain methods fail
with an EmptyQueryException -- *only* when called from the Flex app. I have
not been able to find any commonality among them. In one case, the failure
comes on the call to an array of one-to-many objects from the parent; in
another, it fails when manually looping over a set of ids, getting the
matching Transfer object, and putting the objects into an array. In a third
case, it fails when retrieving a Transfer decorator in order to update
values.

I can see that the input parameters are being sent correctly to the server.
And in one case, there are no parameters. The method is simply a call which
kicks off a hard-coded Transfer.list operation. So it can't be the input
that is failing.

And as I say, these failures only occur when done through Flex. I have built
a test page which calls these same methods through their remote proxy, just
as the Flex app does. The call goes to the proxy, to a service, to a gateway
and back. Everything comes back perfectly.

It boils down to this: certain methods fail when called from the Flex app,
but work when called from a standard .cfm page.

Although the exception info doesn't provide a stack trace, I'm guessing that
this may be a cache-related failure. Maybe? Cache is set to instance, by
the way?

Has anyone ever seen anything like this?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Transfer EmptyQueryException

2010-01-31 Thread Tom McNeer
Hi,

On Fri, Jan 29, 2010 at 7:49 PM, Dorioo dor...@gmail.com wrote:

 Are you using the SVN version?


I was not. But I was using the slightly earlier version (e, I think, I
opposed to g) which I had been using on my development server. So I was
using a version that had been working with CF9 with no issues.

And of course, this shouldn't have been an issue, since my test with a .cfm
page used the same versions of Transfer and Coldspring as the Flex calls
(not just the same versions, but the same running instances). Yet the .cfm
calls worked, and the Flex calls failed

I updated to the SVN version on the new server anyway, and the
EmptyQueryExceptions seemed to go away. But I'm now seeing unexpected and
inconsistent Java errors, mostly NullPointerExcpetions.

I'm going to continue testing; but if anyone has any insight, I'd love to
hear it. The only real difference I can find right now between this new
server and my dev environment is that the server is 64-bit

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


[transfer-dev] NullPointer exceptions

2010-02-09 Thread Tom McNeer
Hi,

I recently moved an application to a new dedicated 64-bit server running
Win2008 and CF9 Standard. Since doing so, I have begun to see
NullPointerExceptions in which the stack trace points to Transfer objects,
specifically the ActionAfterTransferDiscardEvent method.

Here's a portion of a sample stack trace:

Error,jrpp-13,02/09/10,11:33:17,,
java.lang.NullPointerException
at
coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:744)
at
coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:638)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:296)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:283)
at coldfusion.runtime.CfJspPage._get(CfJspPage.java:271)
at
cfdocuments2edocument40F80DBE6087F1DF6736330761605BCD9A2etransfer1116507617$funcACTIONAFTERDISCARDTRANSFEREVENT.runFunction(C:\webapps\mlhealthcare\model\data\documents.docum...@f80dbe6087f1df6736330761605bcd9a.transfer
:32)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at
coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405)
at
coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)
at
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:490)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:336)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2360)
at
cfSoftReferenceAdapter2ecfc1501711166$funcACTIONAFTERDISCARDTRANSFEREVENT.runFunction(C:\webapps\frameworks\transfer\com\events\adapter\SoftReferenceAdapter.cfc:148)

I am running the most recent SVN version of Transfer, and the generated
Transfer data objects were deleted and regenerated on the server.

Has anyone experienced anything like this? The same application has been
running in other environments (dev, etc.) without any similar errors.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


[transfer-dev] Re: NullPointer exceptions

2010-02-09 Thread Tom McNeer
As an update:

As I move through more and more logs, I'm finding similar
NullPointerExceptions that have nothing to do with Transfer.

So whatever's going on is evidently not Transfer-specific, so we can
probably let this thread go.

On the other hand, if anyone is reading this who has seen a sudden flurry of
such exceptions when accessing a Coldspring/Transfer app via Flash Remoting
from a Flex app, I'd appreciate any insight.

I'm even seeing some entries in the JRun log that appear to reference
BlazeDS, though I'm not using it (unless there's some BlazeDS stuff buried
in the CF9 Flash Remoting functionality).

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: NullPointer exceptions

2010-02-09 Thread Tom McNeer
Hi Mark,


On Tue, Feb 9, 2010 at 2:20 PM, Mark Mandel mark.man...@gmail.com wrote:

 Sounds like a bug in CF9.



While there seem to be some known issues in CF9 regarding serialization of
aliased CFCs, I've found (since the last post) that I was wrong in pointing
to CF9. Going back to the previous production environment, which was CF8, I
also see a trail of NullPointerExceptions during January. They were in the
JRun logs but not the CF logs.

They seem to relate to three particular method calls, but so far, I haven't
found anything in those methods that could cause the error.

In fact, I can replicate one of the errors now (although it occurs
inconsistently). But here's the odd part: when I view the transaction in
Charles, I see: two requests go out with the same method call.

I don't believe the event is being fired twice in Flex, but I haven't yet
been able to check that thoroughly. It could be that I'm inadvertently
dispatching twice.

However - the two requests go out relatively simultaneously (same second,
anyway). When there is an error, one returns a NullPointerException; the
other returns the correct array of objects expected. I have checked the
params being sent in each request; they are identical.

Additionally, while duplicating the call with the same params again seems to
result again in two requests, I received the correct response from both
requests.

So I'm guessing (and I really mean _guessing_) that the failure is somewhere
in the serialization process. I do know that I recently had a different
issue where the wrong data appeared to be returned to Flex, and I was able
to prove (to myself, anyway) that the same call with the same params to the
same proxy CFC produced different results when called from a plain .cfm page
than when called from the Flex app.

I'm checking into the bug tracker, but if anyone has seen anything similar,
I'd sure like to know. Since I can't replicate the error consistently, it'll
be hard to submit a test case for a bug.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] APSB10-11 hotfix breaks transfer?

2010-05-14 Thread Tom McNeer
 I had to remove the patch to get my app to work again. Anyone else
 experiencing this?


Yep. Just did the same thing on my dev server: Server 2008, but 32-bit.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer?

2010-05-14 Thread Tom McNeer
Hi Mark,

On Fri, May 14, 2010 at 2:52 PM, mark mazelin markmaze...@gmail.com wrote:

 Are you also running ColdSpring?


Yep. Hard to run Transfer properly without it. Or do much else. I've gotten
very dependent on ColdSpring.


 I'm trying to track down the
 responsible framework.


Good luck.


 My app is running Transfer 1.1.g, ColdSpring
 1.2 RC1 and ColdSpring Bean Utils 1.2.


My versions of Transfer and ColdSpring are the same as yours. I'm using
Brian Kotek's Bean Utilities, but I'm not sure that's the same as your
ColdSpring Bean Utils.


 I have 3 statements for
 coldspring.beans.DefaultXmlBeanFactory that call
 loadBeansFromXmlFile(). It's dying on one that instantiates my
 transfer gateways and service objects. I'm wondering if this is more
 of a ColdSpring/BeanUtils issue than a Transfer issue.


I'm not sure there's any way to tell, short of a long, painful dig through
many, many framework files.

When I ran into it, I had recently made changes to my Transfer config file
and figured I just made a mistake. After commenting out pieces of the file
till I had nothing left, I realized it wasn't me. I then wondered about the
only _other_ thing that had changed - the hotfix - and tried removing it,
since it's caused other, different problems for folks.

I have not had time to go any further with this. It concerns me, because
it's a pretty important hotfix. But unfortunately, the error messages in
ColdSpring leave a lot to be desired, and sometimes point in the wrong
direction.

I'm going to add mention of this issue in a couple of places: there's a
thread on CF-Talk regarding other problems with the hotfix, and there's a
string of comments about the issues on Ben Forta's blog. Perhaps letting
Adobe know about the problem through Ben will at least get them to look at
it, even though they certainly can't support CS or Transfer.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer? CONFIRMED!

2010-05-14 Thread Tom McNeer
Mark,

Thanks for making the contact. I answered your other note. But you're
obviously ahead of me.

Thanks for the explanation. Let's hope Mark (the other one) will be able to
help out with a Transfer patch. He's awfully busy with ColdSpring these
days.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: APSB10-11 hotfix breaks transfer? CONFIRMED!

2010-05-15 Thread Tom McNeer
Mark,

Thanks for the quick service. I'll try the SVN version.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] get array of objects from transfer object

2010-09-09 Thread Tom McNeer
Hi Marc,

From my experience, I would say the best way to deal with your situation is
more or less as follows:

Create a getUserApplications method of some sort, with the user as an
argument.

Within that method, determine whether or not the user is an admin.

cfif admin

Call another method, getAdminApplications. Within the method, create an
empty array (say, arAdminApps). Run your list() method, then loop over
the resulting query, using the id for each application to create a Transfer
object (transfer.get(), and adding the object to the array, which you return
to your calling method.

cfelse

Do what you're now doing: retrieve the array from the many-to-many
association.

The need to create an array of Transfer objects is pretty common, and it
seems that doing list(), then building the array, is the simplest way.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] listByProperty with Relationships

2010-09-27 Thread Tom McNeer
David,

I'm not sure of your use case. But it seems to me you may be going about
things a little wrong.

You may or may not know this (and I apologize if you already do), but the
list functions return query lists, rather than objects. So I'm not sure
why you'd do:

 var getVariation =

 APPLICATION.transfer.listByProperty('catalog.variation','varid',ARGUMENTS.varid);'


You're looking for a single variation, so I'd think you'd simply want to
do:

APPLICATION.transfer.get(catalog.variation, ARGUMENTS.varid)

That would return the object you're looking for. Since Transfer is an ORM,
most of the time, you want objects, not queries, right?

In your second example:

  var getValues =

 APPLICATION.transfer.listByProperty('catalog.variationVal','varid',ARGUMENTS.varid);


... you're trying to retrieve a list of child variationVals for a parent
variation. That would suggest that you might want to use a one-to-many on
variation, rather than a many-to-one on its child. Many-to-ones only allow
access from one side of the relationship. Thus, from your code, you can do
variationVal.getVariation(), but you have no way to access the children from
the parent.

If you set the relationship as a one-to-many on the parent, you have access
from both sides.

So you'll be able to get the parent variation from a variationVal, by doing
variationVal.getParentVariation(), and get the children by doing
variation.getVariationValArray() (if you set the one-to-many collection as
an array).

Take another look at the Transfer docs on composition and relationships, and
I think you'll get the idea.

None of what I've suggested will give you a query list, which is what you
seem to be looking for. You will always get Transfer objects, singly or in
arrays. If you truly need a query of variationVals, then you'll either need
to _not_ set up a relationship in Transfer, or simply use straight SQL.

Hope this was helpful.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: listByProperty with Relationships

2010-09-28 Thread Tom McNeer
Hi David,

On Tue, Sep 28, 2010 at 10:30 AM, David Long david.lon...@gmail.com wrote:

 Thanks Tom.  That is extremely helpful.


Good. Glad to have helped.


  I am still very new to ORM so
 I didn't realize that it is better to have an object than a query.


Well, the point of using an ORM is to be able to use objects. Otherwise,
it's not much of a help.

But it's not always better to use objects. Sometimes a simple query list
is all you need. And the query list avoids some expensive object creation.

As you work with Transfer - or CF9's built-in Hibernate functions - you'll
get more of a feeling of what to use when.

Good luck.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: listByProperty with Relationships

2010-09-28 Thread Tom McNeer
David,

I'm not certain exactly what you mean about the number of function calls,
but depending on how your application scales, you may need to be careful of
the number of objects you're instantiating.

James is correct, in that Transfer has a solid cache mechanism. (Though you
need to remember that Transfer _is_ caching objects. If you update database
records outside Transfer, you can get the cache out of sync with the
database.)

And object instantiation has improved markedly over the past versions of CF.
(Don't know which one you're using.) But instantiating an object is _still_
more expensive than just doing a query, if for no other reason than Transfer
has to run the query, then populate the object. You have to get the record
out of the database at least once for its object to be in the Transfer
cache.

So there are certainly instances when queries are a better option. For
example, your basic States select box in a Name/Address form. Sure, you
could retrieve all the IDs from your States table and loop over them,
creating an array of State objects, then use that to populate your select
box.

But why? You don't really need the objects. Better to do:
transfer.list(util.state,stateCode), and get a regular old CF query
object.

As I said before, there are times when you need objects, and times when a
simple CF query is better. You'll work it out as you spend more time with
Transfer.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: listByProperty with Relationships

2010-09-28 Thread Tom McNeer
Hi James,

I agree with all you say, and have said. And I find Brian's BeanInjector
pretty handy, too. I've gotten very used to the idea of rich domain objects.

I was just trying to point out to David, since he is relatively new to
Transfer, that the excitement over being able to work with objects may need
to be tempered by memory and performance considerations.

I certainly wasn't suggesting that your comments about the use of objects
were in error, or against any best practices. David originally didn't seem
to understand that the reason to use Transfer was to work with objects.
Then, after my first reply, he was excited about using objects. I was simply
suggesting that's there's a lot to learn once you start doing o-o-ish
development and start using any ORM.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Transfer returns an array of objects...

2010-10-12 Thread Tom McNeer
James,

On Tue, Oct 12, 2010 at 11:27 AM, Clarkee21 clarke...@gmail.com wrote:

 ... was talking to someone about a month ago about Transfer and how it
 always seems to return a query result rather than build an array of
 Transfer objects.


Jason is correct. If you have a parent object and have a relationship
defined, you can retrieve an array of child objects (if you've defined the
collection as an array).

But I think you have something different in mind. I suspect you're not
dealing with a relationship, but rather simply want an array of objects at
any given time.

There's no core method in Transfer to do something like:
transfer.getArray(user.user).

Rather, what you want to do is retrieve the query list --
transfer.list(users.user) -- or listByPropery or listByPropertyMap. This
will, as you state, return a query. Then you loop over the list of IDs,
creating an object matching each ID, and add them to an array.

Something like:

cfset var users = transfer.list(users.user) /
cfset var userArray = arrayNew(1) /
cfset var user =  /
cfif users,recordCount GT 0
cfloop query=users
cfset user = transfer.get(users.user,users.UserID) /  (This
creates the object)
cfset arrayAppend(userArray,user) /
   /cfloop
/cfif
cfreturn userArray /

Make sense?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en


Re: [transfer-dev] Re: XML error on upgrade

2014-07-23 Thread Tom McNeer
Hi Brian and Mark,

Thanks for your help, as always.

While I haven't done any testing yet, the two blog entries Mark cites are
very clear, and Brian's explanation here is even more complete. That's what
I needed: just some documentation on what should go into the XML.

Brian, I hope you can place Mark's old wiki content in GitHub. Like you,
even though I no longer use Transfer for new development, I've built some
rather large applications using it. And every now and then, there needs to
be an update to those applications -- and I find myself saying I think I
remember the syntax for that, but 

Thanks again to both of you.

On Tue, Jul 22, 2014 at 8:08 PM, Mark Mandel mark.man...@gmail.com wrote:

 Tom,

 I just fired off to Brian the static copy of the wiki that was up on
 transfer-docs. I can't remember what in that in regards to the ehCache
 version.

 The XSD is the definitive reference, but you may also want to check out
 these blog posts from 2009:
 http://www.ghidinelli.com/2009/11/18/using-transfer-ehcache
 http://www.compoundtheory.com/sneak-peak-transfers-new-plug-able-cache/

 Mark

 ​

 --
 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 Try out the new Transfer ORM Custom Google Search:
 http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


On Wed, Jul 23, 2014 at 1:07 PM, Brian G brian-goo...@vfive.com wrote:


 On Tuesday, July 22, 2014 9:47:11 AM UTC-7, Tom McNeer wrote:

 Is there any documentation for the use of the new caching configuration?
 And are there other known areas where an old config might cause errors?



 Tom,

 My apologies, this was so long ago for me I forgot it all changed.  Here's
 what you need to change your objectCache stanza in transfer.xml to:

 objectCache
   defaultcache provider=transfer.com.cache.provider.EHCacheProvider
   setting name=config value=transfer/ehcache.xml /
   /defaultcache
 /objectCache


 For an example, this is mine with some examples of objects for which I've
 specified no caching::

 objectCache
   defaultcache provider=transfer.com.cache.provider.EHCacheProvider
 setting value=/path/to/ehcache.xml name=config/
   /defaultcache
   cache provider=transfer.com.cache.provider.NoCacheProvider
 class=package.object/
   cache provider=transfer.com.cache.provider.NoCacheProvider
 class=package2.object2/
   cache provider=transfer.com.cache.provider.NoCacheProvider
 class=package2.object3/
 /objectCache

 To get started, create an ehcache.xml file with one default cache:

 ?xml version=1.0 encoding=UTF-8?
 ehcache xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
 xsi:noNamespaceSchemaLocation=http://ehcache.org/ehcache.xsd;
 defaultCache
 maxElementsInMemory=1000
 eternal=false
 timeToIdleSeconds=120
 timeToLiveSeconds=900
 overflowToDisk=false
 /
 /ehcache


 Converting from transfer.xml, timeToIdleSeconds replaces
 accessedminutestimeout and timeToLiveSeconds replaces maxminutespersisted.
 If you specify eternal=true, then the timeouts are ignored and the only
 thing that will cause an object to be discarded from the cache is running
 into the maxElementsInMemory limit.

 If you want to get fancier, these are just a standard ehcache
 configuration file so you can use the docs here for more tunable options:
 http://ehcache.org/documentation/user-guide/configuration

 For an example, here is my ehcache.xml:

 ?xml version=1.0 encoding=UTF-8?
 ehcache xsi:noNamespaceSchemaLocation=http://ehcache.org/ehcache.xsd;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 defaultCache overflowToDisk=false eternal=true
 maxElementsInMemory=350/
 !-- eternal for big objects --
 cache overflowToDisk=false eternal=true maxElementsInMemory=750
 name=event.event/
 cache overflowToDisk=false eternal=true maxElementsInMemory=300
 name=track.track/
 !-- fine tune away from the defaults --
 cache overflowToDisk=false eternal=true maxElementsInMemory=500
 name=member.member/
 cache overflowToDisk=false eternal=true maxElementsInMemory=1000
 name=member.clubmember/

 !-- short lived, eternal = false with ttl --
 cache

Re: [transfer-dev] Re: Latest version of Transfer Issue

2014-07-23 Thread Tom McNeer
Brian,

I haven't had a chance to do a diff yet, but I thought I'd let you know:
after correcting my XML, I started an application on ACF 9, and got the
same exact error as James.


On Wed, Jul 23, 2014 at 1:58 PM, Brian G brian-goo...@vfive.com wrote:


 James,

 If you dump the argument in the working version of Transfer, what do you
 see?

 If you can dump the stack trace, we can look at the call before that and
 see if it's not passing in a named argument?   But generally I find that
 these errors are unrelated to what they claim to be.  I would put some
 logging/try/catch up a level in the stack trace to see if what you're
 getting is what you're expecting.

 E.g., in this case, Transfer has its own version of Javaloader IIRC - is
 it conflicting with another one on your system so JavaLoader itself is
 blowing up on init which manifests itself as this error?  These errors
 inside frameworks I often find to be nearly useless so cflog/dump/try/catch
 becomes necessary.

 I unfortunately don't have a Railo setup to help with.

 One other quick suggestion:

 do a diff on the github transfer compare to the version you've been
 using.  In reality there aren't THAT many changes.  I made a couple of the
 ones I saw for Railo compatibility in the list but maybe I missed something
 that I need from your version?


 Brian





 On Wednesday, July 23, 2014 10:17:49 AM UTC-7, James Allen wrote:

 Hi guys,



 I’m trying a site which is built using Transfer on the latest version of
 Railo so grabbed Brian’s Github latest as I read that’s compatible.



 The problem is, I’m getting the following error when I try to start the
 site – it occurs in the init of TransferFactory.



 Railo reports the error as:



 Syntax Error, Invalid Construct:



 CF8:



 Missing argument name.:When using named parameters to a function, every
 parameter must have a name.pThe CFML compiler was processing:ulliAn
 expression beginning with super.init, on line 35, column 17.This message is
 usually caused by a problem in the expressions structure.liA script
 statement beginning with super.init on line 35, column 17.liA cfscript
 tag beginning on line 34, column 10.liA cfscript tag beginning on line
 34, column 10./ul



 So it’s not a Railo issue.



 I’ve tracked this down I think and it’s occurring in 
 com/factory/AbstractBaseFactory.cfc
 in the getSingleton() method.



 If I use cftry to trap the error it occurs when getSingleton() is sent a
 class name of:



 transfer.com.util.JavaLoader



 Any ideas on what might be causing this on the latest version of
 Transfer? The site works fine on an older version.



 Many thanks,

 James.



 ---

 *James  Allen*

 *E:* ja...@jamesallen.name

 *Blog:* http://jamesallen.name

 *Twitter:* @CFJamesAllen

 *Twitter: *@JamesAllenVoice (Voiceover)

 *Twitter: *@80sRewindShow (My weekly 80s radio show)



 Tune in to the best in community radio – Codebass Radio:
 http://codebassradio.net



  --
 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 Try out the new Transfer ORM Custom Google Search:
 http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [transfer-dev] Re: Latest version of Transfer Issue

2014-07-25 Thread Tom McNeer
Brian,

Cool. Thanks very much. I'll check it out later today.

Thanks again for all the hard work.


On Fri, Jul 25, 2014 at 12:15 AM, Brian G brian-goo...@vfive.com wrote:


 Ok, I have it running.  Somehow Sean's import from SVN did not include
 JavaLoader:

 https://github.com/seancoyne/transfer/tree/master/com/util/javaloader

 The directory is empty and was missing the lib.  I took the opportunity to
 upgrade to JavaLoader 1.1 from 2012 and now have Transfer 1.3 from Github
 working in my environment (ACF10).   I believe you guys can pull down from
 Github now and run as-is.



 Brian

 --
 --
 Before posting questions to the group please read:

 http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

 Try out the new Transfer ORM Custom Google Search:
 http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To post to this group, send email to transfer-dev@googlegroups.com
 To unsubscribe from this group, send email to
 transfer-dev+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/transfer-dev?hl=en

 ---
 You received this message because you are subscribed to the Google Groups
 transfer-dev group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to transfer-dev+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

-- 
-- 
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

Try out the new Transfer ORM Custom Google Search:
http://www.google.com/cse/home?cx=002375903941309441958:2s7wbd5ocb8

You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to 
transfer-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
transfer-dev group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to transfer-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.