Skip to main content

a primitive property bound to jndi

4 replies [Last post]
metebalci
Offline
Joined: 2007-02-07
Points: 0

Hello,

Can someone describe me step by step how I can bound a string property (name and value) to existing JNDI tree in gf2 ? If it is not possible by default, I am willing to write an ObjectFactory. But still, can someone describe me one ? I wonder if I am too tired or it is really not that straight forward.

Thank you.

Mete

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
June.Parks@Sun.COM

Check out pages 261 - 263 of the PDF attached to this doc comments page:

http://wiki.glassfish.java.net/Wiki.jsp?page=DeveloperSGuide

HTH,

June Parks

On 10/27/09 02:18 PM, glassfish@javadesktop.org wrote:
> Hello,
>
> Can someone describe me step by step how I can bound a string property (name and value) to existing JNDI tree in gf2 ? If it is not possible by default, I am willing to write an ObjectFactory. But still, can someone describe me one ? I wonder if I am too tired or it is really not that straight forward.
>
> Thank you.
>
> Mete
> [Message sent by forum member 'metebalci' (mete@ieee.org)]
>
> http://forums.java.net/jive/thread.jspa?messageID=369545
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

metebalci
Offline
Joined: 2007-02-07
Points: 0

Thanks. Does "Built- in Factories for Custom Resources" also available in gf v2ur2 ?

Also, why it returns a reference (after lookup) instead of the value object itself ? is there any reason for this ? Does all custom resources behave like this ? and is this behavior consistent among application servers ?

June.Parks@Sun.COM

On 10/27/09 02:43 PM, glassfish@javadesktop.org wrote:
> Thanks. Does "Built- in Factories for Custom Resources" also available in gf v2ur2 ?
>
Unfortunately, no.
> Also, why it returns a reference (after lookup) instead of the value object itself ? is there any reason for this ? Does all custom resources behave like this ? and is this behavior consistent among application servers ?
>
I defer to the engineers for these answers.

June Parks
> [Message sent by forum member 'metebalci' (mete@ieee.org)]
>
> http://forums.java.net/jive/thread.jspa?messageID=369548
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

jr158900
Offline
Joined: 2005-04-13
Points: 0

Hi Mete,

No, lookup should return the actual "restype" as configured in custom-resource.
Could you please explain how does your application do lookup of the resource ?
If possible can you post the configuration of custom-resource in domain.xml
and
deployment descriptors (resource-ref that is configured for the resource) ?

You can refer sample templates for custom-resources :
GLASSFISH_INSTALL_DIR/lib/install/templates/resources/custom/README
GLASSFISH_INSTALL_DIR/lib/install/templates/resources/custom/primitives_string_custom_resource.xml

-Jagadish