[GLASSFISH-19053] Implement new predefined JNDI name java:comp/InstanceName Created: 05/Sep/12  Updated: 15/Nov/12  Resolved: 15/Nov/12

Status: Closed
Project: glassfish
Component/s: naming
Affects Version/s: 4.0
Fix Version/s: 4.0_b64_EE7MS2

Type: New Feature Priority: Major
Reporter: Nigel Deakin Assignee: guojun.shan
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: 2 weeks, 6 days, 19 hours
Time Spent: 5 hours
Original Estimate: 3 weeks

Tags: ee7platspec, jms-2-implementation

 Description   

In the draft Java EE 7 platform spec, section EE 5.16 "Application Server Instance Name" states that:

A component may access the name of the application server instance in which it is executing using the pre-defined JNDI name java:comp/InstanceName. This name is represented by a String object. If the application has been deployed into a clustered application server, this name identifies the application server instance within the cluster. If the application server is not clustered, it is the empty string.

This issue requests the implementation of this feature.



 Comments   
Comment by Nigel Deakin [ 05/Sep/12 ]

This issue blocks MQ-193

Comment by shreedhar_ganapathy [ 18/Oct/12 ]

Assigning to Guojun to look into implementing this based on Ed Bratt's request.
The implementation is required for JMS integration work to progress.

Comment by guojun.shan [ 19/Oct/12 ]

sorry, I haven't found this part in the latest jsr342:
http://jcp.org/en/jsr/detail?id=342

Comment by Nigel Deakin [ 19/Oct/12 ]

The latest draft of Java EE 7 is at
http://java.net/projects/javaee-spec/downloads/download/JavaEE_Platform_Spec_EDR2_candidate.pdf

(This is a draft of the "second early draft" and will be superseded by the official "second early draft" when it is released)

Nigel

Comment by Tom Mueller [ 19/Oct/12 ]

Targeting for 4.0 release because these are Java EE 7 RI/SDK related.

Comment by guojun.shan [ 24/Oct/12 ]

I think 3 weeks is ok.that should include review and adding dev tests. progress of review is hard to be estimated. and current naming dev test is still broken in 4.0.

Comment by guojun.shan [ 25/Oct/12 ]

how can I get current application server instance name in Glassfish?

Comment by Nigel Deakin [ 25/Oct/12 ]

If you're asking me, I don't know. That's a question for the GlassFish team.

Comment by guojun.shan [ 02/Nov/12 ]

I think there are some discusstions in developers about the instance name.
can you re-define the requirement if needed?
we're blocked now.

Comment by Nigel Deakin [ 14/Nov/12 ]

This issue is superseded by GLASSFISH-19347 and is no longer required.

Generated at Sun May 24 22:08:05 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.