3 Replies Latest reply on Aug 23, 2006 9:55 AM by ProphecyVI

    Why can't CFCs extend Java classes?

      CFCs are thin skins on Java classes, but the "extends" attribute of cfcomponent does not allow anything but a CFC path.

      I'm not really so much interested in a "why", I'd be plenty happy with just a "workaround". I'm trying to migrate a contractor-developed Java class into a CFC, but I can't get past this "extends" limitation. I need to extend org.apache.commons.pool.BasePoolableObjectFactory to create a factory for a GenericObjectPool, but all CF says is " no coldfusion component org.apache.commons.pool.BasePoolableObjectFactory found".

      This is on MX7. Any ideas for hacking around this limitation?