cancel
Showing results for 
Search instead for 
Did you mean: 

JCo.Server Programming on IBM Websphere

Former Member
0 Kudos

Hi All

Has anybody build a Stateless session EJB on IBM Websphere using the JCO.Server thread from JCO. We did try a couple of approaches but werent too successfull.

We have implemented the same as a applications with enhanced features as shown in Example7.java of the sample documentation. The application runs under the IBM Application client container and has access to the JNDI and JMS capabilites of the Websphere server.

But we are still curious to know if the EJB or any other route is possible, what are the options, the realted merrits demerrits and what is the throughput achieved if anyone has worked on this .

Thanks

Aju

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Creating a JCO Server as an EJB even stateless does not make much sense to me.

A) The Server should run for the duration i.e. you cannot passivate the EJB. This would be an antipattern.

B) How would you like to instanciate the server when you have something to send from SAP ??

If it has to reside within the appserver (and there are reasons for this) run it as a servlet that gets loaded at startup and shuts the Server down when the destroy/finalize method gets called.

We run the JCO Server on AIX in it's own JVM and dump the received IDOCs in XML format into WebSphereMQ with a pub sub model. The appserver (WebSphere) has an MDB that consumes the queue (asynchronous decoupling).

As to throughput here is an indication: for about 80,000 IDOCS of extended type MATMAS03 we need about 3 hours for processing...and the connection is transcontinental (private network)

Enjoy