connecting To Java Application from IS

Hi Mark,

As per your comment:
**** Yes. You can create a java service that uses Remote Method Invocation (RMI) to invoke EJB methods running in a app server. This is not too tough for java programmers who are able to write EJB’s or the java clients that invoke them, but is too complex for inexperienced java programmers or those who have not developed many webMethods java services.

Do we need IBM JVM run the java services ?

Thanks,
Venkatesh S

Hi All,

We have a scenario to call a Java Program from webMethods. We dont want to invoke as a Web Service or using EJB Adapter. As Micheal said “let your Java app run inside the Integration Server as a native service”, i think this would suite our scenario. We are provided with Jar file or .class file of that Java program.

Any one please let us know the exact procedure to invoke a Java service from webMethods, like where to place the Java file in IS and how to invoke that etc.,

Quick response would be appreciated as it is very urgent for me.

Hello,
I put jar files under the \IntegrationServer\lib\jars folder. I then make a java service under a package folder at access it as if it were a standalone java application. You may need to specify the package path under the imports section. The rest of the interfacing would be as if you were making a normal WM java service. Good day.

Yemi Bedu

Dear all, i have the problem to run java serviço wich the java service have IData Object that i need to cast it. The

The Code

com.progress.open4gl.javaproxy.Connection OEConnection = (com.progress.open4gl.javaproxy.Connection) IDataUtil.get( pipelineCursor, “OEConnection” );

message erro is:

Launch started: 2013-06-11 09:18:06.877
Configuration name: new_flowservice
Configuration location: C:/Users/marcelocc/workspace82/.metadata/.plugins/org.eclipse.debug.core/.launches/new_flowservice.launch

Could not run ‘new_flowservice’
java.lang.ClassCastException: com.progress.open4gl.javaproxy.Connection cannot be cast to com.progress.open4gl.javaproxy.Connection

java.lang.ClassCastException: com.progress.open4gl.javaproxy.Connection cannot be cast to com.progress.open4gl.javaproxy.Connection
at pub.chamadaOE(pub.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:439)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:643)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:276)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:363)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:547)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:386)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:234)
at com.wm.app.b2b.server.BaseService.invoke(BaseService.java:194)
at com.wm.lang.flow.FlowInvoke.invoke(FlowInvoke.java:324)
at com.wm.lang.flow.FlowState.invokeNode(FlowState.java:584)
at com.wm.lang.flow.FlowState.step(FlowState.java:444)
at com.wm.lang.flow.FlowState.invoke(FlowState.java:409)
at com.wm.app.b2b.server.FlowSvcImpl.baseInvoke(FlowSvcImpl.java:1057)
at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:643)
at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:46)
at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:44)
at com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243)
at com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:51)
at com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171)
at com.wm.app.b2b.server.ACLManager.process(ACLManager.java:276)
at com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:30)
at com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:363)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:547)
at com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:386)
at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:234)
at com.wm.app.b2b.server.comm.DefaultServerRequestHandler.handleMessage(DefaultServerRequestHandler.java:119)
at com.wm.app.b2b.server.HTTPMessageHandler.process(HTTPMessageHandler.java:160)
at com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:181)
at com.wm.app.b2b.server.Dispatch.run(Dispatch.java:355)
at com.wm.util.pool.PooledThread.run(PooledThread.java:131)
at java.lang.Thread.run(Thread.java:662)

Launch completed: 2013-06-11 09:18:08.352