i developed a Stateless Session bean program.And created a
client by a common java class as
class m
{p s v m(String s[]){....}}
And i called the bean deployed in weblogic.from cmd prompt
And that run.
mind it i have to set setenv,seting classpath for that bean
jar file before compile and run it.

ok
when i do a servlet programme deployed in tomcat and call
that bean then it give classdefnotfoundException and
NoInitialContext like this.So how i sucessfully do this?

Ok
when i call that bean from java class from the console like
i previously told, if i don't set setenv i found the same
error on the cmd prompt.
pls help to get out of it

Answer Posted / ashutosh

tomcate is webserver..and ejb is distributed component we
cant deploy it in web server so we need app server just use
weblogic.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jaxr client?

519


What is java ee used for?

443


Why java is oop language?

537


whay java does not support bass by reference

2350


What is the best java course?

495






What is the description for expression element?

520


Is java part of oracle?

469


What are the four components of j2ee application?

555


Is java a high level language?

488


What is empty tag?

508


for example we are login into the irctc server from there it will go to the selected bank and deduct amount and come back to the irctc. so if we are developing this in java means will it be run on the same session. but as per my knowledge bank is separate and irctc is separate URL's so it will use two different sessions then how it is maintaining same session through out application and even it uses the payment gateway? how it is working can any one help me on that??

3859


What is element?

536


How do you compile java?

483


What is basic authentication?

540


How does javac compiler work?

463