This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107837 - JMS Res admin/connection with same jdni name
Summary: JMS Res admin/connection with same jdni name
Status: RESOLVED DUPLICATE of bug 108448
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-22 13:57 UTC by nouar38
Modified: 2007-06-28 18:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
domain1 log with 2 jms created with ide with same jndi-name (64.44 KB, text/plain)
2007-06-22 14:00 UTC, nouar38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-06-22 13:57:30 UTC
NB 6.0 20070619 & GF v2 b50c

With a web project:

** add a JMS resource QueueConnectionFactory keep the default jndi name
jms/myQueue

** add a JMS resource admin-obj Queue keep the default jndi name
same default value as proposed previously.

==>> jndi name is not uniq 
Before the wizard uses digit myQueue_1, myQueue_2 each time called now is no more the case

** deploy the application ==>> error of deployment as expected.
but the connectionFactory is deployed

** update the sun-resources.xml file to have:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Resource Definitions //EN"
"http://www.sun.com/software/appserver/dtds/sun-resources_1_3.dtd">
<resources>
  <admin-object-resource enabled="true" jndi-name="jms/myQueue" object-type="user" res-adapter="jmsra"
res-type="javax.jms.Queue">
    <description/>
    <property name="Name" value="nana"/>
  </admin-object-resource>
  <connector-resource enabled="true" jndi-name="jms/myQueue" object-type="user" pool-name="jms/myQueue">
    <description/>
  </connector-resource>
  <connector-connection-pool associate-with-thread="false" connection-creation-retry-attempts="0"
connection-creation-retry-interval-in-seconds="10" connection-definition-name="javax.jms.QueueConnectionFactory"
connection-leak-reclaim="false" connection-leak-timeout-in-seconds="0" fail-all-connections="false"
idle-timeout-in-seconds="300" is-connection-validation-required="false" lazy-connection-association="false"
lazy-connection-enlistment="false" match-connections="true" max-connection-usage-count="0" max-pool-size="32"
max-wait-time-in-millis="60000" name="jms/myQueue" pool-resize-quantity="2" resource-adapter-name="jmsra"
steady-pool-size="8" validate-atmost-once-period-in-seconds="0"/>
</resources>

jndi-name changed to jms/myQueueFact connector-resource

** undeploy & deploy the project ==>> error
** try to delete the jms/myQueue Connector Resources with IDE action "Services/Connectors/Delete"
==>> error.

** only way to remove the resources from the domain.xml file
and to restart the instance.
Comment 1 nouar38 2007-06-22 14:00:50 UTC
Created attachment 44265 [details]
domain1 log with 2 jms created with ide with same jndi-name
Comment 2 Nitya Doraisamy 2007-06-28 18:14:10 UTC
Logic used by the wizards is common for providinf default name/jndiName(s)

*** This issue has been marked as a duplicate of 108448 ***