# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. (C) Copyright 2006-2010 The Apache Software Foundation. ---------------------------------------------------------------------- These are instructions for building and useing daytrader with JBoss: First create a $JBOSS_SERVER_HOME/deploy/jms/daytrader-destinations-service.xml file with the fiollowing contents: TradeBrokerQueue jboss.mq:service=DestinationManager TradeStreamerTopic jboss.mq:service=DestinationManager Then edit your $JBOSS_SERVER_HOME/deploy/ejb-deployer.xml file and find the line that sets the VerifyDeployments attribute and set to false. It should look like the following: ... false ... If using MySQL, create a mysql database called tradedb and load it with the derby.sql. Create a user named daytrader and grant the proper privileges as follows: grant all on tradedb.* to daytrader identified by 'daytrader'; grant all on tradedb.* to daytrader@localhost identified by 'daytrader'; Then create a JBoss mysql datasource by creating a $JBOSS_SERVER_HOME/deploy/mysql-ds.xml file with the following contents: jdbc/TradeDataSource false jdbc:mysql://localhost:3306/tradedb com.mysql.jdbc.Driver daytrader daytrader org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter mySQL Finally build a mysql version of daytrader with the following command: mvn clean install -Ddatabase=mysql Copy the $DAYTRADER_SRC_HOME/modules/ear/target/daytrader-ear-1.1-SNAPSHOT.ear to your $JBOSS_SERVER_HOME/deploy directory.