Re: Can I call an integration object from a java bean?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HATS > Re: Can I call an integration object from a java bean?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Can I call an integration object from a Java bean?  
David Smart


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-05-05 10:45 PM

The HATS entry servlet is set to load on startup and seems to initialise the
runtime.  So if our project is a HATS web project we don't seem to need to
initialise the runtime.  But what about a non-HATS web project?  What if we
want to use integration object in our own (non-tool generated) web
services - or making web services out of our own stateless session EJBs that
call IOs?

There is a lack of clarity in the documentation about the initialisation of
the HATS runtime, be it in the EJB container, or the Web.

Can someone make it clear how the initialisation should work.  We are trying
to workout the best implementation for using our own custom web services
that have to call integration objects.

Do we use static code in the class to initialise the HATS runtime once?

What happens if two calls try to initialise the runtime?

Do we initialise it on every call?

If so, that's a bit expensive isn't it?


"KBDRand" <kbdrand@hotmail.com> wrote in message
news:cn349j$59kk$1@news.boulder.ibm.com...
>I need to create my own Java bean and expose it as a web service, and so I
> want to call the Integration Object (IO) from my bean.
>
> The online documentation explains how to call an IO from a Servlet/JSP or
> EJB, but not how to call it from a plain Java Bean. anyone have any
> pointers?
>
> My biggest point of mis-understanding (confusion) is the initial setup for
> the IO. Based on the EJB call (which is closer than the Servlet since my
> bean doesn't have a context object) this is what I'm going to try:
> com.ibm.hats.util.Ras.initializeRas(this);
>
> com.ibm.hats.util.LicenseManager.getInstance();
>
> com.ibm.hats.runtime.connmgr.Runtime.initRuntime("", this);
>
> I will then instantiate the IO and call 'processRequest()' to run the IO.
>
> Should that work, or should I be doing something different?
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:55 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register