Consume EJB thats in the same EAR as the WAR

Hey,

I've been trying to figure out how to consume an EJB from a servlet in a WAR. Both the EJB and WAR are in the same EAR file. What class files am I going to need to put in the WAR's class folder? Am I going to need any if they are in the same EAR? Since they are in the same EAR can I not just access them via an import?

If sombody could shed some light on the topic I'd appreciate it.

Thanks.

[425 byte] By [Felbela] at [2007-10-2 18:58:47]
# 1
Can't believe people are still using EJB. Do yourself a favor.
MadHoopz102a at 2007-7-13 20:37:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
> Can't believe people are still using EJB. Do> yourself a favor.Why not?
aniseeda at 2007-7-13 20:37:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I'd actually found my answer after a good nights sleep... I must have been out of it when I asked that question ha ha... and yes, why wouldn't I use EJB's?
Felbela at 2007-7-13 20:37:17 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...