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 form-based authentication?

709


What are types of j2ee clients?

689


How to create object without using the keyword “new” in java?

700


What is java full stack developer?

637


What does resource adapt module contain?

699


Why is j2ee needed?

649


What is java api for xml processing (jaxp)?

721


What is java actionlistener?

645


What is jradiobutton in java?

659


What is layout manager in java?

617


Describe action form?

701


What is commit?

810


What is non primitive data type in java?

679


What is caller?

734


What is the use of method saveorupdate()?

743