Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FEX INCLUDEs between servers?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] FEX INCLUDEs between servers?
 Login/Join
 
Master
posted
I am hoping this can be done, but my lite testing is running into issues. I have 2 servers (DEV and PROD). Dev is not strictly development, there are some production jobs there run via ReportCaster in a 'squint your eyes really hard and call it load-balancing' methodology.

Anyway, I'd like to include a file from one server to be executed on the other. Instead of standard inter Domain includes, I want to include from another server, can this be done?

I'm thinking it should go something like this inside my host fex on the Dev server, but I get errors.

-INCLUDE IBFS:/PROD_SERVER/MRE/DOMAINS/atempc25/atempc25.htm/STANDARDREPORTS/#reportsh1ttd/app/printcar.fex

Error occurred.
ERROR: ERROR_MR_CANT_FIND_OBJECT MR object denoted by provided path IBFS:/PROD_SERVER/MRE/DOMAINS/atempc25/atempc25.htm/STANDARDREPORTS/#reportsh1ttd/app/printcar.fex does not exist

I've verified that the path typed out is the same as what I see in the 'Edit' window of the target fex. Hoping it's just a syntax issue ::fingers crossed::

-ABT

This message has been edited. Last edited by: ABT,


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Virtuoso
posted Hide Post
You can't -INCLUDE procedures that exist in an MRE environment on another server. Period. -INCLUDE works for procedure in the same MRE environment (either same domain or other domains) or for server procedures (using a variety of techniques depending on exactly what you need.)


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Virtuoso
posted Hide Post
You may be able to declare the remote location as a remote application folder -- there's a command for setting the specific disk path to an application . . . can't for the life of me remember it . . . APP MAP maybe? At that point you may be able to -INCLUDE the file as if it's coming from an application that's available to the MRE domain. A bit of a long walk, but it may work. Option 2 would be to (gasp!) make a second copy of the code. You didn't hear that last part from me.

J.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Master
posted Hide Post
Wow, you're good (http://documentation.informationbuilders.com/masterindex/html/html_wf_761/wf761appslang/index.htm?url=topic23.htm). Will check into this. Thanks!

-ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Master
posted Hide Post
Weird outcomes, maybe someone has some info/experience I can use:

Fex 1 (remote.fex) on 'development' server:
APP MAP SW "\\PRODSERVER\c$\ibi\WebFOCUS76\basedir\atempc25\app"
APP PATH SW

-INCLUDE printcar


Fex 2 (printcar.fex) on 'prod' server:
TABLE FILE CAR
PRINT
*
END


When remote.fex is run, I receive:
Error occurred. 
ERROR: ERROR_MR_FEX_NOT_FOUND Can't create item object based on provided item key printcar.fex.


I've tried fiddling with the case, adding the extension and using -MRNOEDIT all to no avail (well, MRNOEDIT gives:
(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: printcar

which is effectively the same message.

What am I missing?

-ABT


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
Virtuoso
posted Hide Post
What happens if you do a dir of \\PRODSERVER\c$\ibi\WebFOCUS76\basedir\atempc25\app?
Is there any difference in the outcome of that from within the webfocus environment and outside of it?
What happens if you say APP QUERY SW?
Just an extra thought on this (haven't tried it myself, but it might work):
If this all seems to be ok, but still WF won't pick the file up, there may be another alternative.
And that is to not use the UNC naming but to use instead the x:\sw approach. You would then have to use a defined network connection to the remote machine and assign it a drive letter. The drawback of this is that the drive letter has to exist before the server starts or you would have to manually specifiy it when you need it. Possibly you could put it in edasprof. The command would be something like NET USE X: \\PRODSERVER\c$. And then you would code your app map as APP MAP SW x:\ibi\WebFOCUS76\basedir\atempc25\app.
Who knows, maybe it works ...


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Virtuoso
posted Hide Post
If you don't have one already, you need a -RUN after your APP commands and before your -INCLUDE. You might try APP PREPENDPATH instead of APP PATH. Use the APP SHOWPATH or ? PATH command to see if the your new path has been added to the search PATH. Search Path Management Commands has additional information, if you haven't already seen it.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Master
posted Hide Post
Right on both (PREPENDPATH and RUN). Thanks for making my rainy morning just a little brighter. THANKS!

APP MAP SW "\\PRODSERVER\c$\ibi\WebFOCUS76\basedir\atempc25\app"
APP PREPENDPATH SW
-RUN

-* For Sanity
-*? PATH
-*-EXIT

-INCLUDE printcar


^------ works

quote:
Originally posted by Dan Satchell:
If you don't have one already, you need a -RUN after your APP commands and before your -INCLUDE. You might try APP PREPENDPATH instead of APP PATH. Use the APP SHOWPATH or ? PATH command to see if the your new path has been added to the search PATH. Search Path Management Commands has additional information, if you haven't already seen it.


------------------------------------
WF Environment:
------------------------------------
Server/Client, ReportCaster, Dev Studio: 7.6.11
Resource Analyzer, Resource Governor, Library, Maintain, InfoAssist
OS: Windows Server 2003
Application/Web Server: Tomcat 5.5.25
Java: JDK 1.6.0_03
Authentication: LDAP, MRREALM Driver
Output: PDF, EXL2K, HTM

------------------------------------
Databases:
------------------------------------
Oracle 10g
DB2 (AS/400)
MSSQL Server 2005
Access/FoxPro
 
Posts: 561 | Registered: February 03, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] FEX INCLUDEs between servers?

Copyright © 1996-2020 Information Builders