Accessing JNDI datasource without Java: comp / env prefix
                                        
                    •
                    Java                                    
                I noticed two ways to find datasource using JNDI work:
> jdbc / DataSource > java:comp / env / jdbc / DataSource
As an added benefit, when used from an unmanaged thread (started by quartz), the first one doesn't seem to annoy WebSphere
Are there any traps for accessing JNDI objects without prefixes?
Solution
This should be fine because Java: comp / env is the global JNDI namespace
Locate your JDBC DataSource in WebSphere Application Server using JNDI
                            The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
                        
                                            
                        THE END
                    
                    
                    
                                                        二维码
                        
                        
                                                
                        