Session Demo

Overview

This sample demonstrates how to invoke EJB of weblogic server in your ASP file.  ________________________________________________________________________________________

How to run this sample (WebLogic 4.5.0)

  1. Assume you have installed WebLogic into d:\weblogic and Instant ASP into d:\iasp;
  1. To build the EJB sample for weblogic on windows 9X/NT, open a command prompt window and change directory to  d:\weblogic\examples\ejb, type the command line: build basic statefulSession; ejb_basic_statefulSession.jar will be generated under d:\weblogic\classes directory.
  1. Open the d:\weblogic\weblogic.properties, add the following lines under WEBLOGIC EJB DEMO PROPERTIES section:
weblogic.ejb.deploy=d:/weblogic/classes/ejb_basic_statefulSession.jar

weblogic.jdbc.connectionPool.ejbPool=\
url=jdbc:cloudscape:ejbdemo,\
driver=COM.cloudscape.core.JDBCDriver,\
initialCapacity=1,\
maxCapacity=2,\
capacityIncrement=1,\
props=user=none;password=none;server=none

weblogic.allow.reserve.weblogic.jdbc.connectionPool.ejbPool=guest
  1. Open the d:\iasp\properties\ejb.properties, add the following lines:
weblogic.java.naming.factory.initial = weblogic.jndi.WLInitialContextFactory
weblogic.java.naming.provider.url = t3://<hostname>:7001

5. Restart weblogic server;

6. Add the following line to the classpath in d:\iasp\start-server.bat file

d:\weblogic\classes;d:\weblogic\lib\unpacked_jar\javax_jts.zip;d:\weblogic\lib\unpacked_jars\javax_ejb.zip;d:\weblogic\lib\unpacked_jars\jndi.jar;d:\weblogic\lib\unpacked_jars\collections.zip;d:\weblogic\classes\statefulSession.jar

7. Start iASP server by executing start-server.bat, and then choose the script language you prefer from the top drop-down menu and click Run Sample button run the session.asp.

 

If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com.


Copyright ?1998-2000, Halcyon Software Inc. All rights reserved.