Skip to Main Content
Cloud Platform

Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Post your ideas

Start by posting ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea

Help IBM prioritize your ideas and requests

The IBM team may need your help to refine the ideas so they may ask for more information or feedback. The offering manager team will then decide if they can begin working on your idea. If they can start during the next development cycle, they will put the idea on the priority list. Each team at IBM works on a different schedule, where some ideas can be implemented right away, others may be placed on a different schedule.

Receive a notification on the decision

Some ideas can be implemented at IBM, while others may not fit within the development plans for the product. In either case, the team will let you know as soon as possible. In some cases, we may be able to find alternatives for ideas which cannot be implemented in a reasonable time.

If you encounter any issues accessing the Ideas portals, please send email describing the issue to ideasibm@us.ibm.com for resolution.

For more information about IBM's Ideas program visit ibm.com/ideas.

Status Not under consideration
Created by Guest
Created on Feb 12, 2020

WAS traditional: Allow setting JMS sessions as unshareable from the application configuration

There's a known issue (limitation) when using connections to databases or messaging providers from for example servlets without using server-managed transactions. It's described here:

https://www.ibm.com/support/pages/common-reasons-why-connections-stay-open-long-period-time-websphere-application-server - Shared Connections with Local Transaction Containment
https://www.ibm.com/support/pages/how-change-shareable-unshareable-connections
https://www.ibm.com/support/knowledgecenter/SSEQTP_9.0.5/com.ibm.websphere.base.doc/ae/cdat_conshrnon.html

The workaround is to set connections as unshared. This can be done in 2 ways in general:
1. Unshareable in resource reference (= application level)
2. defaultConnectionTypeOverride, globalConnectionTypeOverride connection pool custom properties (= server level)

But exactly the same issue also affects JMS sessions in the case of the WebSphere MQ provider.
In this case, it's only possible to set sessions as unshareable at the server level.
- session.sharing.scope connection factory custom property (= server level)
https://www-01.ibm.com/support/docview.wss?uid=swg1PK59605

There's no possibility to configure sessions as unshareable at the application level.

This RFE asks to make it possible to set sessions as unshareable at the application level.
- Ideally, Unshareable in resource reference should also affect sessions since they're affected the same way as connections.
- If that isn't acceptable for some reason, make it possible via WebSphere specific deployment descriptor such as ibm-web-ext.xml, ibm-web-bnd.xml or deployment.xml used in enhanced ears.

This would make things more consistent and allow developers that workaround the issue via setting res-sharing-scope in resource reference to cover all possible cases and not depend on server-level settings.

Idea priority Medium
RFE ID 140154
RFE URL
RFE Product WebSphere Application Server
  • Admin
    Graham Charters
    Sep 20, 2021

    Thank you for the suggestion. The requirement does have merit, but looking at it with respect to our total backlog of requests we do not see sufficient interest in this enhancement to merit delivery any time in the foreseeable future. Given the unlikelihood that we would deliver this, we are declining the request rather than leaving it in an uncommitted state for an extended period of time. If you would like to discuss this decision further, please contact Graham Charters <charters@uk.ibm.com>.

  • Guest
    Oct 1, 2020

    To clarify, the session.sharing.scope property that was introduced in the fix for APAR PK59605 is a custom property that can be set on an MQ ConnectionFactory definition.
    Setting the property does not change the behaviour of Connections created from this factory, but sets whether Sessions created from those Connections (it is the Sessions, not the Connections that are enlisted in transactions) are created as shareable or unshareable.
    ConnectionFactories contain all the details that are used when connecting to an MQ queue manager (such as port, channel and clientID) and so it would be normal practice to have different ConnectionFactories for different applications.

    What this means is that the session.sharing.scope property is not strictly a server-level setting, rather it is a ConnectionFactory setting, and we would usually expect a 1-1 relationship between a ConnectionFactory and an application. Thus, it is already possible to use the existing custom property to define the sharable/unshareable behaviour of JMS Sessions at an effectively application level.