WebSphere ¤ÎJNDI¤ÎÀßÄêÊýË¡(ÆÃ¤Ë¥Ç¡¼¥¿¥½¡¼¥¹) †Java¾å¤Î¥³¡¼¥Ç¥£¥ó¥° †(DataSource) ctx.lookup("java:comp/env/jdbc/DataSourceUserProfile");
¤Î¤è¤¦¤Ë¤·¤Æ¡¢"java:comp/env/" ¤ò¤Ä¤±¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£*1 ¤³¤ì¤ò (DataSource) ctx.lookup("jdbc/DataSourceUserProfile");
¤È½ñ¤¯¤È¡¢¥µ¡¼¥Ð¤Î¥Ç¡¼¥¿¥½¡¼¥¹Ì¾¤òľÀÜ»ØÄꤷ¤¿¤³¤È¤Ë¤Ê¤ë(¡©¡©) ¼ÂºÝ¡¢java:comp/env ¤ò¤Ä¤±¤¿¾ì¹ç¤Ï¡¢²¼µ¤Î¥Ð¥¤¥ó¥Ç¥£¥ó¥°¤È¤¤¤¦ºî¶È¤ò¤·¤Ê¤¤¤È¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤Î¤ËÂФ·¡¢¤Ä¤±¤Ê¤¤¾ì¹ç¤Ï¥¨¥é¡¼¤¬È¯À¸¤·¤Ê¤«¤Ã¤¿¡£ ejb-jar.xml or web.xml ¤ËÄɲà †¥³¡¼¥ÉÃæ¤Ç¾å¤Î¤è¤¦¤Ë¥ë¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤¤¤ë¤â¤Î¤ò¤¹¤Ù¤Æ¡¢Îóµó¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£ <resource-ref> <description>DataSourceUserProfile</description> <res-ref-name>jdbc/DataSourceUserProfile</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> WSAD¤Ê¤éGUI¤Ç¤â¤Ç¤¤Þ¤¹¡£ web.xml >> »²¾È >> ¥ê¥½¡¼¥¹ ¤òÊÔ½¸¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤³¤Þ¤Ç¤Ï¡¢¤¹¤Ù¤Æ¡¢J2EEɸ½à¤Î¤ä¤ê¤«¤¿¤Ç¤¹¡£ ¥Ð¥¤¥ó¥Ç¥£¥ó¥° †¾åµ¤Î¥í¡¼¥«¥ë¥ë¥Ã¥¯¥¢¥Ã¥×¤·¤Æ¤¤¤ë̾Á°(jdbc/DataSourceUserProfile?)¤ò¼ÂºÝ¤ÎDatasource¤ÎJNDI̾¤ÈÂбþ¤µ¤»¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¡£ ¤³¤ì¤ò¤·¤Ê¤¤¤È¡¢ [03/05/19 21:04:34:027 JST] 1d728bcb Helpers W NMSV0605W: ¥³¥ó¥Æ¥¥¹¥È "java:" ¤«¤é ̾Á° "comp/env/jdbc/DataSourceUserProfile" ¤Ç¥ë¥Ã¥¯¥¢¥Ã¥×¤µ¤ì¤¿»²¾È¥ª¥Ö¥¸¥§¥¯¥È¤¬ JNDI Naming Manager ¤ËÁ÷¿®¤µ¤ì¡¢Îã³°¤¬È¯À¸¤·¤Þ¤·¤¿¡£ »²¾È¥Ç¡¼¥¿¤Ï¼¡¤Î¤È¤ª¤ê¤Ç¤¹: »²¾È¥Õ¥¡¥¯¥È¥ê¡¼¡¦¥¯¥é¥¹Ì¾: com.ibm.ws.util.ResRefJndiLookupObjectFactory »²¾È¥Õ¥¡¥¯¥È¥ê¡¼¡¦¥¯¥é¥¹¤Î¾ì½ê¤Î URL: <null> Reference Class Name: java.lang.Object Type: ResRefJndiLookupInfo Content: com.ibm.ws.util.ResRefJndiLookupInfo@38e08bcb ResRefJndiLookupInfo: Look up Name="jdbc/DataSourceUserProfile";JndiLookupInfo: jndiName=""; providerURL=""; initialContextFactory="" ¤È¤¤¤¦Îã³°¤¬È¯À¸¤·¤Þ¤·¤¿¡£ ¤³¤Îbinding¤ÎÊýË¡¤Ï¡¢J2EE¤ÎSpec³°¤Ç¤¹¤Î¤Ç¡¢³ÆApplicationServer?¤Ë¤è¤Ã¤Æ°Û¤Ê¤ê¤Þ¤¹¡£ WebSphere¤Ê¤é¡¢¤³¤Îbinding¾ðÊó¤Ï,WebApplication?¤Î¾ì¹ç¤Ï WEB-INF/ibm-web-bnd.xmi ¤ËÊݸ¤µ¤ì¤Þ¤¹¡£ÉáÄ̤ÏAAT¤Ê¤ê¡¢WSAD¤Ê¤ê¡¢¤Þ¤¿¤Ï¡¢deploy»þ¤Ëbinding¾ðÊó¤ò¤¤¤í¤¤¤íʹ¤«¤ì¤ë¤Î¤Ç¤½¤Î¾ðÊó¤ò¸µ¤Ë¼«Æ°Åª¤Ë¤Ä¤¯¤é¤ì¤Þ¤¹¡£ WSAD¤ò¤Ä¤«¤Ã¤Æ¤¤¤ë¤Î¤Ê¤é¡¢web.xml ¤Î¥¨¥Ç¥£¥¿¾å¤Ç¤â¤Ä¤¯¤ì¤Þ¤¹¡£ web.xml >> »²¾È >> ¥ê¥½¡¼¥¹ >> WebSphere ¥Ð¥¤¥ó¥Ç¥£¥ó¥° ¤Î¸Ä½ê¤òÊÔ½¸¤¹¤ë¤È¡¢WEB-INF/ibm-web-bnd.xmi¤¬¤Ä¤¯¤é¤ì¤Þ¤¹¡£ http://neverbird.sourceforge.jp/manual/fancy/ch07s02.html ¤Ë»²¹Í¤Ë¤Ê¤ë¾ðÊ󤬤¢¤ê¤Þ¤¹¡£ http://neverbird.sourceforge.jp/manual/fancy/ch07s22.html
¤Ë¤è¤ë¤È¡¢¥í¡¼¥«¥ë¥ë¥Ã¥¯¥¢¥Ã¥×¤Î°Õ¿Þ¤Ï¡¢ ¥á¥â¡£ †PostgreSQL¤Ç¥¨¥é¡¼¤Ë¤Ê¤é¤Ê¤«¤Ã¤¿ÀßÄê¡£
µ¯Æ°¤¹¤ë¤È¤¤¤í¤¤¤í¥¨¥é¡¼¤¬¡£¡£ †
¤³¤Îµ»ö¤Ï ¸½ºß¤Î¥¢¥¯¥»¥¹:25420 |