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 Orion-2.x
|
-
Set
ORION_HOME
Make sure that the variable ORION_HOME is set to the Orion home directory
-
Configure JMS
- Make sure in ORION_HOME/config/server.xml that JMS is enable. Uncomment the line
<jms-config path="./jms" /> . By default, JMS is not enable on Orion.
- Edit ORION_HOME/config/jms.xml to create:
- A queue connection factory:
jms/QueueConnectionFactory
- The queues:
jms/queue/order and jms/queue/mail
ORION_HOME/config/jms.xml should look like:
<jms-server ...>
...
<queue-connection-factory location="jms/QueueConnectionFactory"/>
<queue name="Order Queue" location="jms/queue/order"/>
<queue name="Mail Queue" location="jms/queue/mail" />
...
</jms-server>
-
Configure JDBC
- Copy the JDBC driver to ORION_HOME/lib
- Edit ORION_HOME/config/data-sources.xml and create the datasource jdbc/xpetstoreDS .
ORION_HOME/config/data-sources.xml should look like:
<data-sources>
...
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="postgresql"
location="jdbc/MyPostgreSQLDS"
xa-location="jdbc/xa/MyMyPostgreSQLXADS"
ejb-location="jdbc/xpetstoreDS"
connection-driver="your-jdbc-driver"
username="your-username"
password="your-password"
url="your-database-url"
inactivity-timeout="30"
/>
...
</data-sources>
-
Configure JavaMail
Edit ORION_HOME/config/server.xml and create the Mail session mail/MailSession .
ORION_HOME/config/server.xml should look like:
<application-server ...>
...
<mail-session location="mail/MailSession" smtp-host="your-smtp-host">
<property name="mail.from" value="noreply@xpetstore.sourceforge.net" />
<property name="mail.transport.protocol" value="smtp" />
<property name="mail.smtp.from" value="noreply@xpetstore.sourceforge.net" />
</mail-session>
...
</application-server>
-
Register the application
- Edit ORION_HOME/config/server.xml and register
xpetstore-ejb and xpetstore-servlet applications
ORION_HOME/config/server.xml should look like:
<application-server ...>
...
<application name="xpetstore-ejb"
path="ORION_HOME/applications/xpetstore-ejb.ear"
auto-start="true"
/>
<application name="xpetstore-servlet"
path="ORION_HOME/applications/xpetstore-servlet.ear"
auto-start="true"
/>
...
</application-server>
- Edit ORION_HOME/config/default-web-site.xml to:
- register
xpetstore-ejb and xpetstore-servlet applications.
- change the port from
80 to 8080
<web-site host="[ALL]" port="8080" display-name="Default Orion WebSite">
...
<web-app
application="xpetstore-ejb"
name="xpetstore-ejb"
root="/xpetstore-ejb"
load-on-startup="true"
/>
<web-app
application="xpetstore-ejb-test"
name="xpetstore-ejb-test"
root="/xpetstore-test"
load-on-startup="true"
/>
<web-site>
-
Enable the admin account
Enable the admin user used to deploy the application.
Edit ORION_HOME/config/principals.xml and turn the line
<user name="admin" password="123" deactivated="true">
to
<user name="admin" password="123" deactivated="false">
|
|
|