Author Topic: GAD integration with other app - API questions  (Read 4373 times)

Offline Marito

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
GAD integration with other app - API questions
« on: July 09, 2009, 01:34:46 PM »
Hi all,
I'm new at all this Genesys thing, so i'm getting familiar with it atm (it s a warning in case my questions are not smart enough :P)

I really need to know if the following is possible to do with the GAD API called ALI:

-Is it possible to take encapsulated data from the API coming from the TServer individually by Operator/Session/Call?
-Once i get the data, send it to the other web app via XML. After sending it, keep asking the other app servlet every lets say, 30 seconds, until some data on the other app is ready. If it is not, keep asking on the next 30 secs (this has to be done for each call and operator, so i thought it could be done via threads).
-Once i get the response from the other app (via XML as well), send back to the T server the info.
-Is it possible to run code on the GAD when certain event happens (a call came in, for instance).
-Where can i get dev info regarding the API? I got only regarding the SDK.

Thanks in advance, best regards

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: GAD integration with other app - API questions
« Reply #1 on: July 09, 2009, 03:10:46 PM »
Hi Marito,

Welcome to the forum :)

Generally, I would say that described customization could be done with GDesktop. I think you have to choose a bit different approach as you can't customize server-side of GDesktop, only client side. Maybe it sounds confusing but you'll find it isn't ;)

I would recommend you to download "Genesys Desktop 7.6 Developer's Guide" that describes customization principles, provides some sample customizations etc. I pretty sure you get better "picture" of GDesktop customization possibilities once you read it.

Last note - Agent Interaction Layer (AIL) is one of Genesys SDKs. GDesktop was built using that SDK and AIL is available when customizing GDesktop as well.

Document mentioned above + other documents like AIL Reference JavaDoc, AIL Developer's Guide and  GDesktop customization sample codes can be downloaded from Genesys DevZone website - https://devzone.genesyslab.com/default.aspx.

If you have other questions... we are here :)

R.

Offline Marito

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: GAD integration with other app - API questions
« Reply #2 on: July 13, 2009, 05:10:33 PM »
Hi again,
First of all thx for the warm welcome to the forums.

Now, i got access to the Documentation you mentioned. Now i understand how to costumize GAD via XML, how to add graphical stuff (tabs, menus, etc), also how to add my own JSPs.

I also understood the idea of the "client side" thing. Now i understand how i probably wont need threads to accomplish what i need. I also changed a bit my approach so now i'm going to have a servlet that receives info instead of sending data every 30 secs.

Now i do have a question, while i created some JSP code while calling the AIL classes, interfaces, etc, and worked, i have no idea how to make Servlet or any type of class to run over there. Do i need to compile and copy the .class file inside the WEB-INF/Classes folder? Or WEB-INF/Lib if it is a JAR?

Somehow if i copy my jars over there they wont work. If i create normal classes (not servlets) it will say the version of Java which i used to compile my classes is different and wont run. If i create servlets, it wont find them and tomcat will fail.

Any ideas?

Regards

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: GAD integration with other app - API questions
« Reply #3 on: August 18, 2009, 07:56:21 AM »
Hi,

[quote]Now i do have a question, while i created some JSP code while calling the AIL classes, interfaces, etc, and worked, i have no idea how to make Servlet or any type of class to run over there. Do i need to compile and copy the .class file inside the WEB-INF/Classes folder? Or WEB-INF/Lib if it is a JAR?[/quote]
Yes, that's right. Put your class files into WEB-INF/classes folder and JARs into WEB-INF/lib folder. You have to modify Tomcat's configuration (web.xml file in gdesktop folder) to make your servlet working properly (map servlet to URL).

[quote]Somehow if i copy my jars over there they wont work. If i create normal classes (not servlets) it will say the version of Java which i used to compile my classes is different and wont run. If i create servlets, it wont find them and tomcat will fail.[/quote]
About servlets - you have to modify Tomcat's configuration as described above.

About Java version - you have to use same version as used by GDesktop/Tomcat. Check value of environment variable JAVA_HOME to find out what version is used.

R.