Commit Graph

34 Commits

Author SHA1 Message Date
Gary Russell
e16f084628 File Cleanup - Core 2016-06-04 10:40:57 -04:00
Gary Russell
40a535b140 INT-3352 RedisLockRegistry
JIRA: https://jira.spring.io/browse/INT-3352

Provid a global lock registry, initially for the correlating
message handlers.

INT-3252 Polishing

- Use a discrete key for each lock and use Redis EXPIRE
- Use an internal DefaultLockRegistry to improve latency
    when threads are using the same registry instance.

INT-3352 More Polish

- Put localLock.unlock() in a finally block.
- Unlock localLock if acquiring the RedisLock fails.

INT-3352 Polishing - PR Comments

- PR Comments
- Improve equals()

INT-3352 Add Aggregator Integration Test

- move lock registry to the `util` package
- Add an aggregator integration test

INT-3352 Add Distributed Aggregator Test

- Simulates a distributed environment with a shared message
    store and distinct lock registries.

INT-3352 More PR Comments

INT-3352 Add Multiple Registry Tests

- Add tests to verify expected behavior when different registries are used.
- Polish javadocs.
2014-04-06 07:48:31 +03:00
Gary Russell
345d831ec9 INT-3305 SFTP Close Session on Error
JIRA: https://jira.springsource.org/browse/INT-3305

Previously, if the channel can't be connected (e.g. if the server
does not support SFTP), the connection to the server remained open.

Close the session in the event of a failure.

Add test with the Apache SSHD server.
2014-03-05 16:16:02 +02:00
Gary Russell
36795e5ee8 INT-3069 Add Global Gateway Method Metadata
https://jira.springsource.org/browse/INT-3069

Provide a mechanism to specify headers and payload-expression that can
be applied to all methods in the gateway.

- Headers defined as 'default' are globally applied to all gateway methods.
- Also supports 'default-payload-expression'.
- Headers defined on a specific method override the global settings.
- An `@Header` in the interface is overridden by a specific <header/> for that method (current behavior)
- An `@Header` in the interface is NOT overridden by a  <default-header/>
- Add 3 new SpEL variables:
-- #methodName (synonym for #method - deprecated)
-- #methodString (a string representation of the method showing return type and arg types)
-- #methodObject (the Method object)

	<int:gateway id="sampleGateway"
			service-interface="org.springframework.integration.gateway.GatewayInterfaceTests.Bar"
			default-request-channel="requestChannelBaz">
		<int:default-header name="name" expression="#methodName"/>
		<int:default-header name="string" expression="#methodString"/>
		<int:default-header name="object" expression="#methodObject"/>
		<int:method name="baz">
			<int:header name="name" value="overrideGlobal"/>
		</int:method>
	</int:gateway>

INT-3069 Polishing - PR Comments

- Remove extra 'method' variables, just provide `gatewayMethod`.
- Parser improvements
- Schema now enforces default-header elements to precede method elements
- Doc polishing
2013-10-23 19:35:09 +03:00
Gunnar Hillert
6b4f67b153 INT-2668 - Improve the File Overwrite Handling
* Add *mode* attribute to XSD (supports APPEND, FAIL, IGNORE, REPLACE)
* Add test cases
* Add reference documentation

For reference: https://jira.springsource.org/browse/INT-2668

INT-2668 - Code Review Changes

INT-2688 fixed typo
2012-08-01 13:32:54 -04:00
Gunnar Hillert
121018190f INT-805 - Dynamically create directories
Dynamically create directories with file:outbound-channel-adapter

* add **directory-expression** attribute for File Outbound Channel Adapter and File Outbound Gateway
* add JUnit tests

For reference: https://jira.springsource.org/browse/INT-805

INT-805 Code Review

* Fixed Spelling
* Fixed Code Convention issues
* Add support for expressions that resolve to File
* Add more JUnit tests

INT-805 - Code Review Changes

* Combine destinationDirectoryExpression and destinationDirectory
* Fix Tests

INT-805 - Code Review

* Always apply *destination directory* validation for each message (including LiteralExpressions)

INT-805 - Code Review changes

INT-805 - Added 2 exclusions to .gitignore
2012-06-15 11:28:53 -04:00
Mark Fisher
57b1b1c600 polishing 2011-10-07 15:59:23 -04:00
Mark Fisher
10b2350953 updated .gitignore 2011-08-19 09:55:26 -04:00
Josh Long
6a2a368c3e INT-2062 2011-08-18 06:36:49 -07:00
Gunnar Hillert
3887f55055 #INT-1967 Standardize namespace pre-fixes in documentation 2011-07-31 15:28:21 -04:00
Iwein Fuld
57192121fb add build.log to .gitignore 2011-04-30 20:08:33 +02:00
Dave Syer
72166141d4 Add ignores 2010-12-11 08:49:06 +00:00
Chris Beams
536fda2200 Check in Gradle-generated poms for convenience (INT-1609)
For ease of use by those (a) more familiar with Maven or (b) relying
on m2eclipse support within Eclipse/STS, generated poms are now checked
in. Changes to these files will be overwritted on subsequent gradle
builds.

Any changes to project dependencies should first be reflected in
build.gradle; then run `gradle generatePom` or simply `gradle build`
to see the change reflected in the pom(s).

Note that org.springframework.integration.ip.tcp.TcpInboundGatewayTests
currently fails when running `mvn clean test` from the root. This
problem does not manifest when running `gradle clean test`. The latter
is what's most important; Gary has been contacted to take a look at the
former.

Issues resolved:
    INT-1609, INT-1610, INT-1611
2010-11-12 23:27:32 -08:00
Oleg Zhurakousky
7683d59f62 INT-1555 added tests for FTP and SFTP modules 2010-11-12 16:34:40 -05:00
Iwein Fuld
0dd3184f24 Add .idea directory to .gitignore 2010-11-12 15:46:36 +01:00
Chris Beams
a9c70aa1e7 Synchronize with latest buildSrc updates
buildSrc updated to use latest Gradle wrapper.  See buildSrc git log
for complete details; in short, eclipse JDT prefs are now auto-generated
and the gradle daemon is no longer 'on by default', but must be enabled
with --daemon or -Dorg.gradle.daemon=true.

* removed all existing jdt preferences files in favor of auto-generation.

* removed .springBeans from .gitignore; this file should be
  source-controlled for consistency and convenience.

* removed illegal @Override annotations.  Eclipse/STS now catch these
  properly!
2010-11-11 10:04:20 -08:00
Chris Beams
25e5756337 Initial cut of bundlor plugin 2010-11-09 10:55:19 -08:00
Chris Beams
7ea55fdc71 Add ability to generate poms for use at build time
Generate poms from Gradle metadata with

    `gradle generatePom`

This will create a root pom with a <modules> section as well as a pom
for every individual module.

These poms are suitable for use with m2eclipse (e.g., File->Import->
Existing Maven project), or at the command line for basic build goals
such as `mvn test`.

These poms are not capable of producing distribution artifacts or
deployment of artifacts.

pom.xml and target will remain in .gitignore as these artifacts are
transient and for developer convenience only.
2010-11-04 16:54:06 -06:00
Chris Beams
6cadd13f1a Merge branch 'gradle'
Conflicts:
	.gitignore
2010-10-28 14:31:05 -04:00
Chris Beams
677fca51a9 Major progress on Gradle port
Complete:
--------
- src/* documentation resources moved to 'docs' subproject

- docbook sources upgraded to Docbook 5

- formatted all docbook sources to strip tab characters and
  eliminate trailing whitespace

- all projects compile and test successfully

- all artifacts upload successfully to s3, static.sf.org, etc.

Remaining:
---------
- documentation L&F needs work. CSS, images, and highlighting aren't
  hooked up properly

- spring-integration-jdbc codegen bits in Maven POM need to be
  transcribed into gradle

- dependencies that were optional or provided scope in maven are
  currently 'compile' scope in Gradle.  Need to figure out support
  in Gradle to fix this.

- run through Eclipse classpath and project generation scenarios

- delete all Maven artifacts
2010-10-26 18:51:08 -04:00
Mark Fisher
2e800eb1ba added 'build' and .gradle to .gitignore 2010-10-26 13:04:40 -04:00
Chris Beams
1fc8980869 Ignore gradle artifacts 2010-10-25 17:47:20 -04:00
Dave Syer
26bd68f867 Fix compilation error 2010-10-25 11:11:05 -07:00
Dave Syer
e0dcf08b7e INT-1518: Provide crutch for broken RDBMS (DB2, Derby etc.)
- Externalize storeLock and LockInterceptor utility
- Add tests showing usage of tx interceptor
2010-10-17 16:54:38 -07:00
Iwein Fuld
b0a54a813d added idea artifacts to .gitignore 2010-09-10 13:38:59 +02:00
David Syer
278d16fde4 INT-1296: merge XSD types 2010-08-04 16:29:29 +00:00
Iwein Fuld
f8c2266787 BUILD: added some files to .gitignore 2010-07-26 11:00:44 +00:00
Iwein Fuld
ffe9e961fc updating .gitignore 2010-06-04 13:49:13 +00:00
Chris Beams
82515f8f1e first fully working and integrated mvn install 2010-05-28 18:13:05 +00:00
Chris Beams
c709590c2d added changelog, license, readme, and notice text files back to the project 2010-05-27 13:14:30 +00:00
Chris Beams
43310c9cab general pom cleanup
* normalizing version placeholders to use ${groupId}.version as a naming convention e.g.: 'org.springframework.version'
* added properties to parent pom <properties/> section
* spaces -> tabs
* removed empty newlines in poms (favor comments instead of newlines)
* gave all samples nice <name>s
* included ws-inbound-gateway in the samples parent pom <modules> section
* samples now try to run any **/*Tests.java, as per our general conventions
2010-05-19 09:41:37 +00:00
Iwein Fuld
3377dec0cd added .settings to .gitignore 2010-05-12 17:26:42 +00:00
Chris Beams
44448ea94f echo .springBeans >> .gitignore 2010-02-27 08:14:20 +00:00
Chris Beams
71a712a999 RESOLVED - INT-995: Change Eclipse .classpath to reference SI_IVY_CACHE instead of IVY_CACHE to avoid conflicts with other Spring projects 2010-02-27 01:09:47 +00:00