1 2 Previous Next 15 Replies Latest reply on Jan 27, 2009 4:52 AM by Ales Justin

    How to deploy a PoJo service in AS5

    glm Newbie

      I have two Pojo classes plus several helper classes that I have in a jar file called DMServer.jar which I have placed in my <JBossAS5>/server//lib directory. I have placed the DMServer-beans.xml file in my <JBossAS5>/server//nichpro-deploy directory but the service never starts when the server is run.

      Here is the add code that I put into the profile.xml file to make the nichpro-deploy directory auto-scanned :

       <!-- Scan for applications -->
       <bean name="VFSDeploymentScanner" class="org.jboss.system.server.profileservice.VFSDeploymentScannerImpl">
       <property name="profileService"><inject bean="ProfileService"/></property>
       <property name="filterInstance"><inject bean="DeploymentFilter"/></property>
       <property name="URIList">
       <list elementClass="java.net.URI">
       <!-- Standard hot deployment directory -->

      Here is my DMServer-beans.xml listing :
      <?xml version="1.0" encoding="UTF-8"?>
      <deployment xmlns="urn:jboss:bean-deployer:2.0">
       <bean name="AgentFactory" class="com.nichpro.factory.AgentFactory" />
       <bean name="DirectoryMonitor" class="com.nichpro.monitor.DirMonitor.Impl" />

      What more do I need to do to hot deploy this service?


        1 2 Previous Next