I'm currently using the final JBoss 4.01 release, and I have a weird problem that I can't seem to resolve. I have a stateless session bean calling entity beans (see: Session Facade). They're all in the same ear, all referenced using local home interfaces.
For some reason, attempting the JNDI lookup for the stateless session bean takes on average 17 seconds, on a fairly fast Xeon server with a gig of ram; this is just on timing when the context.lookup call returns. I'm returning the lookups by reference, and for the life of me, can't figure out why this call would take so long.
Anybody experience similar issues? or can anyone point me in the right direction as to where to look? :)