Sascha Matzke writes:
 > Hello,
 > 
 > I have some stateless Sessionbeans which are all named after a
 > specific pattern [XML_DOCTYPE]Update{Bean|Home}. They all "implement" a
 > remoteinterface named Update.
 > 
 > How can I dynamically (depending of the DocumentType of the input) get
 > the right class for the "PortableRemoteObject.narrow(name, class)"
 > command? I tried something like that:
 > 
 > 
 >PortableRemoteObject.narrow("catalogUpdateHome",Class.forname("catalogUpdateHome.class"))
 > 
 > but it only gives a ClassNotFoundException.

Possible what you want is

PortableRemoteObject.narrow( "catalogUpdateHome", Class.forname( "catalogUpdateHome" ) 
);

Regards
Tom
-- 
Tom Cook - Software Engineer

"We rarely find that people have good sense unless they agree
 with us."
                - Francois, Duc de la Rochefoucauld

LISAsoft Pty Ltd - www.lisa.com.au

--------------------------------------------------
38 Greenhill Rd.          Level 3, 228 Pitt Street
Wayville, SA, 5034        Sydney, NSW, 2000

Phone:   +61 8 8272 1555  Phone:   +61 2 9283 0877
Fax:     +61 8 8271 1199  Fax:     +61 2 9283 0866
--------------------------------------------------


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to