Michael, You're right, you'll need to import javax.rmi.PortableRemoteObject or perhaps cfobject one. This whole thing might be best written as a Servlet or JSP which you then include or forward to. Just a thought.
André -----Original Message----- From: Michael Hoffman [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 16:24 To: CF-Talk Subject: RE: CF Talking to a EJB How would I do this line? PortableRemoteObject.narrow(o, TitleSessionEJBHome.class); the .class is what I am not sure how to do. Plus the constructor for PortableRemoteObject is protected. ----Original Message Follows---- From: "webguy" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> Subject: RE: CF Talking to a EJB Date: Thu, 13 Mar 2003 15:44:39 -0000 Received: from houseoffusion.com ([64.118.64.245]) by mc6-f27.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 13 Mar 2003 07:46:28 -0800 X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-ID: <[EMAIL PROTECTED]> Precedence: bulk References: <[EMAIL PROTECTED]> Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 13 Mar 2003 15:46:29.0025 (UTC) FILETIME=[B6650910:01C2E977] 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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4