Este conteúdo não está disponível no idioma selecionado.

13.5.5. ScriptingAction


Expand
Class org.jboss.soa.esb.actions.scripting.ScriptingAction
Executes a script using the Bean Scripting Framework, receiving the message, payloadProxy, action configuration and logger as variable input.
  1. The Bean Scripting Framework does not provide an API to precompile, cache and reuse scripts. Because of this, each execution of the ScriptingAction will go through the compile step again. Please keep this in mind while evaluating your performance requirements.
  2. When including BeanShell scripts in your application, Red Hat advises you should use a .beanshell extension instead of .bsh, otherwise the JBoss BSHDeployer might pick it up.
Expand
Table 13.14. ScriptingAction Properties
Property Description Required
script
Path (on classpath) to script.
supportMessageBasedScripting
Allow scripts within the message.
language
Optional script language (overrides extension deduction).
No
Expand
Table 13.15. ScriptingAction Processor Script Binding Variables
Variable Description
message
The Message
payloadProxy
Utility for message payload (MessagePayloadProxy)
config
The action configuration (ConfigTree)
logger
The ScriptingAction's static Log4J logger (Logger)
<action name="process" class="org.jboss.soa.esb.scripting.ScriptingAction">
    <property name="script" value="/scripts/myscript.beanshell"/>
</action>
Copy to Clipboard Toggle word wrap

Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat