I'm working on EJB based Application resources from struts and heva the following 
problem;
I'd want to pass the jndiName and path in as text var's and the instantiate my object 
with that.

I will mail my full code listing and results on request.

I'm trying this:
-------------------
Context ctx = new InitialContext(env);
Object obj = ctx.lookup( "acme/Application" );
...
Class bcHome = Class.forName("app.resources.ApplicationHome");
...
Object boHome;
boHome = PortableRemoteObject.narrow(obj, bcHome); //<-LINE 35
...

And get the following:
------------------------------
java.lang.InstantiationException: app.resources.Application
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at CallResourcesEjb.main(CallResourcesEjb.java:35)


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835789#3835789

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835789


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to