-
1. Re: Calling Legacy EJB from ServiceMix FUSE javax.naming.NotContextException
mielket Nov 18, 2009 5:36 AM (in response to sunnywear)Sorry have not done this myself yet but it seem you are not even getting to the JBoss JNDI registry there.
When you create your InitialContext in your Impl class, you should be able to pass in an HashTable of environment entries. Have you tried setting the JNDI properties (URL and provider class) accordingly and pass them into the call to new InitialContext()? That might get you connected to the JBoss JNDI service.
Once you can lookup the EJBs home interface, it will take you further.
-
2. Re: Calling Legacy EJB from ServiceMix FUSE javax.naming.NotContextException
sunnywear Nov 18, 2009 6:07 AM (in response to mielket)The hashtable of properties are being set properly and occur prior to my lookup call. All of this same code runs perfectly outside of FUSE as both a stand-alone Java application as well as within a completely different ESB.
I believe the trouble here is related to FUSE ESB overriding my JBoss settings with their own Naming package.
Does this elaborate more?