Ah, that will be why I'm seeing a JMS connectivity error then? :) Shall I change my script to update the jndi.properties? Or will you be making that change in the stratos-setup.sh script?
On Sat, Mar 22, 2014 at 3:15 PM, Nirmal Fernando <[email protected]> wrote: > Another step, I missed is the changes to puppet master configs with the > introduction of activemq. > > jndi.properties file should be like this now: > > connectionfactoryName=TopicConnectionFactory > java.naming.provider.url=tcp://$mb_ip:$mb_port > java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory > > > > On Sat, Mar 22, 2014 at 8:41 PM, Nirmal Fernando <[email protected]> > wrote: >> >> Hi Chris, >> >> Where was it? May be I missed it. >> >> >> On Sat, Mar 22, 2014 at 8:35 PM, chris snow <[email protected]> wrote: >>> >>> Hi Nirmal - is the "clean.sh" step no longer needed? >>> >>> On Sat, Mar 22, 2014 at 8:37 AM, Nirmal Fernando <[email protected]> >>> wrote: >>> > Hi All, >>> > >>> > I've added a set-up script to configure single JVM thing, this is a >>> > quick >>> > dirty script to get us moving (so this could have few limitations >>> > issues). >>> > >>> > Please git pull and build and try out single jvm thing and find bugs >>> > etc. >>> > >>> > You can follow the same steps at >>> > >>> > https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Automated+Product+Configuration >>> > with following changes. >>> > >>> > ########################################################### >>> > >>> > steps 1 & 2 are applicable >>> > >>> > 3. Copy the >>> > >>> > <source_home>/products/stratos/modules/distribution/target/apache-stratos-4.0.0-SNAPSHOT.zip >>> > file, and add it to the <stratos-pack-path> folder. >>> > >>> > 4. correct >>> > >>> > 5. Download >>> > >>> > http://www.apache.org/dyn/closer.cgi?path=/activemq/apache-activemq/5.8.0/apache-activemq-5.8.0-bin.tar.gz >>> > and copy the tar file to the <stratos-pack-path> folder. >>> > >>> > 6. correct >>> > >>> > 7. Download hawtbuf-1.2.jar from >>> > >>> > http://repo1.maven.org/maven2/org/fusesource/hawtbuf/hawtbuf/1.2/hawtbuf-1.2.jar >>> > and copy it to the <stratos-pack-path> folder. >>> > >>> > Also, In activemq 5.8 case you need following jars (these can be taken >>> > from >>> > activemq lib directory); >>> > activemq-broker-5.8.0.jar >>> > >>> > activemq-client-5.8.0.jar >>> > >>> > geronimo-j2ee-management_1.1_spec-1.0.1.jar >>> > >>> > geronimo-jms_1.1_spec-1.1.1.jar >>> > >>> > Copy the above jars to the <stratos-pack-path> folder. >>> > >>> > 8. Update the following configurations in the stratos-setup.conf file, >>> > which >>> > is found in the <setup-path>/conf/ directory. >>> > >>> > export setup_path= #path to stratos-installer directory >>> > export stratos_pack_path= #Path to stratos-packs directory >>> > >>> > export >>> > >>> > mysql_connector_jar=$stratos_pack_path/"mysql-connector-java-5.1.29-bin.jar" >>> > #mysql connector jar file name >>> > >>> > export stratos_path= #Folder which stratos will be installed >>> > >>> > export JAVA_HOME= #Java home path >>> > >>> > export log_path=/var/log/apache-stratos >>> > >>> > export host_user="" #A host user account for the machine which run >>> > Stratos >>> > component(s) >>> > >>> > export stratos_domain="stratos.apache.org" >>> > >>> > export machine_ip="127.0.0.1" >>> > export offset=0 >>> > >>> > export mb_ip="127.0.0.1" # Machine ip on which mb run >>> > export mb_port=61616 #default port which the message broker service >>> > runs - >>> > it's 61616 in activemq case. >>> > >>> > #cep_artifacts_path : Enter the folder path that contains the CEP >>> > artifact >>> > files, which are in the <source_home>/extensions/cep/artifacts/ >>> > directory. >>> > This is usually <incubator-stratos>/extensions/cep/artifacts >>> > export cep_artifacts_path= #Folder path containing cep artifacts files >>> > >>> > >>> > export puppet_ip="127.0.0.1" # Machine ip on which puppet master run >>> > >>> > export puppet_hostname="puppet.stratos.com" # Host name given to >>> > identify >>> > the puppet master >>> > >>> > # puppet_environment is not necessary to change, if you do not have any >>> > specific configuration >>> > export puppet_environment="stratos" # Name of puppet environment >>> > >>> > # IaaS Providers >>> > # enable relevant sections and configure properties >>> > >>> > # userstore database configuration >>> > export userstore_db_hostname="localhost" >>> > export userstore_db_schema="userstore" >>> > export userstore_db_port="3306" >>> > export userstore_db_user="root" >>> > export userstore_db_pass="root" >>> > >>> > >>> > 9. Run following commands: >>> > >>> > cd $setup_path #move to the stratos-installer directory >>> > sudo ./stratos-setup.sh -p "all" >>> > >>> > This would set up activemq and Stratos single JVM and starts them up. >>> > >>> > >>> > ############################################################################### >>> > >>> > PS: >>> > >>> > * Currently you cannot start profiles (there're some issues, needs to >>> > be >>> > fixed). >>> > * Currently there's no way to skip MB installation, it's great if >>> > someone >>> > can tweak the script for that. >>> > * Scripts are bound to activemq, need to generalize it. >>> > * If you want to use a different ActiveMQ version, you have to edit, >>> > conf/stratos-setup.conf; >>> > export mb_path=$stratos_path/"apache-activemq-5.8.0" >>> > export >>> > mb_pack_path=$stratos_pack_path/"apache-activemq-5.8.0-bin.tar.gz" >>> > >>> > etc. >>> > >>> > >>> > -- >>> > Best Regards, >>> > Nirmal >>> > >>> > Nirmal Fernando. >>> > PPMC Member & Committer of Apache Stratos, >>> > Senior Software Engineer, WSO2 Inc. >>> > >>> > Blog: http://nirmalfdo.blogspot.com/ >>> >>> >>> >>> -- >>> Check out my professional profile and connect with me on LinkedIn. >>> http://lnkd.in/cw5k69 >> >> >> >> >> -- >> Best Regards, >> Nirmal >> >> Nirmal Fernando. >> PPMC Member & Committer of Apache Stratos, >> Senior Software Engineer, WSO2 Inc. >> >> Blog: http://nirmalfdo.blogspot.com/ > > > > > -- > Best Regards, > Nirmal > > Nirmal Fernando. > PPMC Member & Committer of Apache Stratos, > Senior Software Engineer, WSO2 Inc. > > Blog: http://nirmalfdo.blogspot.com/ -- Check out my professional profile and connect with me on LinkedIn. http://lnkd.in/cw5k69
