Configuring JNDI entry in Tomcat 6

preview_player
Показать описание
Learn to use a JNDI entry. Connect a web application with a global resource. Features EGL Community Edition and Tomcat 6. Part of on-line course called Essential Web Services with EGL.
Рекомендации по теме
Комментарии
Автор

You are a KIND GENIUS period. Its so tough that I summarised it for my future use.
---
1. Workspace Build automatically.
2. Server view Start and stop tomcat.
3. New Dynamic Web Proj and web perspective.
4. Create JSP page in webcontent called indexjsp and choose xhtml.
5. tomcat env cheat sheet and paste in indexjsp
6. webxml and just leave indexjsp only and erase the rest.
7. In webxml add resource-env-ref we add the server name and restart the server ..again.

japanuser
Автор

Thank you! This video brought me to a very good debugging idea!

bennycode
Автор

Nice tutorial! I have a question though. Where do you place the datasource resource definition? I don't think you mentioned that in the video. Cheers!

krionite
Автор

8. Stop server and copy NAMESPACE BINDING and paste in serverxml in Sever poject in Project Explorer. ie add the JNDI entry.
9. We paste that in GlobalNamingResources tag in serverxml and restart tomcat to check.
10. Find Context in server xml in the host tag.
11. Paste the resource link inside Context tag.
12. Goto environment in project explorer and Run on Server and press publish button in console and refresh browser and restart.

japanuser