Sameer,
In theory you should have no problem returning java variables as return objects..
(as all CF objects are Java objects)
However you may have to fiddle with the return type to get a value works.
I forget if there is an 'object' reference. Failing that, you may have to just live
with the 'Any'.
Hope that helps.
Mark
------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]
Quoting Sameer Kekade <[EMAIL PROTECTED]>:
> Hey all,
>
> I am creating a wrapper cfc for some java classes we have,
> I'll be accessing few methods that returns a java iterator object/
> linkedhashmaps,
> is there any way I can return a java object in cfc as a return variable.
>
>
> <cffunction name="init" access="public" output="false"
> returntype="struct">
> <cfargument name="user_id" type="string" required="true">
> <cfargument name="flag" type="string" required="no"
> default="true">
>
> <cfscript>
> instance = structNew();
> instance.jCatalogue =
> createObject("java","au.com.quatro.external.Catalogue")
> instance.jCatalogue.init(user_id, flag)
> </cfscript>
>
> <cfreturn this>
> </cffunction>
>
> Warm Regards,
> Sameer S. Kekade.
> QUATRO FOUR RETAIL
> "The right connections for your business"
> Tel. direct +61 2 9370 2775
> Fax direct +61 2 9370 1200
> Mobile 0411 566 650
> [EMAIL PROTECTED]
> www.quatro.com.au
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
>
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004
>
>
>
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004