# setLibraryName only with Natural Security?

**URL:** <https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [June 18, 2008, 3:04pm UTC](https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354 "2008-06-18T15:04:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [June 18, 2008, 3:04pm UTC](https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354/1 "2008-06-18T15:04:33Z")

</div>

Is the usage of the Method setLibraryName restricted only to Natural with Natural Security?

I have a Method which makes an setLibraryName. If i use a Natural with Natural Security and setNaturalLogon(true) then i have no Problem, but if i use another Natural without Natural Security the setLibraryName will have no function. Then i every time get the default Library.

Regards  
Sascha

---

<div class="post-metadata">

**Author:** ![Matthew1](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew1](https://techcommunity.softwareag.com/u/Matthew1)\
**Post date:** [June 19, 2008, 4:37pm UTC](https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354/2 "2008-06-19T16:37:37Z")

</div>

Hi Sacha,

There are some differences in how the various RPC Servers react to this method. The various situations are best explained in the documentation

[Documentation](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx8/workbench/workbench_commonFeatures.htm#Natural_Logon_or_Changing_the_Library_Name)

But for your specific problem it should suffice to say that the library name is considered only if Natural Logon is forced, even if the Natural RPC Server is running without Natural Security.  
If Natural Logon is not given, a Natural RPC Server (under Natural Security or Non-security) will not consider the library name.

If you are using a different RPC Server (C or Java for instance) the situation might be completely different though. In that case, please refer to the documentation link I already provided above.

Regards,

---

<div class="post-metadata">

**Author:** ![Matthew1](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@Matthew1](https://techcommunity.softwareag.com/u/Matthew1)\
**Post date:** [June 19, 2008, 4:37pm UTC](https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354/3 "2008-06-19T16:37:58Z")

</div>

Hi Sascha,

There are some differences in how the various RPC Servers react to this method. The various situations are best explained in the documentation

[Documentation](http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/exx8/workbench/workbench_commonFeatures.htm#Natural_Logon_or_Changing_the_Library_Name)

But for your specific problem it should suffice to say that the library name is considered only if Natural Logon is forced, even if the Natural RPC Server is running without Natural Security.  
If Natural Logon is not given, a Natural RPC Server (under Natural Security or Non-security) will not consider the library name.

If you are using a different RPC Server (C or Java for instance) the situation might be completely different though. In that case, please refer to the documentation link I already provided above.

Regards,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:50pm UTC](https://techcommunity.softwareag.com/t/setlibraryname-only-with-natural-security/78354/4 "2021-04-02T14:50:31Z")

</div>


