RE: CF Talking to a EJB

2003-03-13 Thread Andre Mohamed
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 -
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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



RE: CF Talking to a EJB

2003-03-13 Thread webguy
Ah ok see what you mean .

You might need to JavaCast it to an Java object first?

WG




-Original Message-
From: Michael Hoffman [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 16:47
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: CF Talking to a EJB


CF does not know what .class is.


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 16:43:47 -
Received: from houseoffusion.com ([64.118.64.245]) by
mc9-f25.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 13 Mar
2003 08:44:42 -0800
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-ID: <[EMAIL PROTECTED]>
Precedence: bulk
References: <[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 13 Mar 2003 16:44:43.0507 (UTC)
FILETIME=[D944AC30:01C2E97F]

Well the .class would be your bean class. Yours is probably called
TitleSessionBean.class.

WG

-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 -
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF Talking to a EJB

2003-03-13 Thread Michael Hoffman
CF does not know what .class is.


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 16:43:47 -
Received: from houseoffusion.com ([64.118.64.245]) by 
mc9-f25.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 13 Mar 
2003 08:44:42 -0800
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
Message-ID: <[EMAIL PROTECTED]>
Precedence: bulk
References: <[EMAIL PROTECTED]>
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 13 Mar 2003 16:44:43.0507 (UTC) 
FILETIME=[D944AC30:01C2E97F]

Well the .class would be your bean class. Yours is probably called
TitleSessionBean.class.

WG

-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 -
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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



RE: CF Talking to a EJB

2003-03-13 Thread webguy
Well the .class would be your bean class. Yours is probably called
TitleSessionBean.class.

WG

-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 -
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF Talking to a EJB

2003-03-13 Thread Michael Hoffman
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 -
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4



RE: CF Talking to a EJB

2003-03-13 Thread webguy
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?




ictx.addToEnvironment("java.naming.provider.url",
"w2k069.sysadmin.suny.edu:2908");






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