Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting schema/host name within a collab. rule 1

Status
Not open for further replies.

DevIntProd

Programmer
Feb 6, 2004
25
US
Hi!

Basically I am sending out an email where an error occurs under certain conditions and I want to know if there is a java function I can call to get the host name and schema name that eWay is running in ?

Any help would be appreciated.

Thanks,
Doug
 
myEmailObject.setComponentName(jcc.getCollaborationName());
myEmailObject.setSchemaName(
((JCCollabControllerImpl)jcc).getRegistryInfo().getSchemaName());

As far as the host name is concerned, I think there are several ways to do it:

1.) Add a property file to the collaboration.
The following page will get you started: Please note there is a way to reference the property file in the Collaboration Rule GUI.

2.) There may be a method through JCollaboration -- you will need to right-click the code pane of the Colllaboration rules editor and select add method. There you will get a listing of all public methods.

I hope this helps a little.

If you need more info you can email me yoni_1_@hotmail.com

cheers,
Jon
 
Thanks! We ended up using:

((JCCollabControllerImpl)(this.jCollabController)).getRegistryInfo().getSchemaName()

to get the schema name, and decided we do not ne ed to get the host name, so this was very helpful!

Thanks again,
Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top