How to lookup JNDI resources on WebLogic?

前端 未结 4 627
刺人心
刺人心 2020-11-30 08:27

I deployed a legacy application on WebLogic 11g. The application has the following code:

 Context context = new InitialContext();
 dataSource = (javax.sql.Da         


        
4条回答
  •  旧时难觅i
    2020-11-30 08:47

    I had a similar problem to this one. It got solved by deleting the java:comp/env/ prefix and using jdbc/myDataSource in the context lookup. Just as someone pointed out in the comments.

提交回复
热议问题