Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Listener Location
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John Bliss  
View profile  
 More options Jun 11 2008, 2:41 pm
From: John Bliss <bliss.j...@gmail.com>
Date: Wed, 11 Jun 2008 11:41:41 -0700 (PDT)
Local: Wed, Jun 11 2008 2:41 pm
Subject: Listener Location
Newbie, best-practice question: where should listener's live?  In
reviewing sample apps and skeletons, two "schools of thought" appear:

/model/[Object]Listener.cfc
/listener/[Object]Listener.cfc

Reason(s) to choose one over the other...?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vipul Suri  
View profile  
 More options Jun 11 2008, 2:50 pm
From: "Vipul Suri" <vipul.s...@gmail.com>
Date: Thu, 12 Jun 2008 00:20:37 +0530
Local: Wed, Jun 11 2008 2:50 pm
Subject: Re: [Mach-II] Listener Location

second option - /listeners/[Object]Listener.cfc

On Thu, Jun 12, 2008 at 12:11 AM, John Bliss <bliss.j...@gmail.com> wrote:

> Newbie, best-practice question: where should listener's live?  In
> reviewing sample apps and skeletons, two "schools of thought" appear:

> /model/[Object]Listener.cfc
> /listener/[Object]Listener.cfc

> Reason(s) to choose one over the other...?

--
Best Wishes,
Vipul Suri

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jlcox  
View profile  
 More options Jun 11 2008, 4:09 pm
From: jlcox <jl...@goodyear.com>
Date: Wed, 11 Jun 2008 13:09:19 -0700 (PDT)
Local: Wed, Jun 11 2008 4:09 pm
Subject: Re: Listener Location
Heh, mine are actually /model/listeners/[Object]Listener.cfc

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prem Radhakrishnan  
View profile  
 More options Jun 11 2008, 4:11 pm
From: "Prem Radhakrishnan" <godsmustbcr...@gmail.com>
Date: Wed, 11 Jun 2008 16:11:54 -0400
Local: Wed, Jun 11 2008 4:11 pm
Subject: Re: [Mach-II] Re: Listener Location

its a matter of preference

Sometimes its

Model/ObjectName/
and then you put ur DAO, Gateway a, Service and Listener in there

otherwise
Model/Gateway/ for gateways
Model/Listener/ for listeners
Model/Service/ for services
Model/Bean/ for beans

I like using the first approach

On Wed, Jun 11, 2008 at 4:09 PM, jlcox <jl...@goodyear.com> wrote:

> Heh, mine are actually /model/listeners/[Object]Listener.cfc

--
A programmer is a device to turn coffee into code

http://www.premsweb.com/blogpro

http://www.39dn.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Jun 11 2008, 4:12 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Wed, 11 Jun 2008 15:12:54 -0500
Local: Wed, Jun 11 2008 4:12 pm
Subject: Re: [Mach-II] Re: Listener Location
My two cents...
http://greatbiztoolsllc-trac.cvsdude.com/mach-ii/wiki/FAQWhereShouldF...

jlcox said the following on 6/11/2008 3:09 PM:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Woodward  
View profile  
 More options Jun 11 2008, 4:15 pm
From: "Matt Woodward" <mpwoodw...@gmail.com>
Date: Wed, 11 Jun 2008 16:15:46 -0400
Local: Wed, Jun 11 2008 4:15 pm
Subject: Re: [Mach-II] Re: Listener Location
The only real reason I'd suggest putting your listeners in a listeners
directory that's NOT included in your business logic packages is
because listeners aren't part of your model. That way you keep the
controllers out of your model.

On Wed, Jun 11, 2008 at 4:11 PM, Prem Radhakrishnan

--
Matt Woodward
mpwoodw...@gmail.com
http://www.mattwoodward.com/blog

Please do not send me proprietary file formats such as Word,
PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Prem Radhakrishnan  
View profile  
 More options Jun 11 2008, 4:16 pm
From: "Prem Radhakrishnan" <godsmustbcr...@gmail.com>
Date: Wed, 11 Jun 2008 16:16:45 -0400
Local: Wed, Jun 11 2008 4:16 pm
Subject: Re: [Mach-II] Re: Listener Location

Actually makes sense. Ill have to start changing my practices :)

--
A programmer is a device to turn coffee into code

http://www.premsweb.com/blogpro

http://www.39dn.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jlcox  
View profile  
 More options Jun 11 2008, 4:17 pm
From: jlcox <jl...@goodyear.com>
Date: Wed, 11 Jun 2008 13:17:12 -0700 (PDT)
Local: Wed, Jun 11 2008 4:17 pm
Subject: Re: Listener Location
It's also possibly a matter of application size. If you only have a
few objects (listeners, service, DAOs, gateways) then putting them all
together in a single directory is probably fine. In my large
application, I have 26 listeners, 26 services, 22 DAOs, and 23
gateways, so splitting them into separate directories makes managing
the files easier. I think it matters not to the actual framework where
you put them.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter J. Farrell  
View profile  
 More options Jun 11 2008, 4:18 pm
From: "Peter J. Farrell" <pe...@mach-ii.com>
Date: Wed, 11 Jun 2008 15:18:28 -0500
Local: Wed, Jun 11 2008 4:18 pm
Subject: Re: [Mach-II] Re: Listener Location
Prem Radhakrishnan said the following on 6/11/2008 3:11 PM:

> otherwise
> Model/Gateway/ for gateways
> Model/Listener/ for listeners
> Model/Service/ for services
> Model/Bean/ for beans

> I like using the first approach

I agree with Prem, however instead of saying I like the first approach
versus the one above -- I'd say I disapprove of the approach above.  
This this example.

You have User.cfc (bean), UserService.cfc, UserDao.cfc and
UserGateway.cfc.  These are part of the "user" package thus they should
be grouped together.  Otherwise, you are breaking objects into
directories based on object type (pattern/functionality of the object)
instead of the object's purpose (having to do with "user" stuff).  This
is counter-intuitive as a developer would have to scan through a
"beans", "gateways", "services" and "daos" directories to see if the
User (bean) has a corresponding service, dao, gateway, etc..  Much
easier (and it makes more sense in the long run) to group by object
group instead of object type (pattern/function).

.Peter


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jlcox  
View profile  
 More options Jun 11 2008, 4:37 pm
From: jlcox <jl...@goodyear.com>
Date: Wed, 11 Jun 2008 13:37:54 -0700 (PDT)
Local: Wed, Jun 11 2008 4:37 pm
Subject: Re: Listener Location
The only issue I would have with Peter's approach is that I have beans
that I use to model a particular form that don't fall cleanly into a
pariticular object group (or map one-to-one with the other objects).
For instance, as noted above, I have 22 DAOs, but 86 beans, because
some of the beans might manage many-to-many relationships or model a
form that falls across functional purposes. If I tried to put these
into folders grouped by object type, then I'd have a bunch of leftover
beans (bastard beans?) (hybrid beans?) and would have to decide where
to put them. Hunting one of them down would be more difficult that
simply looking into a /beans folder.

One could argue, probably correctly, that I have too many beans. A
virtual hill of beans. Even if I refactored everything, I suspect that
I'd still have more beans than object types, or I'd have to create
more object types to match up with the beans.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Woodward  
View profile  
 More options Jun 11 2008, 4:39 pm
From: "Matt Woodward" <mpwoodw...@gmail.com>
Date: Wed, 11 Jun 2008 16:39:12 -0400
Local: Wed, Jun 11 2008 4:39 pm
Subject: Re: [Mach-II] Re: Listener Location
On Wed, Jun 11, 2008 at 4:18 PM, Peter J. Farrell <pe...@mach-ii.com> wrote:

> Prem Radhakrishnan said the following on 6/11/2008 3:11 PM:
>> otherwise
>> Model/Gateway/ for gateways
>> Model/Listener/ for listeners
>> Model/Service/ for services
>> Model/Bean/ for beans

Just to second what Peter's saying, I did MachBlog 1.0 like this, but
mostly because it was intended to be an application for people to
learn from, so I was thinking that grouping objects like this would
help. In most real-world applications you won't want to do this, and
since the whole notion of a package is really coming from Java anyway,
probably best to follow that convention (the one Peter outlined) for
both consistency of organization as well as ease of use.
--
Matt Woodward
mpwoodw...@gmail.com
http://www.mattwoodward.com/blog

Please do not send me proprietary file formats such as Word,
PowerPoint, etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vipul Suri  
View profile  
 More options Jun 11 2008, 5:13 pm
From: "Vipul Suri" <vipul.s...@gmail.com>
Date: Thu, 12 Jun 2008 02:43:22 +0530
Local: Wed, Jun 11 2008 5:13 pm
Subject: Re: [Mach-II] Re: Listener Location

well I would prefer doing this /listeners/[Object]Listener.cfc

Reason - "model" are the components of the applications which are consumed
by machii framework (listeners) so I would like to keep them out of my
concrete business logic

.it will be nice to have more inputs on my thought because I have been doing
this since long.

On Thu, Jun 12, 2008 at 1:41 AM, Prem Radhakrishnan <

--
Best Wishes,
Vipul Suri

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Is this possible with Mach-II" by David R
David R  
View profile  
 More options Jun 11 2008, 10:12 pm
From: David R <dav_...@hotmail.com>
Date: Thu, 12 Jun 2008 07:42:59 +0530
Local: Wed, Jun 11 2008 10:12 pm
Subject: Is this possible with Mach-II

Hi,

(I just wonder if this is possible with Mach-II,)

Normally while running an Mach-II based web application we will be having our urls like,

http://www.mysite.com/index.cfm?event=login

Is there a way (Mach Specific... Not URL Rewriting) I can hide index.cfm occurence so that no body can determine my application is built on Coldfusion?...

Thanks in advance!..

Regards,
Dav R
_________________________________________________________________
No Harvard, No Oxford. We are here. Find out !!
http://ss1.richmedia.in/recurl.asp?pid=500


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Crow  
View profile  
 More options Jun 11 2008, 10:59 pm
From: "Steve Crow" <rephle...@gmail.com>
Date: Wed, 11 Jun 2008 22:59:58 -0400
Local: Wed, Jun 11 2008 10:59 pm
Subject: Re: [Mach-II] Is this possible with Mach-II
Could you use custom MIME types?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David R  
View profile  
 More options Jun 11 2008, 11:12 pm
From: David R <dav_...@hotmail.com>
Date: Thu, 12 Jun 2008 08:42:52 +0530
Local: Wed, Jun 11 2008 11:12 pm
Subject: RE: [Mach-II] Re: Is this possible with Mach-II

Hi Steve,

Thanks for the quick response.. Can you please explain about how to acheive it through custom MIME types?...

Regards,
Dav R> Date: Wed, 11 Jun 2008 22:59:58 -0400> From: rephle...@gmail.com> To: mach-ii-for-coldfusion@googlegroups.com> Subject: [Mach-II] Re: Is this possible with Mach-II> > > Could you use custom MIME types?> > > On Wed, Jun 11, 2008 at 10:12 PM, David R <dav_...@hotmail.com> wrote:> >> >> > Hi,> >> > (I just wonder if this is possible with Mach-II,)> >> > Normally while running an Mach-II based web application we will be having> > our urls like,> >> > http://www.mysite.com/index.cfm?event=login> >> > Is there a way (Mach Specific... Not URL Rewriting) I can hide index.cfm> > occurence so that no body can determine my application is built on> > Coldfusion?...> >> > Thanks in advance!..> >> > Regards,> > Dav R> >> > ________________________________> > CoolHotmail : Your crazy personality deserves a unique email identity like> > yourn...@iamcrazy.in. Choose from this and hundreds other unique email ids> > now Try it!> > >> >> > _________________________________________________________________
Watch hottest Bollywood videos, clips, movie tailors, star interviews, songs and more on MSN videos.
http://video.msn.com/?mkt=en-in


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Wilson  
View profile  
 More options Jun 12 2008, 9:39 am
From: "Dan Wilson" <sipac...@gmail.com>
Date: Thu, 12 Jun 2008 09:39:06 -0400
Local: Thurs, Jun 12 2008 9:39 am
Subject: Re: [Mach-II] Re: Is this possible with Mach-II

David,

You can configure ColdFusion to parse htm files as ColdFusion files. That
means you can name all of your files with an htm extention and ColdFusion
will parse and interpret thoses files as if they were .cfm files.

That means your link would be:
http://www.davescoolcompany.com/index.htm?event=DoSomething

or, if you wanted to get fancy, you could invent a new file extention called
DML for Dave's Markup Language and set ColdFusion and your Webserver up to
handle those files. The world is your oyster, my friend.

Here is a link to instructions on how to set ColdFusion up to parse .htm
files

http://www.revolutionwebdesign.com/blog/index.cfm?mode=entry&entry=EF...

DW

--
"Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew."

Guillaume Apollinaire quotes


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Priest  
View profile  
 More options Jun 12 2008, 9:47 am
From: "Jim Priest" <pri...@thecrumb.com>
Date: Thu, 12 Jun 2008 09:47:58 -0400
Local: Thurs, Jun 12 2008 9:47 am
Subject: Re: [Mach-II] Re: Is this possible with Mach-II

On Thu, Jun 12, 2008 at 9:39 AM, Dan Wilson <sipac...@gmail.com> wrote:
> You can configure ColdFusion to parse htm files as ColdFusion files. That
> means you can name all of your files with an htm extention and ColdFusion
> will parse and interpret thoses files as if they were .cfm files.
>> > > Is there a way (Mach Specific... Not URL Rewriting) I can hide
>> > > index.cfm  occurence so that no body can determine my application is built on
>> > > Coldfusion?...

As Dan said you can change your extension.  I'm assuming you are doing
this for security?

FYI:  http://www.port80software.com/support/articles/maskyourwebserver

Jim


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kurt Wiersma  
View profile  
 More options Jun 12 2008, 1:13 pm
From: "Kurt Wiersma" <kwier...@gmail.com>
Date: Thu, 12 Jun 2008 12:13:27 -0500
Local: Thurs, Jun 12 2008 1:13 pm
Subject: Re: [Mach-II] Re: Is this possible with Mach-II

Here is the simplest thing I could think of. Assuming index.cfm is the
default template in Apache/IIS then just have all your URL look like the one
below.

http://test.com/?event=login

You never have to mention index.cfm if it is the default template.

--Kurt


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google