Site dating new thread

What this means, is that you cannot get an Initial Context and do JNDI lookups to access other system resources such as JMS Connection Factories and Datasources.There are ways to do this "correctly", but it is dependent on the platform being used.Also, much of the context in which a thread is being used is typically attached to the thread of execution itself.If you simply start your own thread (which I believe some servers will not even allow), it cannot access other resources.

It is discouraged because all resources within the environment are meant to be managed, and potentially monitored, by the server.Threads (and sockets and other restricted facilities) are a significant barrier to this portability.The reason that you shouldn't spawn your own threads is that these won't be managed by the container.I especially enjoy the illustrations and pictures you have included.As I Most of us know the name Singer but few are aware of his amazing life story, his rags to riches journey from a little runaway to one of the richest men of his age.

Leave a Reply