Now
I have added these lines:
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"localhost:1099");
the error is :
" Cannot instantiate class: org.jnp.interfaces.NamingContextFactory"
why?
thanks for any hints!
pylio
---------------------------
thanks for Scott's help
Now I have seen "estore/ReportForm" in jndi tree.
I can confirm it.
-------------
+- estore
| +- PLU
| +- Payment
| +- RTNReport
| +- DlvDtl
| +- Cheval
| +- RtnHead
| +- ReportForm *********************************************
| +- CashStock
| +- Adj
| +- Mrk
| +- DlvHead
| +- PosulReport
| +- Store
|
but why I can't get it in my another apllication (A) by
ic.lookup("estore/ReportForm")?
ic:
InitialContext ic = new InitialContext();
perhaps ic is wrong? **********
now jboss and my application A is in same one PC.
thanks.$$~zi?lq?zlX)ߣۢ.
,ǫx%I,ǫ+-.ǟalb,y+b?+-w6ˬz