I~m trying to make a FiboConsole application, but when de debug reaches the context
lookup, I get an excepion.
HereÂs the code:
public static void main(String[] args) {
FiboConsole fiboCon = new FiboConsole();
try {
Context context = new InitialContext();
Object ref = context.lookup("java:/comp/env/ejb/Fibo");
fiboCon.home = (FiboHome) PortableRemoteObject.narrow(ref,
FiboHome.class);
} catch (Exception e) {
System.out.println("Lookup of java:/comp/env/ failed");
}
----------------//---------
Why my servlet ComputeServlet works fine and my console app not? Jus gimme the error:
Lookup of java:/comp/env/ failed
-------//------------------
Sorry, but iÂm a beginner....
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835017#3835017
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835017
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id%62&alloc_ida84&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user