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>
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"]
Thanks changing now.
Posted by: Elyse at July 8, 2004 10:13 AMAbove 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">
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
RSS feed




