July 8, 2004

Exploring Java & CF

Ever want to take an indepth look at the functionality of a java object within cf.

This code may help you out

<cfset keystoreType="JKS">

<cfset lockname = CreateUUID()>

<cflock name="#lockname#" type="exclusive" timeout="10">
<cfscript>
keyStore = CreateObject("java", "java.security.KeyStore");
ks = keyStore.getInstance(keystoreType);
</cfscript>
<cfdump var="#ks#">
</cflock>

Posted by Elyse at July 8, 2004 7:18 AM | TrackBack
Comments

This code doesnt work.

Chokes on ks = keyStore.getInstance(keystoreType);

also [cflock name="lockname" type="exclusive" timeout="10"]
should be
[cflock name="#lockname#" type="exclusive" timeout="10"]

Posted by: Steven Ringo at July 8, 2004 8:38 AM

Thanks changing now.

Posted by: Elyse at July 8, 2004 10:13 AM

Above code is still not working, I guess you want to add the folowing code at the beginning of the script: <cfparam name="keyStoreType" default="JKS">

Posted by: Jorrit at July 9, 2004 4:41 AM

Boy, I'd done coding first thing without testing.

Thanks fto everyone for their help.

ELyse

Posted by: Elyse at July 9, 2004 6:00 AM
Post a comment









Remember personal info?