Topic
  • 5 replies
  • Latest Post - ‏2012-10-09T15:09:24Z by kolban
SystemAdmin
SystemAdmin
7615 Posts

Pinned topic Placing JAR, Custom JSP and Custom Servlet in IBM BPM

‏2012-10-08T06:16:12Z |
Hi Community,
Need your help in resolving following queries:
1. If we are writing a custom JSP we can place it in teamworks.war and can access that JSP file using .lsw extension. It works fine if we are not using any import statement for the external .jar files.
But suppose our code is dependent on some external JAR file, we will have to use import statement in our JSP code, but for this we need to place this JAR file somewhere to be accessed by JSP.
My query is where do we suppose to place this JAR file.

2. If I will have to write custom Servlet code, where to place that .class file for the servlet, and how to access that servlet.

Thanks,
Rahul Saini
Updated on 2012-10-09T15:09:24Z at 2012-10-09T15:09:24Z by kolban
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: Placing JAR, Custom JSP and Custom Servlet in IBM BPM

    ‏2012-10-08T12:53:33Z  
    It is a very bad practice to put your own JSP inside the product files. It is going to make future upgrades significantly harder. You need to use WAS properly and put your custom items into your own ear/war file that is deployed alongside the application. This should not be a big problem, since IBM BPM is a bunch of different EAR files that work together.

    The approach you are following was done frequently prior to the IBM aquisition of Lombardi since Teamworks 5 and 6 supported multiple application servers (WAS, JBoss, and WebLogic) and the services team did not have the time to figure out how to do this for each of the environments. Now that WAS will be the only application server ever supported, we can take the time to learn how to do these things since following the correct approach will work at every customer.

    Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com
  • GaryS
    GaryS
    81 Posts

    Re: Placing JAR, Custom JSP and Custom Servlet in IBM BPM

    ‏2012-10-08T15:34:58Z  
    It is a very bad practice to put your own JSP inside the product files. It is going to make future upgrades significantly harder. You need to use WAS properly and put your custom items into your own ear/war file that is deployed alongside the application. This should not be a big problem, since IBM BPM is a bunch of different EAR files that work together.

    The approach you are following was done frequently prior to the IBM aquisition of Lombardi since Teamworks 5 and 6 supported multiple application servers (WAS, JBoss, and WebLogic) and the services team did not have the time to figure out how to do this for each of the environments. Now that WAS will be the only application server ever supported, we can take the time to learn how to do these things since following the correct approach will work at every customer.

    Andrew Paier | Director of Special Operations | BP3 Global, Inc. www.bp-3.com
    Per Andrew's concern - it's just not a good idea to add custom JSPs and java within BPM's deployment (specifically EAR and libraries). Meaning, don't modify BPM's deployment and libraries for the purpose of adding your own custom code.

    Much better solutions are now available via:
    • dojo widgets
    • websphere proxy server
    • BPM APIs
    • Websphere "shared libraries" and "virtual hosts"

    Quick workaround?
    • create your own, custom BPM project for custom development (in Eclipse/RSA)
    • reference the BPM libraries (important to avoid potential library version incompatibilities)
    • build/deploy your custom EAR into a "custom server" (can be on the same BPM host or in its own server). Remember that using a separate custom server helps avoid BPM work interruption during custom EAR deployments.
    • if deployed into BPM server, configure the EAR (enterprise application) to use BPM's virtual host.

    Don't forget to include security configuration and role/mapping (follow examples used within BPM application - since yours will use same).

    Gary Samuelson
  • AnthonyBpm
    AnthonyBpm
    390 Posts

    Re: Placing JAR, Custom JSP and Custom Servlet in IBM BPM

    ‏2012-10-08T16:26:54Z  
    +1 to the posts by Andrew and Gary

    Following on, what are your business use cases? The community may be able to provide some insight into how you can address the requirements with the features of the product..
  • SystemAdmin
    SystemAdmin
    7615 Posts

    Re: Placing JAR, Custom JSP and Custom Servlet in IBM BPM

    ‏2012-10-09T07:39:09Z  
    Thanks Andrew Paier,Gary, Anthony for providing the valuable light on the topic.

    As per your recommendation i created .war file and its working fine in my IDE.Now will have to install it on WAS

    Is anyone aware of deployment of war file on Wepshere application server.
  • kolban
    kolban
    3322 Posts

    Re: Placing JAR, Custom JSP and Custom Servlet in IBM BPM

    ‏2012-10-09T15:09:24Z  
    Thanks Andrew Paier,Gary, Anthony for providing the valuable light on the topic.

    As per your recommendation i created .war file and its working fine in my IDE.Now will have to install it on WAS

    Is anyone aware of deployment of war file on Wepshere application server.
    See the following and the links in "related tasks":

    http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/trun_app_install.html

    Neil