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     [CASE-OPENED] Reportcaster Java API to remotly execute a schedule in WF8.0

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CASE-OPENED] Reportcaster Java API to remotly execute a schedule in WF8.0
 Login/Join
 
Member
posted
Did any one tried using ive been having issues

We are using AD security

I tried contacting tech support its taking lot of time for them to research

does any one has working code ...

Are there any other ways to execute a report caster schedule remotely

We also have DataMigrator and Iway service manager


Code I was trying

import ibi.broker.api.cci.ScheduleManager;
import ibi.broker.api.data.schedule.Schedule;
import ibi.broker.api.CasterManagedConnectionFactory;
import ibi.broker.api.cci.CasterConnection;
import ibi.broker.api.cci.CasterConnectionFactory;
import ibi.broker.api.cci.PasswordCredential;
import javax.resource.cci.ConnectionSpec;

public class ibi
{
/**
* @param args
*/
public static void main(String[] args)
{
String hostName = "*****";
String hostPort = "8200";
String userId = "******";
String passWord = "*******";
String scheduleId = "*******";

try
{

CasterManagedConnectionFactory managedConnectionFactory = new CasterManagedConnectionFactory();


managedConnectionFactory.setServerName(hostName);

managedConnectionFactory.setPortNumber(hostPort);


CasterConnectionFactory connectionFactory = (CasterConnectionFactory)managedConnectionFactory.createConnectionFactory();


ConnectionSpec credential = new PasswordCredential(userId, passWord.toCharArray());


CasterConnection casterConnection = ((CasterConnection)connectionFactory.getConnection(credential));

ScheduleManager manager = casterConnection.getScheduleManager();


Schedule schedule = manager.getSchedule(scheduleId);


String processId = manager.run(schedule);


}
catch (Exception e)
{
e.printStackTrace();
System.out.println("Exception in main: " + e.toString());
System.exit(-1);
}
}
}

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 13 | Registered: March 06, 2012Report This Post
Guru
posted Hide Post
Look at this:

  
http://forums.informationbuild...031090692#5031090692


By the way, what error are you getting?

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report 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     [CASE-OPENED] Reportcaster Java API to remotly execute a schedule in WF8.0

Copyright © 1996-2020 Information Builders