Monday, December 26, 2011

Running CLUSTERED Broadleaf Ecommerce 1.5.0 Demo in Oracle GlassFish Server 3.1.1

Once you have Broadleafdemo running in Oracle Glassfish 3.1.1 (read http://lydonchandra.blogspot.com/2011/12/running-broadleaf-ecommerce-150-demo-in_26.html), you might want to run it in a clustered Glassfish configuration using Apache 2.2 + mod_jk connector.

Most of the instructions below are obtained from http://tiainen.sertik.net/2011/03/load-balancing-with-glassfish-31-and.html
1. From Glassfish admin, create a new cluster, say cluster1

2. Once cluster1 is created, go to Instances tab, and create 2 new instances, instance1 and instance2

3. Create mod_jk listener, go to Configurations > Network Config > Network Listener , and click on New.
3a. Enter "mod-jk" on Name textbox,
3b. enter 28009 as port number and
3c. make sure you check the JK Listener checkbox. Click Save.
3d. Stop and start the cluster

4. Download Apache 2.2 and mod_jk (http://tomcat.apache.org/download-connectors.cgi), extract Apache 2.2 and mod_jk.so into Apache22/modules directory

5. Add the following to Apache httpd.conf


Include conf/mod-jk.conf


6. create conf/mod-jk.conf

LoadModule jk_module modules/mod_jk.so
 
# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk1.log
 
# Set the jk log level [debug/error/info]
JkLogLevel info 
 
# Select the log format
JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"
 
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
               
# Mount your applications
JkMountFile conf/uriworkermap.properties               

# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
JkShmFile logs/jk.shm 
              
# Add jkstatus for managing runtime data
    JkMount status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1



7. Create worker.properties with the following information, put the correct ip address on worker.node1.host

worker.node1.port=28009
worker.node1.host=127.0.0.1
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.status.type=status
worker.loadbalancer.sticky_session=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1
worker.list=loadbalancer,status

8. Create uriworkermap.properties to tell mod_jk which webapp to mount

/=loadbalancer
/*=loadbalancer
/broadleafdemo=loadbalancer
/broadleafdemo/*=loadbalancer

9. Start httpd

53 comments:

  1. In the course of our work, my colleagues and I at The Yale Center for the Study of Learning and Attention have evaluated hundreds of children and scores of men and women for reading disabilities.


    Many are students and faculty at our university???s undergraduate, graduate and professional schools. One of these, a medical student named Gregory, came to see us after undergoing a series of problems in his first-year courses. He was quite discouraged.

    Although he had been diagnosed as dyslexic
    dyslexic in grade school, Gregory had also been placed in a program for gifted students. His native


    intelligence, together with extensive support and tutoring, had allowed him to graduate from high school with honors and gain admission to an Ivy League college. In college, Gregory had worked


    extremely hard and eventually received offers from several top medical schools. Now, however, he was beginning to doubt his own competence. He had no trouble comprehending the intricate relations among



    physiological systems or the complex mechanisms of disease; indeed, he excelled in those areas requiring reasoning skills. More problematic for him was the simple act of pronouncing long words or novel terms (such as labels used in anatomic descriptions); perhaps his least well-developed skill was rote memorization.

    ReplyDelete
  2. V P Associates Chartered Tax Advisors and Chartered Certified Accountants, represent an authoritative source on most aspects of tax and specialise in the following: Self-Assessment Tax advice, Self Employed Tax Returns, Company and Corporation Tax advice, Capital Gains Tax advice, Buy-To-Let Property Tax advice, Tax Planning and Tax Consultancy Services. With over 25 years of experience in the business of providing expert tax advice, V P Associates Chartered Tax Advisors offer valuable information to clients to help them save money, reduce and mitigate tax. V P Associates, Chartered Tax Advisors & Chartered Certified Accountants, are the first and foremost specialists in taxation matters. Visit their site for a comprehensive list of services: http://vpassociates.com/

    Accountants Horsham

    ReplyDelete
  3. V P Associates Chartered Tax Advisors and Chartered Certified Accountants, represent an authoritative source on most aspects of tax and specialise in the following: Self-Assessment Tax advice, Self Employed Tax Returns, Company and Corporation Tax advice, Capital Gains Tax advice, Buy-To-Let Property Tax advice, Tax Planning and Tax Consultancy Services. With over 25 years of experience in the business of providing expert tax advice, V P Associates Chartered Tax Advisors offer valuable information to clients to help them save money, reduce and mitigate tax. V P Associates, Chartered Tax Advisors & Chartered Certified Accountants, are the first and foremost specialists in taxation matters. Visit their site for a comprehensive list of services: http://vpassociates.com/

    Accountants Horsham

    ReplyDelete
  4. The client satisfaction relief from pain and numbness. Commitment to the development of human resources. Nerve numbness Chiropractic Doctor Peter Siam Dr. Peter Locke bone pain, hip pain, Lumbago. Siam chiropractic services, we have several ways to help restore health. • backache, headache pain, migraine pain or numbness of the limbs, herniated disc, Joint pain in the knee, Foot Pain and numbness, Accidents Sports, Accidents, Vehicles, Dizziness, Fatigue, Insomnia, injuries from heavy lifting, Shoulder Pain, Scoliosis, Strain, Tendon inflammation. With a great desire. Siam chiropractic ". For more please visit

    ไคโรแพรคติก/ chiropractic

    ReplyDelete
  5. Weight loss PhenQ is a all-natural dietary supplement for fat burning that combines the best qualities of many other supplements into a single pill.

    ReplyDelete
  6. Best Rotary laser level produce a level laser line around a work space in 360 degrees as a reference of level. From there, all types of work can be done from site ...

    ReplyDelete
  7. top 10 Best Bike Pumps in 2016 Click here to see our #1 pick on Amazon. Top 10 Bike Pumps of 2016 | Video Review. Best Mid-Range. Overall Rank: 7. Best Mid-Range.. SEE IT NOW.

    ReplyDelete
  8. viking appliance repair We provide maintenance and repair service for Viking Appliances: refrigerators, freezers, ranges, ovens, microwaves and more.

    ReplyDelete
  9. plumber A fast and trusted plumbing provider in Lincoln, CA, servicing the eastern Sacramento area.

    ReplyDelete
  10. sprinkler repair in ft lauderdale A sprinkler repair & installation team you can count on for great service at low prices.

    ReplyDelete
  11. California Your fully equipped, always ready plumbing solution in Morgan Hill.

    ReplyDelete
  12. roof installation and replacement Fast & professional roof repair and installation services.

    ReplyDelete
  13. Real Caller: Free, Easy and simple phone number lookup

    -Call Blocker : block unwanted phone calls and messages (ios 10.0 ) or later
    - Easily find any phone number, if the number is landline or mobile number, domestic or international number.
    - Identify Spam quickly and never pick up an UN-wanted calls
    - Free phone number lookup
    - Offline mode: Recent Logs use it in offline mode works without internet connection
    - Name Lookup using the Search Function to find People or business
    - Phone book: Some things are Better with Real Caller
    * No more wrong contacts!
    * Avoid sending message or calling to the wrong party
    * Recover your lost phone book
    * Find friends, colleagues and family contacts
    - Caller identification: Too many calls from unknown numbers? Decide whether to accept or Reject a call!
    - Places: Search for any place near you, find it's contact info or locate directions.
    - search for restaurants, movies theaters, entertainment and much more!
    - Real Caller Telephone Directory with Reverse phone number lookup

    ReplyDelete
  14. how to save electricity

    Weird Box helps save electricity by 25%, find out more now.

    ReplyDelete
  15. marketplace shopping cart That extension is the Marketplace Multi-Vendor Module, which lets you ... Opencart, the open source shopping cart solution, works wonders for ...

    ReplyDelete


  16. Cheap Hair Extensions wholesale fast delivery and free

    shipping for your business in just virgin wig online stores

    ReplyDelete
  17. Hemp Oil ONLINE SHOPPING BRAND NEW CBD PRODUCTS AND TRUST IN THE QUALITY OF OUR CBD...!!!

    ReplyDelete
  18. voyance par tel Your free voyante par téléphone is waiting for your call to the 0892 22 20 22 to deliver you a complete voyance par tel, and permits you to see the future. Love relationship, work, family... you got questions We offers you answers.

    ReplyDelete
  19. I started doing web design in 1998, I have been making my living solely online since 2009. It was in 2007 I started a journey into the Internet world that would change my life. So, you can guess I watch trends very closely and I still devote 1 day a week to learning something new and keeping up with changes in the industry. We can all agree the Internet has exploded but the rush to sign up Local Businesses has really just boomed in the last 6 months or so. Every media or Yellowbook salesman soon found that sales were decreasing and it was harder to sell the big yellow book and started jumping on programs to sell SEO or any online service.
    Visit site:
    http://seo1blogger.blogspot.com/
    http://seocheapseller.blogspot.com/

    ReplyDelete
  20. dentist evansville inDR. MAX LINGO’S EVANSVILLE INDIANA DENTAL SERVICES.

    ReplyDelete
  21. mens dress shoes Custom mens shoes online.Nice selection of handmade footwear.Everything from casual to luxury.See designer exotic python boots to ostrich slip on loafers.

    ReplyDelete
  22. Buy Online The World’s Best Electric Wheelchair At Cheap Rates...

    ReplyDelete
  23. Nice blog post that you have written. I would also like to know how you feel about my blog. You see buying gadgets and electronics online is now a new craze and people really need to know which are the best, the newest or the latest of these. Because of this we have started a blog to feature the best laptops, 4K TVs, best gadgets reviews online.

    ReplyDelete
  24. Motorcycle Accessories Doing your first track day on your motorcycle what do you need to know, 15 things to check|Motorcycle Helmet reviews and great helmets to own|Motorcycle safety checks to be done before riding, tools required to do the checks|Reviews motorcycle gear and accessories.

    ReplyDelete
  25. Pro dental probiotics Do you want to get rid of your bad breath for good try Pro Dental Probiotics a natural halitosis cure.

    ReplyDelete
  26. HOKIBET88 Master Agen Judi Sbobet Online ucapkan terima kasih kepada Pencinta Judi Bola dan Casino Online yang telah berkenan berkunjung dan mempercayakan permainan Judi Online hanya di HOKIBET88 Agen SBOBET, Agen Judi, Agen Casino & Bandar Bola terbaik terpercaya di Indonesia yang menyediakan banyak permainan terlengkap hanya untuk Pencinta Judi Bola dan Casino Online.

    Daftar dan Bermain Judi Bola dan Casino Online hokibet88.net adalah Agen SBOBET, Bandar SBOBET, Agen Judi, Agen Casino & Bandar Bola terbaik terpercaya di Indonesia. HOKIBET88 Master Agen Judi Sbobet Online juga adalah salah satu Agen Judi Bola dan Poker Online terbesar yang berdedikasi memberikan pelayanan terbaik kepada Pencinta Judi Bola dan Casino Online.

    Bagi Pencinta Judi Bola dan Casino Online yang belum tergabung dengan Daftar dan Bermain Judi Bola dan Casino Online hokibet88.net segera bergabunglah bersama HOKIBET88 Master Agen Judi Sbobet Online, karena HOKIBET88 Master Agen Judi Sbobet Online adalah Agen Judi Online & Bandar Sbobet Resmi Terbaik dan Terpercaya.

    Jadi HOKIBET88 Master Agen Judi Sbobet Online bukan hanya Agen Bola Terbaik dan Agen Bola Sbobet tempat Pencinta Judi Bola dan Casino Online bermain Taruhan Bola, HOKIBET88 Situs Terbaik Agen Judi Sbobet Online Terpercaya juga menyediakan berbagai permainan lengkap lainnya yang dapat member HOKIBET88 Master Agen Judi Sbobet Online nikmati.

    ReplyDelete
  27. AGEN TARUHAN PIALA DUNIA Agen Bola Piala Dunia 2018 Sebagai Agen Taruhan Bola Terpercaya di Indonesia kembali menyediakan jasa pembuatan account betting Online pada situs situs Taruhan bola online tertentu. Dengan Kepercayaan yang diberikan para member kepada Agen Taruhan Bola, Kini Agen Taruhan Bola telah menjadi Agen Judi Bola Terpercaya yang terbaik di Indonesia.Beragam jenis permainan Taruhan Bola Online seperti Sportsbook yang terdiri dari SBOBET, IBCBET, dll. Casino Online seperti 338A Live Casino, dll. Togel Online seperti Togel TOTO dan LiveTogel.Segera Bergabung bersama Agen Taruhan Bola untuk memulai permainan judi bola online terbaik sepanjang masa.

    ReplyDelete



  28. ap?f?a?e?? t?µe? ? eta??e?a Apofraxeis, d?ast????p??e?ta? st? ???? t?? s??t???s??, ap?f?a???, ?a?a??sµ?? ap??ete?t???? a????? ?a? µetaf???? ??µ?t?? ap? t? 1960. ??a??t??ta? p???et? eµpe???a ?a? ta p?? s??????a ap?f?a?t??? µ??a??µata d?asfa?????µe t?? ?GG??S? t?? e??as??? µa?, µe ?????? ??S??S ?a? ta??tat??? ??????? e??p???t?s??.

    ReplyDelete
  29. Best Aroma rice cooker The best Aroma small rice cooker is simplified your work and cut your labor mainly by saving time. Totally different models of it have some useful functions. You’ll be able to monitor the amendment of state time and temperature clearly with it. Except that, these normal area gadgets unit low cost in worth too. You need to not worry relating to money issue. Multiple functions with smart setting Associate in Nursing configuration presents an exquisite amendment of state experience for you. On completely totally different occasions, you will prepare varied things by practice an identical cooking utensil.

    ReplyDelete
  30. steroid-life is the elite since 2012 the best specialists in advice and online sales of steroids, Peptides, HGH, Testosterone, Sarm's ... To better know your ambitions and your expectations or for all your questions, we commit ourselves to to appoint a personal and experienced coach.

    They are available by email or live online chat 7/7 h24. All our brands are authentic and carefully selected, they are certified and are the best available on the market.

    We have set up a CB payment as well as a customs insurance loss or breakage of your parcel as well as the real-time follow-up of your order after shipment for you ease your purchases on our sites

    www.steroid-life.com and www.steroid-life.eu !!!

    ReplyDelete
  31. slotxo
    is the hottest new online casino app that can now be played on mobile phones. Whether it is Android or iOS, you can play anywhere, anytime, comfortably, beautiful graphics, realistic sound system, thrilling sound. There is a clear play classification. There are many game modes to choose from. And there are many casino games to choose from Online slots, fish shooting games, roulette, car racing, horse racing, baccarat with high return rates, easy winning opportunities, jackpot break most often Making the player profitable is not difficult
    https://www.168slotxo.net

    ReplyDelete
  32. Hoover floormate deluxe review whoever's cleaning your hard floors do they just simply push the dirty water around that's why I used the amazing new Hoover FloorMate deluxe. it washes and dries all at the turn of a dial it's twin tanks keep dirty water separate from clean water while it's spin scrub brushes safely scrub my floors including the ground leaving them deep down clean and there's even a separate brush for gently cleaning my delicate wood floors leaving dirt no place to hide it also dries incredibly fast just look how much the formate deluxe has picked up the new Hoover FloorMate deluxe the perfect cleaner for my hard floors.

    ReplyDelete
  33. 1xbet yeni adresi 1xbet Türkiye, online bahis şirketi hakkında giriş ve inceleme bilgileri. Onebahis firması için 2020 güncel yeni giriş adresi, ödemeler ve üyelik işlemleri için detaylı bilgiler, 1xbahis sayfamızda yer almakta.

    ReplyDelete
  34. meal kits Making cooking a little easier. It's hard, it takes time and who's got the time after a long day of work, looking after kids and being on your feet all day ? I bet you don't and neither do I.. making cheap and tasty modern day meal kits the new normal among all the changes going on in our world today.

    ReplyDelete
  35. BUY SPOTIFY PLAYS REAL PLAYS TO BOOST YOUR MUSIC.
    We will promote your tracks and give you very good promotion Buy spotify plays

    ReplyDelete
  36. white xanax bars On the other hand, if one is experiencing more chronic and frequent anxiety, they may usually be prescribed Xanax 2mg. This dosage is stronger and helps treat insomnia. This dosage provides relief for 11 hours, making it suitable to use at night in order to enjoy a restful and uninterrupted sleep.

    ReplyDelete
  37. Addictions facts Addiction stands as the top public health problem in America outstanding all other major diseases including stroke, heart diseases and even cancer. The population of addicts is far larger than the patients suffering from the three mentioned diseases in America with sufferers ranging in millions.

    ReplyDelete
  38. British shorthair for sale We have been branded as the best cattery for breeding healthy kittens and puppies ready for a home.

    ReplyDelete
  39. legit online casinos that pay real money Compare the best legit online casinos that pay real money including the best crypto casinos, best mobile casinos and the best online casinos in 2021

    ReplyDelete
  40. motherhood CO.MOM is a fun new online magazine and social network community created by moms for moms. Read interesting articles, get advice from our agony aunt, aunt\y anne, learn how to earn an income online with our guru debbie or you can even seek medical advice from our resident physician dr samantha and relax while checking out the latest horoscopes from our trained mystic. Theres even a thriving forum community where moms of the world can get together and enjoy good conversation along with lots of other fun ways to kill some time with a cuppa when taking a break from being super mom at co.mom.

    ReplyDelete
  41. Need a Perfect Business Centers in Dubai? Find the Best Business Centers in Dubai, UAE, cheapest business center for rent on Sheikh Zayed Road.

    ReplyDelete
  42. Thankyou for sharing an informational blog. To know about Integrated Marketing Agency, please do refert to our website https://technians.com/agency/

    ReplyDelete