|
 |
j2ee thread: RE: JNDI Confusionand Exception??????
Message #1 by Chanoch Wiggers <ChanochW@w...> on Fri, 1 Mar 2002 15:52:20 -0000
|
|
1. and 2. its recommended that you use the long form to store beans in jndi
scope, so best practices are that you use /com/env/ejb/UserHome rather than
just UserHome
3. where you class files are is completely irrelevant to what the names are
in JNDI - the names in JNDI store the instance information, not physical
details like where in your file system the class file for the ejb is
4. can you send some code to show what you mean, i didnt quite get it.
chanoch/
-----Original Message-----
From: sumit_sood@s... [mailto:sumit_sood@s...]
Sent: 28 February 2002 16:37
To: Java 2 Enterprise Edition
Subject: [j2ee] JNDI Confusionand Exception??????
hi friends,
i would like to have some inputs from regarding JNDI which are
listed here :
1.when should i use name in jndi like java:comp/env/ejb/....
eg :context.lookup("java:comp/env/ejb/UserHome");
2.when i can use diretly UserHome
eg :context.lookup("UserHome");
3. does it matter it affect naming during deployment when i pack all the
beans in one jar file or whether i make one to one mapping for jar and
bean files.
4. also user defined Exception exception are caught does have some
restrictions...for example i have been unable to catch my own defined
catch in try..catch() block of UserDeined Exception instead it is caught
in Exception block.
i amworking on WebSphere 4.0.1
it will be helpgul to you all and also if you can send some reference code
to me..
thanks..keeping the java spiit alive
regards
sumit
|
|
 |