Configuring deployment attributes for a receiver bean

Use this task to configure the deployment attributes for a receiver bean for use with the extended messaging service.

Why and when to perform this task

You can specify these deployment attributes on each EJB method, as part of the deployment of the receiver bean. Changes to the deployment attributes override the values defined when the receiver bean was developed and deployment code was generated for the application.

You can configure the deployment attributes of an application by using the Deployment Descriptor Editor of WebSphere Studio Application Developer or the Assembly Toolkit.

This task description assumes that you have an EAR file for an application component, that can be deployed in WebSphere Application Server. For more details about using the Assembly Toolkit, see Assembling applications with the Assembly Toolkit.

To configure the deployment attributes for a receiver bean, you can use the Assembly Toolkit to complete the following steps:

Steps for this task

  1. Starting the Assembly Toolkit
  2. Create or edit the application EAR file.
    For example, to change attributes of an existing application, use the import wizard to import the EAR file into the Assembly Toolkit. To start the import wizard:
    1. Click File-> Import-> EAR file
    2. Click Next, then select the EAR file.
    3. Click Finish
  3. In the J2EE Hierarchy view, right-click the component instance, then click Open With > Deployment Descriptor Editor.
    A property dialog notebook for the component is displayed in the property pane.
  4. In the property pane, click the Extended Messaging tab.
  5. Specify appropriate deployment attributes:
    For example:
    Method policies
    Add or remove method policies. To add a new method policy, complete the Method policy name and Method policy description fields, then click Add. To remove a method policy, select its name in the list displayed, then click Remove.
    Input port
    For an application-callable receiver bean, this is the name of the input port to be used to receive messages.
    Message selector
    For an application-callable receiver bean, this is a string used to select messages to be received.
  6. Save your changes to the deployment descriptor.
    1. Close the deployment descriptor editor.
    2. When prompted, click Yes to indicate that you want to save changes to the deployment descriptor.
  7. Verify the archive files.
  8. Generate code for deployment for EJB modules or for enterprise applications that use EJB modules.
  9. (Optional)   Test your completed module on a WebSphere Application Server installation. Right-click a module, click Run on Server, and follow the instructions in the displayed wizard. Note that Run on Server works on the Windows, Linux/Intel, and AIX operating systems only; you cannot deploy remotely from the Assembly Toolkit to a WebSphere Application Server installation on a UNIX operating system such as Solaris.

    Important: Use Run On Server for unit testing only. The Assembly Toolkit controls the WebSphere Application Server installation and, when an application is published remotely, the Toolkit overwrites the server configuration file for that server. Do not use on production servers.

    For instructions on remote testing, see the article "Setting Up a Remote WebSphere Application Server in WebSphere Studio V5" at http://www7b.boulder.ibm.com/wsdd/techjournal/0303_yuen/yuen.html .

What to do next

After assembling your application, use a systems management tool to deploy the EAR file onto the application server that is to run the application; for example, using the administrative console as described in Deploying and managing applications.

Related tasks
Deploying an enterprise application to use extended messaging



Searchable topic ID:   tmc_depa1a
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/cmm/tasks/tmc_depa1a.html

Library | Support | Terms of Use | Feedback