So I guess that this problem is not solved yet?
Stuart Barlow wrote:
Yes its this one again. I have a simple SessionBean in jBoss
3.0.6 and a simple client. I have used xdoclet to generate
the EJB code. I read in an earlier mail that ClassCastException
is thrown from PortableRemoteObject for a num
Yes its this one again. I have a simple SessionBean in jBoss
3.0.6 and a simple client. I have used xdoclet to generate
the EJB code. I read in an earlier mail that ClassCastException
is thrown from PortableRemoteObject for a number of reasons
not just a casting error. Is this true? What other prob
Yes, it does have import javax.rmi.PortableRemoteObject in the InterestClient class. I
know the PortableRemoteObject class is in the jdk1.3\jre\lib\rt.jar, however i don't
know in which way to add all the related classes in jdk1.3 to my classpath. If I run
the client class in the following way:
Sorry for assuming this, but do you have an import statement like:
import javax.rmi.PortableRemoteObject;
in the class in which you want to use narrow()?
This class exists for sure in JDK1.3.
Christine wrote:
> hi, Danch
>
> I set the environment variable PATH = c:\jdk1.3\bin and JAVA_HOM
hi, Danch
I set the environment variable PATH = c:\jdk1.3\bin and JAVA_HOME = c:\jdk1.3
is it right? Even I put classpath c:\jdk1.3\jre\lib\rt.jar, i am getting
exception. Can you please tell me what is the right setting I should use? Thank
you very much.
Christine
"danch (Dan Christopherson)"
Christine wrote:
> I am using JBoss 2.2.2 and JDK1.3. But I am getting error:
> java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
>
> I have to cast after name lookup. Can anyone tell me what i should do to use
> narrow()?
>
That class should be included in jdk1.3. Are you sure t
I am using JBoss 2.2.2 and JDK1.3. But I am getting error:
java.lang.NoClassDefFoundError: javax/rmi/PortableRemoteObject
I have to cast after name lookup. Can anyone tell me what i should do to use
narrow()?
Regards,
Christine
[EMAIL PROTECTED] wrote:
> > When should I use PortableRemoteObjec
> When should I use PortableRemoteObject.narrow, and when should I not.
If you use RMI/IIOP (Borland Application Server) then you need to "narrow"
your classes, if you're only using RMI (JBoss), you can omit this.
However, personally, I would include this code in all of my context lookups,
beca
You should call that when you look up an EJB's home interface. This is
for portability purposes only: if you know you'll never need to run on
an IIOP based container (WebLogic, IIS, IONA (though I'm extrapolating
here)), you don't really need it. It is a good idea though.
-danch
Griffin, Mich
When should I use PortableRemoteObject.narrow, and when should I not.
___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
This is something that has always bothered me...
IAS claims that the spec requires you to use PortableRemoteObject.narrow()
on objects in the Collection returned in a find(). Monson-Haefel
backs this up on p.135 of Enterprise JavaBeans (2nd Edition). The
spec seems to imply that its a good ide
11 matches
Mail list logo