Search code examples
javacoldfusioncoldfusion-9

Where can I find the Java class files for Event Gateways listed in ColdFusion Administrator?


In CF Administrator, Event Gateways > Gateway Types there is a long class name listed under the "Java Class" heading. Where is the class file for this located?

Long Class Name: examples.ActiveMQ.JMSGateway

Under Configured Coldfusion GatewayTypes

Name: ActiveMQ

Description: Handles Apache ActiveMQ JMS messages

Java Class: examples.ActiveMQ.JMSGateway

Where is the above class with name examples.ActiveMQ.JMSGateway located?


Solution

  • I'm not sure why everyone's answering in comments instead of answers.

    The JMSGateway is in [cfusion root]/WEB-INF/cfusion/gateway/lib/examples.jar, as people have indicated. For me, the specific dir is C:\apps\adobe\JRun\4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\gateway\lib\examples.jar, which is different than the default location, as I stick my Adobe stuff in C:\apps\adobe\, rather than installing in the root of my drive.

    A .jar file is just a zip, so you can open it and see the files within, however the files are binaries, not source code so "officially" will be of little use to you.

    Unofficially, there are Java decompilers out there which one can use to decompile stuff: DJ Java Decompiler JD Project

    However: read your ColdFusion EULA, and understand the legalities of such activity. I am not a lawyer and am not giving advice when I make these observations, but my understanding that decompiling CF class files violates the EULA. If you're in the States this is legally enforceable; I don't think it is in the EU or elsewhere (whether Adobe might like it to be or not). And it's unlikely any action will be taken if you decompile the thing simply for your own reference and don't publicise the source code or make too much of a thing of your findings. But... like I said: this does not constitute actual legal advice, nor should you take it as encouragement to violate your EULA. I am simply saying "it's possible to decompile a class file".