Re: CF and Java

2009-08-10 Thread Larry Lyons
>Larry, >Excellent Resource. Thanx for sharing. > Glad to help. Also if you're going to CFUnited, Adam Haskell is giving a 2 part presentation on CF and java. he already has his code available online: http://cfrant.blogspot.com/2009/08/cfunited-introduction-to-java.html regards, larry ~~

Re: CF and Java

2009-08-10 Thread Gerald Guido
Larry, Excellent Resource. Thanx for sharing. G! On Mon, Aug 10, 2009 at 12:20 PM, Larry Lyons wrote: > > Alan, > > A couple of things, first off Elliot Spren had a great presentation last > year on the java internals of CF. Its available online: > http://tinyurl.com/cf-internals-presentation

Re: CF and Java

2009-08-10 Thread Larry Lyons
>Hey All, >Has anyone found an easy way to "wander" through all of the classes / >packages available to CF through Java? > >I keep finding cool things other people have done using Java classes or >packages that CF has already built in, but aren't in any way documented. > >I'd just like to wander t

Re: CF and Java

2009-08-07 Thread Dave l
you could always hit it with cfdirectory and look at dateLastModified > > However, it may still be possible that there are other > > classes and packages > > out the in CF that CAN pull assets from SWF files... Seems > > unlikely, but who > > knows, there are sooo many of them. > > > I have n

Re: CF and Java

2009-08-07 Thread Leigh
> However, it may still be possible that there are other > classes and packages > out the in CF that CAN pull assets from SWF files... Seems > unlikely, but who > knows, there are sooo many of them. I have never used it. But if you are curious, open the jar and look inside ;-) That class is fro

Re: CF and Java

2009-08-07 Thread Alan Rother
As far as I have been able to determine all it does is to return the meta info for the file. http://coldfused.blogspot.com/2008/02/reading-flash-swf-metadata-from.html Is Compressed : #header.compressed# Frame Count : #he

RE: CF and Java

2009-08-07 Thread Mark Kruger
www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -Original Message- From: Alan Rother [mailto:alan.rot...@gmail.com] Sent: Friday, August 07, 2009 11:04 AM To: cf-talk Subject: Re: CF and Java Cool, thanks everyone. Just in case someone else has something, let me give a better example of what

Re: CF and Java

2009-08-07 Thread Alan Rother
Cool, thanks everyone. Just in case someone else has something, let me give a better example of what I'm talking about. I had a problem the other day where I had a client who has a website with years and years of assets stacking up on their server. They had hundreds of SWF files in one folder an

Re: CF and Java

2009-08-07 Thread Eric Cobb
I'm not sure if all of these are available to CF. http://java.sun.com/javase/6/docs/api/overview-summary.html Thanks, Eric Cobb http://www.cfgears.com Alan Rother wrote: > Hey All, > Has anyone found an easy way to "wander" through all of the classes / > packages available to CF through Java

Re: CF and Java

2009-08-07 Thread Dominic Watson
I don't know that there is any tidy browser type thing - but Alagad built a little tool for reflection: http://www.alagad.com/reflection/ ( http://www.alagad.com/go/products-and-projects ) Perhaps combine that with this: http://fusion.dominicwatson.co.uk/2007/09/coldfusion-objects-are-java-obje

Re: CF and Java

2009-08-06 Thread Gerald Guido
*** *Here is a place to start: http://java.sun.com/javase/reference/api.jsp Not exactly what you are looking for but... Ike Dealey did a lot of CF related Java spelunking in this article http://coldfusion.sys-con.com/node/45569 I found it to be a good read and

Re: CF and Java

2007-04-19 Thread Andrew Whone
Line 91 is: XMLSignatureInput result = transforms.performTransforms(input); 10 from the end. A+ ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/prod

RE: CF and Java

2007-04-18 Thread Phillip Duba
What is line 91 in your java file? That's where the error in your class is being thrown, Phil -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 11:46 AM To: CF-Talk Subject: RE: CF and Java Looks like something is getting a null pointer, me

RE: CF and Java

2007-04-18 Thread Russ
91 in your file, so either your passing some null variable, or you forgot to set something, etc.. Russ > -Original Message- > From: Andrew Whone [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 18, 2007 11:01 AM > To: CF-Talk > Subject: Re: CF and Java > > I got a bi

Re: CF and Java

2007-04-18 Thread Andrew Whone
I got a bit further on using Mark Mandels Javaloader. The coldfusion code is: loadPaths = ArrayNew(1); loadPaths[1] = expandPath("irmarkjars"); loadPaths[2] = expandPath("irmarkjars\jce-jdk13-114.jar"); loadPaths[3] = expandPath("irmarkjars\style-apachexml.jar"); loadPaths[4] = expandPath("irmarkj

RE: CF and Java

2007-04-17 Thread Russ
; From: Russ [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 17, 2007 12:21 PM > To: CF-Talk > Subject: RE: CF and Java > > Does the code work when you run it from java? In the main method, do > something like: > > IRMark irmark=new IRMark("somefile.xml"); > Syst

RE: CF and Java

2007-04-17 Thread Russ
2007 10:23 AM > To: CF-Talk > Subject: Re: CF and Java > > I got Russ's code working but if I do this: > public class IRMark { > protected String filename; > public IRMark (String filename) throws Exception > { > this.filename=filena

Re: CF and Java

2007-04-17 Thread Andrew Whone
I got Russ's code working but if I do this: public class IRMark { protected String filename; public IRMark (String filename) throws Exception { this.filename=filename; // Init the Apache XML security library Init.init(); } pub

Re: CF and Java

2007-04-17 Thread Andrew Whone
I am using 1.4.2 ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.

Re: CF and Java

2007-04-16 Thread Mark Mandel
g, it's poor coding > practices and will cause you more problems in the long run. Your code should > be properly structured. > > Russ > > > -Original Message- > > From: Andrew Whone [mailto:[EMAIL PROTECTED] > > Sent: Monday, April 16, 2007 11:50 AM

RE: CF and Java

2007-04-16 Thread Russ
uting, it's poor coding practices and will cause you more problems in the long run. Your code should be properly structured. Russ > -Original Message- > From: Andrew Whone [mailto:[EMAIL PROTECTED] > Sent: Monday, April 16, 2007 11:50 AM > To: CF-Talk > Subject: Re: CF a

Re: CF and Java

2007-04-16 Thread Andrew Whone
I tried that and it's still the same error message so presumably the array is problematic but should work see: http://weblogs.macromedia.com/cantrell/archives/2003/06/passing_coldfus.cfm I put the blank constructor in the code thus: public class IRMark { /** * Generate and print the IRm

RE: CF and Java

2007-04-16 Thread Phillip Duba
d the Java object an instance until the constructor is called. HTH, Phil -Original Message- From: Andrew Whone [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 9:58 AM To: CF-Talk Subject: Re: CF and Java >Andrew, > >My 1.2 referred to version 1.2 of the Apache XML Security

Re: CF and Java

2007-04-16 Thread Andrew Whone
>Andrew, > >My 1.2 referred to version 1.2 of the Apache XML Security Library: >http://xml.apache.org/security/dist/java-library/old/xml-security-bin-1_ >2_0.zip. I did have to upgrade to the 1.2.96 version of the xmlsec.jar >file: >http://xml.apache.org/security/dist/java-library/old/xmlsec-1.2.96

RE: CF and Java

2007-04-16 Thread Russ
va/CF development. Russ > -Original Message- > From: Andrew Whone [mailto:[EMAIL PROTECTED] > Sent: Monday, April 16, 2007 9:24 AM > To: CF-Talk > Subject: Re: CF and Java > > Thanks for all the help but still no joy. > I have been compiling the class file in the classe

RE: CF and Java

2007-04-16 Thread Phillip Duba
Andrew, My 1.2 referred to version 1.2 of the Apache XML Security Library: http://xml.apache.org/security/dist/java-library/old/xml-security-bin-1_ 2_0.zip. I did have to upgrade to the 1.2.96 version of the xmlsec.jar file: http://xml.apache.org/security/dist/java-library/old/xmlsec-1.2.96.jar. W

Re: CF and Java

2007-04-16 Thread Andrew Whone
Thanks for all the help but still no joy. I have been compiling the class file in the classes library and not moving it. All the jars are in the class path. I have been calling the method using: And jArray = aFileName.toArray(); I am using xmlsec 1.0 (I am not sure what the 1.2

Re: CF and Java

2007-04-16 Thread Andrew Whone
o:[EMAIL PROTECTED] >Sent: Friday, April 13, 2007 12:24 PM >To: CF-Talk >Subject: RE: CF and Java > >Your class doesn't appear to have an init method of its own. The fact >that >it's calling an init method in another class shouldn't matter, I think. > >CF

RE: CF and Java

2007-04-15 Thread Phillip Duba
, April 13, 2007 12:24 PM To: CF-Talk Subject: RE: CF and Java Your class doesn't appear to have an init method of its own. The fact that it's calling an init method in another class shouldn't matter, I think. CF comes with a specific version of log4j, which may be conflicting wit

Re: CF and Java

2007-04-13 Thread Mark Mandel
Andrew, Your code should be running the 'main' method that is defined in the Java code. There is no constructor, for this class, so you code will fail. You will need to create a String[], which is relatively easy using the java.lang.reflect.Array Java class, and pass it into the main() method (C

RE: CF and Java

2007-04-13 Thread Phillip Duba
Andrew, I ran into this same issue doing stuff with SAML. Make sure you haven't moved the class file after it has been compiled. In other words, once you compile the Java class, you can't move it around to the classes library or some other directory. I don't know why, but ever time I moved my clas

RE: CF and Java

2007-04-13 Thread Dave Watts
> I have some java code which I want to kick in from a coldfusion page > > e.g. > > It ought to be simple enough, pass the file name to the class > and get the base64 number back. > The Coldfusion documentation states: > "Note: The init method is not a method of the object, but a > Col

Re: CF and Java Interfaces

2005-06-09 Thread Chris Terrebonne
Actually that's exactly what I'm using. I had it lying around for CFEclipse, but it just never stuck (Homesite/CFStudio kept calling be back). But for Java, it's great. Not really a raving review considering I haven't tried any other Java IDE's. At this point it does everything I need it to

Re: CF and Java Interfaces

2005-06-09 Thread Barney Boisvert
While we're on the topic.. If you find yourself doing Java, the Eclipse IDE is a great platform for it. And there's the CFEclipse plugin that includes CF editors and various other things, so you can do your CF work in the same application. And it itegrates easily with myriad version control

Re: CF and Java Interfaces

2005-06-09 Thread Chris Terrebonne
Thanks Nathan and Barney for clearing this up for me. I guess this was as perfect excuse as any to finally learn Java. Man! I was surprised how simple it was. I know C++ and I heard that the transition to Java was easy, but I had no idea just how easy it was. I should have done this along

Re: CF and Java Interfaces

2005-06-08 Thread Nathan Strutz
Perhaps there's already a java object that impliments this interface? Look around to see if there's anything that impliments your target class. Otherwise, you could make one in java and createObject() it in CF. -nathan strutz Chris Terrebonne wrote: > I am trying to use CF to access a Java cla

Re: CF and Java Interfaces

2005-06-08 Thread Barney Boisvert
You can only use the interface on Java objects. So you'll need a concrete Java object that implements the interface. Just instantiate that concrete object and pass it into your method. The type system that CF uses is entirely divorced from the type system that Java uses. There are a couple plac

RE: CF and Java integration..

2003-11-19 Thread Hassan Arteaga Rodriguez
Thanks a lot !! -- M.Sc. Hassan Arteaga Rodríguez. Microsoft Certified System Engineer. Grupo de Desarrollo. DIGI COPEXTEL, S.A -Original Message- From: Craig Dudley [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 3:09 AM To: CF-Talk Subject: RE: CF and Java integration

RE: CF and Java integration..

2003-11-19 Thread Craig Dudley
Not specific to CFMX< but have a look at http://javaalmanac.com/egs/? Some very useful examples. -Original Message- From: Hassan Arteaga Rodriguez [mailto:[EMAIL PROTECTED] Sent: 18 November 2003 22:26 To: CF-Talk Subject: CF and Java integration.. Hi all: I'm looking fo