Don't pass in the props when creating the InitialContext inside the bean.
Only the client needs the properties.
No love. Props or no props, the InitialContext is failing to be obtainted.
Got to be something I'm missing. My bean is trying to call a sequenceBean who's responsibility is to check the database for the next available primary key.
My test client obtains the Initialcontext alright, but when myBean tries to lookup my sequenceBean, it can't get the InitialContext.
found the problem, mySequenceBean ALSO called an InitialContext which I forgot to provide with props so I had actually 3 levels of nesting there. Case closed.