We’d like to use a business calendar (BC) in our services. BCs are created and edited in MWS. There is an API fro working with them. The API even seems to be available in IS – in the sense that I can create a java service and compile it against the API.
But should such service work? Because, in my view, an IS is a different runtime environment than the MWS and hence might not have access to resources (database etc.) the MWS works with.
If you are referring to the business and user calendar management and date evaluation classes from the
com.webMethods.sc.calendar package then yes it should work in IS.
The MWS Library should be running inside of IS and providing the necessary infrastructure to make the com.webMethods.sc.calendar.* and com.webMethods.sc.directory.* APIs function inside of IS.
Eric, thank you for the quick reply. Yes, I meant those classes. I tried, it works.
One thing is still unclear to me. How would the IS runtime know which MWS instance should be used to retrieve the calendar data? As I understand it, it’ a common library which is able to run in the IS context and also in the MWS context. So it should have some configuration mechanism to adjust it to the particular environment.
Is the code that reads the config a IS specific bootstrapping code (which tunes the library so that it can function)? And MWS has another bootstrapping code? (The library also works from within MWS, doesn’t it?) I’m just trying to understand how it works. If you have no time to reply you don’t have to because you already answered the main question.
@fml2 Basically, yes. IS has built-in init code that gets the JDBC connection details from the JDBC pool and passes those settings on the the MWSLibrary init which does the rest of the work to initialize what is needed to talk to the MWS database and the related MWS cluster.
When connected to a MWS database, CDS (via MWSLibrary) behaves very much like a MWS cluster instance.
Are there other components that are usually worked with from within MWS but that also get initialised (and hence can be used via API) from within the IS? I.e. user permissions etc.
CDS is shorthand for the Common Directory Services API. This capability enables users defined in MWS to login to Integration Server.
The capabilities provided inside IS by MWS are limited to the calendar apis and identity apis that manage MWS users/groups/roles.
You may refer to the “webMethods MWS Shared Services” section of the “CAF and My webMethods Server Java API Reference” documentation for the set of java APIs that are natively available in both the MWS runtime and the IS runtime.
Shouldn’t it be a little bit more? If I’m not mistaken, the services from WmMonitor which deliver information about process instances do take data level security settings into account which are defined in MWS. Hence the IS should somehow have access to these data. How does the IS access it?
The Optimize/Monitor products provide a UI front end for data level security in MWS. But , the persistence and usage of the same are all on the Integration Server side.
MWS and Integration Server serve different and complementary purposes. The goal has never been to duplicate all the capabilities provided by the MWS runtime into the Integration Server runtime.