You might need to create a instance or javax.rmi.PortableRemoteObject ??
WG -----Original Message----- From: Michael Hoffman [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 15:12 To: CF-Talk Subject: CF Talking to a EJB All the code that I have found for a CF page talking to a EJB it does not include the PortableRemoteObject.narrow call. Any ideas on this? Narrowing is used on remote interfaces and not local interfaces? Narrowing checks to ensure that an object of a remote or abstract interface type can be cast to a desired type. Does anyone have any narrowing code that works within a CF page? <cfobject action ="create" type ="java" class ="javax.naming.InitialContext" name ="ictx"> <cfscript> ictx.addToEnvironment("java.naming.provider.url", "w2k069.sysadmin.suny.edu:2908"); </cfscript> <cfset ejbHome =ictx.lookup("TitleSessionEJB")> <cfset bean =ejbHome.create()> <cfset myString =javaCast("String",bean.getTitle())> Thanks! Mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

