-
Dec 5th, 2011, 12:13 PM
#1
tcServer startup parameters in STS 2.8.1
Hi,
I'm trying to launch a (Spring Batch Admin -enabled) webapp in STS, and I need to pass a startup parameter. (According to http://static.springsource.org/sprin...g-started.html I need -DENVIRONMENT=something)
How do I pass Tomcat a startup parameter if I deploy/run from within STS?
If I run Tomcat on the command line, I would usually put a custom startup parameter CATALINA_OPTS in CATALINA_{HOME|BASE}/bin/setenv.sh
I put some debug "touch /tmp/somerrandomtext" or echo statements in all the catalina.sh and setenv.sh I could find in the vfabric folder, with no side effects, and this tells me that STS runs Tomcat in some other way.
(jinfo on my processes also don't show the new parameter)
Please advise,
Thanks,
Juan
Last edited by opyate; Dec 6th, 2011 at 04:14 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules