Configuring WebLogic-7.x
Configuring WebLogic-7.x

  1. Set WL_HOME
    • Make sure that the variable WL_HOME is set to the WenLogic home directory
  2. Create the WebLogic xpetstore domain
    • Create the xpetstore domain at WL_HOME/../user_projects/xpetstore
  3. Configure JMS
    • Create the following JMS ConnectionFactory: JNDI name = jms/ConnectionFactory
    • Create the following JMS queues:
      • JNDI name = jms/queue/order
      • JNDI name = jms/queue/mail
    The config.xml should contain the following lines:
    <JMSConnectionFactory 
    	JNDIName="jms/ConnectionFactory" 
    	Name="xpetstoreConnectionFactory" 
    	Targets="myserver"
    />
    <JMSFileStore 
    	Directory="/opt/bea/user_projects/xpetstore/persistence/jms/" 
    	Name="JMSFileStore"
    />
    <JMSServer Name="JMSServer" Store="JMSFileStore" Targets="myserver">
        <JMSQueue 
            JNDIName="jms/queue/mail" 
            Name="xpetstoreMail" 
            RedeliveryLimit="10" 
            StoreEnabled="true"
        />
        <JMSQueue 
            JNDIName="jms/queue/order" 
            Name="xpetstoreOrder" 
            RedeliveryLimit="10" 
            StoreEnabled="false"
        />
    </JMSServer>
    
  4. Configure JDBC
    • Create the datasource: JNDI name = jdbc/xpetstore
    The config.xml should contain the following lines:
    <JDBCConnectionPool 
        DriverName="com.sap.dbtech.jdbc.DriverSapDB" 
        Name="xpetstoreConnectionPool" 
        Password="{3DES}ZuRhxjydkEw=" 
        Properties="user=test" 
        Targets="myserver" 
        URL="jdbc:sapdb://localhost/XPSTORE"
    />
    <JDBCTxDataSource 
        JNDIName="jdbc/xpetstore" 
        Name="xpetstoreTXDataSource" 
        PoolName="xpetstoreConnectionPool" 
        Targets="myserver"
    />
    
  5. Configure JavaMail
    • Create the MailSesion: JNDI name = mail/MailSession
    The config.xml should contain the following lines:
    <MailSession 
        JNDIName="mail/MailSession" 
        Name="xpetstoreMailSession" 
        Properties="mail.from=noreply@xpetstore.sourceforge.net;\
            mail.transport.protocol=smtp;mail.smtp.host=your.smtp.host;\
            mail.store.protocol=pop3;mail.pop3.host=your.pop.host;mail.user=your_user_name" 
        Targets="myserver"
    />