Overview
- Home
- Specifications
- xPetstore-EJB
- xPetstore-Servlet
- Source Code
- Metrics
- ToDo
Project
- Mailing Lists
- Source Repository
- Issue Tracking
- Project Team
- References
Installation
- Download
- Configuring JBoss 3.0.x
- Configuring WebLogic 7.x
- Configuring Orion 2.x
- Configuring Tomcat 4.x
- Running xPetstore
|
Configuring WebLogic-7.x
|
-
Set
WL_HOME
- Make sure that the variable
WL_HOME is set to the WenLogic home directory
-
Create the WebLogic xpetstore domain
-
Create the xpetstore domain at
WL_HOME/../user_projects/xpetstore
-
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>
-
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"
/>
-
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"
/>
|
|
|