Configuring deployment attributes for a sender bean

Use this task to configure the deployment attributes for a sender bean.

Why and when to perform this task

You can specify deployment attributes on each EJB method.

Changes to the deployment attributes override the values defined when the sender 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 change the deployment attributes for a sender 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.
    For example, expand EJB Modules-> ejb_module_instance-> Session Beans then select the bean instance.
    A property dialog notebook for the component is displayed in the property pane.
  4. In the property pane, click the Extended Messaging tab.
  5. In the property pane, specify appropriate deployment attributes:
    Output port
    This is the name of the output port to be used to send messages.
    Enable handle late responses
    Select this checkbox if the sender bean is to handle late responses. If you select this checkbox, also specify the following properties: ReplyTimeout and Late response handler listener port name.
    Late response handler listener port name
    For a sender bean that has been developed to handle late responses, this is the name of the listener port to be used for late responses.
    Reply Timeout
    For a sender bean that has been developed to handle late responses, this is the time after which responses are considered late. This property is used if a response timeout is not specified on a sender method call.
  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. Assembly Server 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 .

Related tasks
Deploying an enterprise application to use extended messaging



Searchable topic ID:   tmc_depa2a
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_depa2a.html

Library | Support | Terms of Use | Feedback