" /> Add java classes to your composser project - Genesys CTI User Forum

Author Topic: Add java classes to your composser project  (Read 4042 times)

Offline alexzm1

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Add java classes to your composser project
« on: March 27, 2015, 02:21:44 PM »
Advertisement
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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Add java classes to your composser project
« Reply #1 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

Offline alexzm1

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Add java classes to your composser project
« Reply #2 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?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Add java classes to your composser project
« Reply #3 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
« Last Edit: March 27, 2015, 02:45:58 PM by cavagnaro »

Offline alexzm1

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Add java classes to your composser project
« Reply #4 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Add java classes to your composser project
« Reply #5 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