/
How-To Pass a Device Name to AS/400
How-To Pass a Device Name to AS/400
Sometimes we need to use a single device name when integrating into the client's environment
Step-by-Step Guide
Open the {SdkProject}AutoConfiguration.java File
Add this code snippet:
@Bean public DeviceAllocator deviceAllocator() { return ((pullName, newSessionProperties) -> "new-device-name"); }
It should look like this
@Configuration @Import(value = {{SdkProject}Configuration.class}) public class {SdkProject}AutoConfiguration { @Bean public DeviceAllocator deviceAllocator() { return ((pullName, newSessionProperties) -> "set-device-name-here"); } }
{SdkProject} - is a placeholder for your SDK project name
Related articles
Filter by label
There are no items with the selected labels at this time.
, multiple selections available,
Related content
AS/400 PCML and Fetch Metadata Exercise
AS/400 PCML and Fetch Metadata Exercise
More like this
AS/400 Screens SDK Exercise - Basic
AS/400 Screens SDK Exercise - Basic
More like this
AS/400 PCML Advanced RPC SDK Exercise 2
AS/400 PCML Advanced RPC SDK Exercise 2
More like this
AS/400 COBOL RPC SDK Exercise
AS/400 COBOL RPC SDK Exercise
More like this
AS/400 へのデバイス名をパスする方法
AS/400 へのデバイス名をパスする方法
More like this
OpenLegacy Connectors
OpenLegacy Connectors
Read with this