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
How many types of component events are in java?
Is python more secure than java?
What is iso 3166?
What is event handling in java?
What is document?
Difference between save and saveorupdate?
What is entity reference?
What is java secure socket extension (jsse)?
What is the name of java compiler?
What is a j2ee module?
Who gave the name java?
Difference between load and get method?
What is component in java with example?
What is a jbutton in java?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...