I'm connecting via Port A to the production DB and Port B goes to the Test-DB. Currently I copied the whole Formspider/ tree to Formspider-text/ and set up different ports in config.xml. Works, but is ugly.

Anyone got an idea how to easily deploy formspider a second time to the same tomcat?

asked 02 Dec '14, 10:55

dipr's gravatar image

accept rate: 0%

Tomcat has ..../tomcat6/conf/context.xml U can describe connection resource to test db and and production db. every connection has name like :
<resource name="jdbc/formspider_ds_test" auth="Container" type="oracle.jdbc.pool.OracleDataSource" driverclassname="oracle.jdbc.driver.OracleDriver" factory="oracle.jdbc.pool.OracleDataSourceFactory" url="jdbc:oracle:thin:@xxxxxxxxxx:1521:xxx" user="FORMSPIDER" password="xxxxxxxx" connectioncachingenabled="true" connectioncacheproperties="{MinLimit=5, MaxLimit=300, InitialLim it=5, ConnectionWaitTimeout=30 InactivityTimeout=600, TimeToLiveTimeout=600, Aba ndonedConnectionTimeout=600, PropertyCheckInterval=300 ValidateConnection=true}"/>

In tomcat .../tomcat6/webapps deploy or copy like: .../tomcat6/webapps/formspider_prod/ and .../tomcat6/webapps/formspider_test/

to /tomcat6/webapps/formspider_prod/WEB-INF/web.xml file, put connection resource name from context.xml for production DB connection.

to /tomcat6/webapps/formspider_test/WEB-INF/web.xml file, put connection resource name from context.xml for test DB connection.


answered 03 Dec '14, 04:55

AlfAbetas's gravatar image

accept rate: 11%

thx for the very detailied description!

(03 Dec '14, 14:46) dipr

Hi dipr,

It is also possible to use Formspider Installer to deploy Formspider Middletier. Just select "Formspider Middletier Components" and proceed installation.



answered 03 Dec '14, 09:27

Serdar's gravatar image

Serdar ♦♦
accept rate: 12%

Would be truly additive to another formspider already existing in the target tomcat?

(03 Dec '14, 14:47) dipr
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 02 Dec '14, 10:55

Seen: 2,011 times

Last updated: 03 Dec '14, 14:47

© Copyright Gerger 2017