0

I have a class that uses a method from another EJBHelper class which calls the method getInitialContext to initialize an InitialContext.

Now, the problem is that I need to close the InitialContext after the EJB process ends. Please help; how can I do this?

matts
  • 6,738
  • 1
  • 33
  • 50

1 Answers1

1

As far as I know you don't need to close the InitialContext.

Bogdan
  • 934
  • 7
  • 13
  • Hey,Thanks for reply.I Need to close as it giving some waiting error when using with Jboss server. – user2011633 Jan 28 '13 at 10:50
  • InitialContext is used for EJB lookup. So once you get the reference to your EJB it should be possible to close it. If this does not work please post the error you get from JBoss. – Bogdan Jan 28 '13 at 21:00