Looks fine to me....for PortableRemoteObject if that is line 26.
dferugson wrote:
>
> This is blowing my mind. Anybody no why this would happen?
> It is so simple. It should work!
>
> [dug@thedug segmentation]$ javac client.java
> client.java:26: inconvertible types
> found : java.lang.Object
> required: SegmentationHome
> SegmentationHome home =
> (SegmentationHome)PortableRemoteObject.narrow(ref,SegmentationHome.class);
>
>
> try{
> InitialContext jndiContext = new InitialContext();
> print("Got Context");
>
> Object ref = jndiContext.lookup("Segmentation");
> print("Got Reference");
>
> SegmentationHome home =
> (SegmentationHome)PortableRemoteObject.narrow(ref,SegmentationHome.class);
> print("Narrow Home");
>
> //Segmentation seg = home.create();
> print("I just created a bean");
>
> //print(seg.list());
> //print(seg.details());
>
>
>
>
>
>
> }catch(Exception e){
> print(e.toString());
> }
>
> --
> Doug Ferguson
> Software Developer
> www.coremetrics.com
> 512-342-2623x212
> 512-619-9972(cell)
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]