Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit 9eb7cb8

Browse files
srinivaskrishnanyaminikb
authored andcommitted
Fix for #21627 - 'Description' is not displayed in JMS Connection Factories (#21801)
1 parent 23e8e06 commit 9eb7cb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/appserver/admingui/common/src/main/java/org/glassfish/admingui/common/handlers/JmsResourceHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public static void getJmsResourcesInfo(HandlerContext handlerCtx) {
8989
String encodedName = URLEncoder.encode((String) one.get("name"), "UTF-8");
9090
String endpoint = prefix + encodedName;
9191
Map attrs = (Map) RestUtil.getAttributesMap(endpoint);
92+
String desc = null;
9293
if (isConnectionFactory){
9394
String poolName = URLEncoder.encode((String)attrs.get("poolName"), "UTF-8");
9495
String e1 = (String) GuiUtil.getSessionValue("REST_URL") + "/resources/connector-connection-pool/" + poolName;
@@ -98,13 +99,14 @@ public static void getJmsResourcesInfo(HandlerContext handlerCtx) {
9899
one.put("logicalJndiName", (lname==null)? "" : lname);
99100
one.put("encodedPoolName", poolName);
100101
one.put("objectType", (String) attrs.get("objectType"));
102+
desc = (String)poolAttrs.get("description");
101103
}else{
102104
one.put("resType", (String) attrs.get("resType"));
105+
desc = (String)attrs.get("description");
103106
}
104107
one.put("selected", false);
105108
one.put("enabled", (String) attrs.get("enabled"));
106109
one.put("encodedName", encodedName);
107-
String desc = (String)attrs.get("description");
108110
one.put("description", (desc == null)? "" : desc);
109111
}
110112
}catch(Exception ex){

0 commit comments

Comments
 (0)