Aplicaciones y bibliotecas

Las aplicaciones y bibliotecas son contenedores desplegables de recursos, como por ejemplo, flujos de mensajes, subflujos, definiciones de mensajes (archivos DFDL, XSD), archivos JAR, hojas de estilo XSL y archivos de WebSphere Adapters.

Aplicaciones

Una aplicación es un contenedor de todos los recursos que son necesarios para crear una solución. An application can contain WebSphere Message Broker resources, such as flows, message definitions, libraries, and JAR files.

At design time, you define references to the following items:
  • Zero or more message flow dependencies (such as a Java™ project or message set).
  • Zero or more libraries that contain reusable resources.

You use applications to group all the resources that are required to deliver an integration solution, enabling easier development and management. If you are developing resources for multiple integration solutions in the WebSphere Message Broker Toolkit, then consider grouping your resources into applications. The use of a library helps organization by grouping reusable resources together. This library can also be used by other applications, services, libraries, or Message Broker projects.

Applications typically contain message flows. If the message flow requires only one or two additional resources, such as one schema file and one ESQL file, consider storing all resources at the application level. But when you start to require multiple resources for your solution, or resources that might be shared with other solutions, consider putting the resources that your message flow requires into a library. That library can then be referenced by the application.

Applications provide runtime isolation whereby resources inside the application are not visible to other resources, such as message flows, libraries, or other applications that are running outside the application. Consider using applications if you need to ensure that updates to one group of deployed resources do not affect another group. For example, use an application when you want to control which flows pick up the latest version of an ESQL module. For examples of how to use applications to achieve runtime isolation, see Runtime isolation and resource sharing with applications and libraries.

Bibliotecas

Una biblioteca es una agrupación lógica de código relacionado y/o datos. A library typically contains reusable helper routines and resources such as subflows, ESQL modules, message definitions, maps, and Java utilities. Una biblioteca es útil para agrupar recursos del mismo tipo o función, para su reutilización o facilidad de gestión. Las bibliotecas son opcionales.

Consider using libraries for the following functions:
  • To group common types of resource (such as all your ESQL routines)
  • To group resources by function (such as all your error-handling routines)
  • To share routines and definitions across multiple teams, projects, or brokers
  • To use different versions of a coherent set of routines and definitions
Libraries can be referenced by applications, services, Message Broker projects, or other libraries.
  • If a library is referenced by an application, a copy of the referenced library is isolated at run time from resources outside the application. This copy of the library is not visible to resources outside the application.
  • If a library is referenced by a service, a copy of the referenced library is isolated at run time from resources outside the service. This copy of the library is not visible to resources outside the service.
  • If a library is referenced by an independent resource, the library is visible to all independent resources deployed in the same execution group as the library.

If you want to develop an integration solution where changes made to common resources can be deployed in one deployment operation without redeploying all your message flows and subflows, then you should define your message flows and subflows as independent resources within a Message Broker project or library that references the library that contains your common resources.

Para obtener un ejemplo de cómo utilizar aplicaciones y bibliotecas, consulte el ejemplo de Respuesta de solicitud coordinada. Puede ver información sobre los ejemplos sólo cuando utilice el centro de información que está integrado en WebSphere Message Broker Toolkit o el centro de información en línea. Puede ejecutar ejemplos sólo cuando utilice el centro de información que está integrado en WebSphere Message Broker Toolkit.

For an example of how you might convert your existing resources to applications and libraries, see Example: Conversion of Versión 7.0 resources to applications and libraries.

Consistency through the development, deployment, and operational management processes

Applications and libraries provide a consistent view of your resources through the development, deployment, and operational management processes. In WebSphere Message Broker Versión 7.0 and earlier versions, file types and concepts were different at each stage of the development process. Multiple project types were used in the WebSphere Message Broker Toolkit to contain different types of resource. No consistent way existed of reusing common components across all processes. However, applications and libraries span the WebSphere Message Broker Toolkit for development, the broker archive (BAR) file for deployment, and tools like WebSphere Message Broker Explorer for operational management.

This diagram contains screenshots taken from the Version 7 and Version 8 Toolkits, showing the different ways in which the resources are organized.

Visualización de aplicaciones y bibliotecas

Las aplicaciones y bibliotecas se muestran en la Vista Desarrollo de intermediario. También se muestran los recursos incluidos en una aplicación o biblioteca, tanto si una aplicación como una biblioteca hace referencia a ellos directa o indirectamente.

Los proyectos de flujo de mensajes se han sustituido por Message Broker projects en WebSphere Message Broker Versión 8.0 (para más información, consulte Message Broker projects). Migre los proyectos de flujos de mensajes siguiendo las instrucciones en Importación de recursos de versiones anteriores.

Las aplicaciones, las bibliotecas, los Message Broker projects y otro tipo de proyecto se representan mediante los iconos siguientes.
Icono Descripción
Icono para una aplicación Aplicación
Icono para una biblioteca Biblioteca
Icon for a Message Broker project Message Broker project
Icono para proyecto Java Proyecto Java
Icono para proyecto de conjunto de mensajes Proyecto de conjunto de mensajes

Las aplicaciones y bibliotecas que se han desplegado en un grupo de ejecución se visualizan directamente debajo del grupo de ejecución en WebSphere Message Broker Toolkit y WebSphere Message Broker Explorer. También puede ver las aplicaciones y bibliotecas desplegadas utilizando la API de Message Broker o el mandato mqsilist. Las bibliotecas a las que hacen referencia aplicaciones (es decir, bibliotecas privadas) se visualizan directamente debajo de la aplicación.

También puede especificar cómo se inicia una aplicación o flujo de mensajes una vez que se ha desplegado, o después de que se reinicie el intermediario, grupo de ejecución o aplicación contenedora. Puede elegir iniciar una aplicación o flujo manualmente, o que se inicie automáticamente. También puede elegir mantener el estado existente de una aplicación o biblioteca. Puede configurar el estado de ejecución utilizando el editor de archivo BAR, como se describe en Configurar la modalidad de inicio de flujos y aplicaciones durante el desarrollo. También puede utilizar el mandato mqsiapplybaroverride, como se describe en Establecer la modalidad de inicio de flujos y aplicaciones en tiempo de ejecución.

Puede personalizar el uso de aplicaciones y bibliotecas de las siguientes maneras:
Mantenimiento de versiones
Defina la versión de aplicaciones y bibliotecas, de la misma manera que para otros recursos desplegables.
Filtrado
Si se centra en una biblioteca o aplicación, la Vista Desarrollo de intermediario sólo muestra esa biblioteca o aplicación. Al visualizar proyectos, también puede filtrar recursos utilizando conjuntos de trabajo.

For detailed instructions about how to manage your resources by using applications and libraries, see Gestionar recursos de flujo de mensajes.

For a demonstration of how to start using applications and libraries, see IBM Education Assistant module: Applications and Libraries.

Avisos | Marcas registradas | Descargas | Biblioteca | Soporte | Comentarios

Copyright IBM Corporation 1999, 2013Copyright IBM Corporation 1999, 2013.

        
        Última actualización:
        
        Última actualización: 2013-09-23 03:03:05


Tema de conceptoTema de concepto | Version 8.0.0.3 | bc23060_