Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javaspace:jini://host?options

Examples

Sending and Receiving Entries

No Format

//Sending route
from("direct:input").to("javaspace:jini://localhost?spaceName=mySpace");

//Receiving Route
from("javaspace:jini://localhost?spaceName=mySpace&templateId=template&verb=take&concurrentConsumers=1")

In this case the payload can be any object inheriting from the Jini Entry.

Options

Name

Default Value

Description

spaceName

null

This is the JavaSpace name

verb

take

This is the verb for getting JavaSpace entries, it can be: take or read

transactional

false

if true, sending and receiving of entries is performed under a transaction

transactionalTimeout

Long.MAX_VALUE

the transaction timeout

concurrentConsumers

1

the number of concurrent consumer getting entries from the JavaSpace

templateId

null

if present, this option it's a Spring Bean id to be used as a template for reading/taking entries

...