IBM Business Process Manager


BPM v7.5.1 - Finding hostname that the process is running on


I would like to find out durng runtime which host (actual machine name) that the process is running on (I mean the Linux server name)). Is this supported in the API?
Thanks.
Sort of an odd request. I'm not clear on why you would ever need to know this. However, assuming you really do there may be some way to get at the data if you really want. I don't think there is an API for this right now (at least I couldn't find one easily). So what are your options?
Java Connector
If you created a Java connector that allowed you to execute a command line script (we have one in house, it is pretty simple to do) then you could just execute and parse the results of the hostname call on your server. This would be the most reliable approach as things like proxy servers (see below) would not change the result.
Managed File Hack
If you have a managed file on your PA, you can get a URL for that file. That URL is a fully qualified URL, so, assuming you are not using a cluster or proxy, you could parse the URL of a managed file and determine the host name of the current system.
I have to say though that the underlying question bothers me quite a bit. I can't figure out why you would actually need this information for a solution. Can you give us some detail on what you are trying to do?
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs
Arav_V
2700050S0C
‏2013-06-03T18:16:46Z
Thanks for your response.
I think your Java Connector option is the best at this point. This is what I was also thinking of, but wanted to check if the name is already available.
The reason behind my question - So I am trying to make an outbound WS call from a process, and when that external webservice completes what it has to do, it has to callback a WS exposed from within the process. I want to pass the endpoint of the BPM WS as one of the parameters to the external webservice. I need the hostname to construct the URL. I don't want to put this in the environment variables because in the occasion that we are trying to use a new Process Server, we will have to change the environment variables in all the snapshots.
More...
I understand that use case. 2 options - First you could create your own maintenance screen that would use the JS-API to update the environment variable across snapshots in the case of there being a new server. 2nd, rather than having a full Java integration, you could put the value in a text file and use the text file reader service in the system data toolkit to read the file. (for example /etc/sysconfig/network).
Is this going to be a heavily uses WS call (where by "heavy" we mean called more than 1000 times an hour). If so you might want to run some stress tests on whatever solution you pick. If I was doing this in java and if the lookup turned out to be costly when I tested it. I would likely use a caching call so that the first time it is called it sees it has a null value, reads the value, sets it, then return it to the caller. All subsequent calls would return the cached value. But I would only add this complexity if I had concluded that the base call was fairly expensive and you were going to be doing this many times.
Sort of an odd request. I'm not clear on why you would ever need to know this. However, assuming you really do there may be some way to get at the data if you really want. I don't think there is an API for this right now (at least I couldn't find one easily). So what are your options?
Java Connector
If you created a Java connector that allowed you to execute a command line script (we have one in house, it is pretty simple to do) then you could just execute and parse the results of the hostname call on your server. This would be the most reliable approach as things like proxy servers (see below) would not change the result.
Managed File Hack
If you have a managed file on your PA, you can get a URL for that file. That URL is a fully qualified URL, so, assuming you are not using a cluster or proxy, you could parse the URL of a managed file and determine the host name of the current system.
I have to say though that the underlying question bothers me quite a bit. I can't figure out why you would actually need this information for a solution. Can you give us some detail on what you are trying to do?
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs
AndrewPaier
2700040K2Q
‏2013-06-03T17:25:48Z
Sort of an odd request. I'm not clear on why you would ever need to know this. However, assuming you really do there may be some way to get at the data if you really want. I don't think there is an API for this right now (at least I couldn't find one easily). So what are your options?
Java Connector
If you created a Java connector that allowed you to execute a command line script (we have one in house, it is pretty simple to do) then you could just execute and parse the results of the hostname call on your server. This would be the most reliable approach as things like proxy servers (see below) would not change the result.
Managed File Hack
If you have a managed file on your PA, you can get a URL for that file. That URL is a fully qualified URL, so, assuming you are not using a cluster or proxy, you could parse the URL of a managed file and determine the host name of the current system.
I have to say though that the underlying question bothers me quite a bit. I can't figure out why you would actually need this information for a solution. Can you give us some detail on what you are trying to do?
Andrew Paier | Director | BP3 Global, Inc.
BP3 Global's Website | Twitter | Linkedin | Google+ | Blogs
More...
Thanks for your response.
I think your Java Connector option is the best at this point. This is what I was also thinking of, but wanted to check if the name is already available.
The reason behind my question - So I am trying to make an outbound WS call from a process, and when that external webservice completes what it has to do, it has to callback a WS exposed from within the process. I want to pass the endpoint of the BPM WS as one of the parameters to the external webservice. I need the hostname to construct the URL. I don't want to put this in the environment variables because in the occasion that we are trying to use a new Process Server, we will have to change the environment variables in all the snapshots.
Arav_V
2700050S0C
‏2013-06-03T18:16:46Z
Thanks for your response.
I think your Java Connector option is the best at this point. This is what I was also thinking of, but wanted to check if the name is already available.
The reason behind my question - So I am trying to make an outbound WS call from a process, and when that external webservice completes what it has to do, it has to callback a WS exposed from within the process. I want to pass the endpoint of the BPM WS as one of the parameters to the external webservice. I need the hostname to construct the URL. I don't want to put this in the environment variables because in the occasion that we are trying to use a new Process Server, we will have to change the environment variables in all the snapshots.
More...
I understand that use case. 2 options - First you could create your own maintenance screen that would use the JS-API to update the environment variable across snapshots in the case of there being a new server. 2nd, rather than having a full Java integration, you could put the value in a text file and use the text file reader service in the system data toolkit to read the file. (for example /etc/sysconfig/network).
Is this going to be a heavily uses WS call (where by "heavy" we mean called more than 1000 times an hour). If so you might want to run some stress tests on whatever solution you pick. If I was doing this in java and if the lookup turned out to be costly when I tested it. I would likely use a caching call so that the first time it is called it sees it has a null value, reads the value, sets it, then return it to the caller. All subsequent calls would return the cached value. But I would only add this complexity if I had concluded that the base call was fairly expensive and you were going to be doing this many times.

Related Links

BPM 8.5 Portal Customization
How to Change Comment Color
Read user\'s session data at server side
Getting error while running service / task in BPM 7.5
Help: WS Security Implementation IBM BPM 8.0.1
Validation On Legacy Document Attach Control
TWSearch not working for migrated instances
Help with Selecting value from DatePicker in dojo
Duplicate Entries in Process Designer
Process Portal Collaberation Feature Not Working
CV - share data in coachview behaviours
CWLLG0371W: There is no script content.
Building a Mobile App in IBM BPM 8.5
IBM BPM on SQL Server 2008r2 on Windows 2008r2
US Phone CV with Validation
No vertical scroll even if my coach height exceeds screen

Categories

DW
IBM Blockchain
Cloud
Unica
Cognos
LPM (Live Partition Mo...
IBM Connections Meetin...
IBM Connections Docs C...
IBM Connections Cloud ...
IBM Case Manager Client
IBM FileNet Content Ma...
Content Analytics
Detect
Cloud DevOps
IBM TRIRIGA (SaaS)
Tivoli Business Servic...
Lifecycle Management
Collaboration Network
Managed File Transfer
SPSS Community News
IBM SPSS Statistics Ge...
General Statistical Qu...
IBM ILOG Elixir
ISV und Entwickler For...
TSM FastBack Latinoamé...
XML
Lotus
Information Management
Service Virtualization
db2
AIX and Linux on POWER
Healthcare and Life Sc...
Education and Learning
Banking
IBM JZOS Batch Toolkit...
IBM Automation Control...
Multicore enablement
Lotus
Wireless
Information Architectu...
.NET Development with ...
InfoSphere Metadata Se...
Infosphere Warehouse
Objrepos - AIX ユーザー・コミ...
IBM Toolbox for Java a...
Part 2 - Challenge #12...
Master the Mainframe G...
hrdf
WebSphere Application ...
WebSphere Commerce
CICS Explorer
WebSphere MQ
Network Protection (XGS)
Security Access Manage...
Sterling Information B...
Mapping / Translation
Announcements
Gentran Server for Unix
Gentran Basic, RTE, Co...
Gentran Director
Sterling Secure Proxy
Developer Tools, Utilt...
System Architecture
JSP Webpages in GIS
Gentran Server for Win...
Connect:Express Windows
Connect:Express Unix
Connect:Direct
Connect:Direct Mainframe
Connect:Enterprise UNIX
Product Information Ma...
Driving Usage
Backend Systems
Troubleshooting & Debu...
Data Services/Data Mig...
Interoperability
IDE Tools
DB2
WebSphere-Misc
WebSphere
WebLogic - JMS
DB2
RPG Cafe
Business/IT challenges...
Moderator Collaboration
General BRMS Discussion
CP Optimizer
Форумы Open Source
IBM Mote Runner SDK
IBM Simulation Producer
Visual Performance Ana...
IBM Spectrum Control
IBM Tivoli Asset Disco...
IBM License Metric Tool
IBM Systems Director F...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile