Chapter 8 Creating J2EE Applications for BEA WebLogic


Setting up URL connection factories

To setup a URL connection factory in WebLogic Server, bind a URL string to a JNDI name using these instructions:

  1. In a text editor, open the config.xml file for the instance of the WebLogic Server you are using and set the URLResource attribute for the following config.xml elements:

  2. Set the URLResource attribute for the WebServer element using the following syntax:

<WebServer URLResource="weblogic.httpd.url.testURL= http:// localhost:7701/testfile.txt" DefaultWebApp="default-tests"/>

  1. Set the URLResource attribute for the VirtualHost element, when virtual hosting is required, using the following syntax:

<VirtualHostName=guestserver" targets="myserver,test_web_server "URLResource="weblogic.httpd.url.testURL=http:// localhost:7701/testfile.txt" VirtualHostNames="guest.com"/>

  1. Save the changes in config.xml and reboot WebLogic Server.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.