File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes PortableRemoteObject Narrow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "PortableRemoteObject Narrow" Watch "PortableRemoteObject Narrow" New topic

PortableRemoteObject Narrow

Nikhil Jain
Ranch Hand

Joined: May 15, 2005
Posts: 389
Is PortableRemoteObject requried for EJB3.

I had created a session bean & deployed it on JBOSS Server. I created a stand alone client. I did not do any narrowing but it still worked. I modified by code, to include the narrowing part. It also worked. So is this narrowing required in EJB 3

SCJP 1.4, SCWCD 1.4, SCBCD 1.5, TOGAF 9, Comptia Cloud+
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

It's considered good form for casting but as you saw it can work both ways.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: PortableRemoteObject Narrow
It's not a secret anymore!