Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


get Properties from cfg-File of eWay in Java

get Properties from cfg-File of eWay in Java

get Properties from cfg-File of eWay in Java

Hi all,

I have the following problem:
I want to determine the hostname and port of a socket connection target from the properties stored in the cfg-file of the eWay. For example, if I have a TCP/IP eWay there are parameters like "External Application Host", where I store the target TCP/IP server. When running my Java collaboration, I want to manually connect to this TCP/IP server, and therefore I need to get its name out of the property stored in the cfg-file of the current eWay.

Can anyone tell me how to do this (maybe with a small example) or generally if it is possible to get such a property within a Java collaboration?!


RE: get Properties from cfg-File of eWay in Java

I found it by myself - so for everyone:

java.util.Properties cfgProps = cntrCollab.getModuleConfigAsProperties();
if (cfgProps != null) {
  hostName = cfgProps.getProperty("Outbound_(send)_settings.OutputDirectory");
  portNo = cfgProps.getProperty("Outbound_(send)_settings.OutputFileName");

where cntrCollab is the JCollabController object and the two Properties listed here (Outbound_(send)_settings...) are just examples


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close