Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: alexzm1 on March 27, 2015, 02:21:44 PM

Title: Add java classes to your composser project
Post by: alexzm1 on March 27, 2015, 02:21:44 PM
Hi guys

I'm using the composer plugin 8.1.400.17 in my eclipse luna 64 bits and I wonder if you guys know, What is the best way of adding a custom java class into your composer project? and also, How can I add a custom jar library to use it in my Backend JSP files inside my composer project? I know there is a WEB-INF directory with a lib directory on it but composer seems to not recognize it when deploying my app.

Regards.
Title: Re: Add java classes to your composser project
Post by: cavagnaro on March 27, 2015, 02:35:53 PM
Just like any other Eclipse. Add the JAR on custom JARs and then copy it in the LIB folder of your WebServer
Title: Re: Add java classes to your composser project
Post by: alexzm1 on March 27, 2015, 02:40:09 PM
So, you have to add it in the server lib directory, Isn't there any way to tell composer to bundle that jar file into the final war file?
Title: Re: Add java classes to your composser project
Post by: cavagnaro on March 27, 2015, 02:44:20 PM
I am not Eclipse fan...so no clue...never made a WAR file with it. If Eclipse can, then it should
I just export my projects to another Tomcat.

Google is your friend. Eclipse has tons of specialized forums
Title: Re: Add java classes to your composser project
Post by: alexzm1 on March 27, 2015, 03:26:42 PM
So you never added a custom class to your genesys project besides using the embeded jar library in the composers tomcat?
I actually need to create a custom class to use Jackson in order to convert a json object into a java class with attributes that I can access in a JSP file

Regards.
Title: Re: Add java classes to your composser project
Post by: cavagnaro on March 27, 2015, 03:39:11 PM
Yes, I had, but never created a WAR...WAR is not the only way to deploy projects.
Again, google and Eclipse forums are your horizon for more information.

Remember Genesys decided to go with Eclipse because you have tons information and it is opensource, which was not the case with Studio 7.6