My Account   Contact Us    
  
» HomeProductsSupportDeveloper CommunityCompany
Another way to GetMetaData in ColdFusion MX

ColdFusion MX GetMetaData function requires that you have an instance of the CFC, there is a way to get the meta data with just the name of a CFC.

<cfset proxy = CreateObject("java", "coldfusion.runtime.TemplateProxy")>
<cfset md = proxy.getMetaData("name.of.some.cfc", getPageContext())>
<cfdump var="#md#">

Note: Shortly after I found this, Sean Corfeild notified me that, he had posted this in his blog, and he heard about it from Matt Liotta. Matt heard about this technique from "an anonymous macromedia employee".