Hi all,
We have a requirement for managing and deploying the binary file assets like images and PDF files through BCC.
Environment: ATG9.0,
JBoss4.2.3.GAWe have configured both the CA and production environment in local system.
These are modules we have included in both the environments:
Production module: B2BCommerce, PublishingAgent, DafEar.Admin, PublishingWebAgent,
Versioned module: DPS.Versioned, B2BCommerce.Versioned, DCS.CustomCatalogs.Versioned, DCS-UI, DCS-UI.management, PubPortlet, <production-module>
Note: We have given different port numbers for both the modules.
For example in production rmiPort=18860 and in versioned rmiPort=8860
For Managing the Assets we have did the following configurations:
1. Extended the publishingFiles.xml by adding the sub-type for binary files. Component path: <versioned_module>\config\atg\epub\file\
For setting the locked caching created publishingFiles.xml in the liveconfig of versoned module. Component path: <versioned_module>\liveconfig\atg\epub\file\
2. Configureed our customized VFS for binary file assets. Created our custom component. Component path: <versoned_module>\config\atg\epub\file\
3. Specified the new instance of the ContentRepositoryVFSService in the versionedVirtualFileSystems property of VersionManagerService. Component path: <versoned_module>\config\atg\epub\version\
4. Configured the type mapping component. Component path: <versioned_module>\config\atg\epub\file\typemappers\
5. Configure the PublishingTypeMapper component in the versioned module to add the new type mapping component to the typemappings property.
Component path: <versioned_module>\config\atg\epub\file\typemappers\
6. Configured the component VersionedLoaderEventListener with rootpath details. Component path: <versioned_module>\config\atg\epub\file\
rootPath=C:\\ATG\\ATG9.0\\<myApp>\\j2ee-apps\\myApp\\myApp.war
7. Created the separate manifest file for the file folders and file assets. Imported the file assets to the CA using RLClient.
Run the RLClient for both the files.
In BCC we are able to browse and view the images and PDF files those we have uplaoded.
We are able to download the images for any modification.
For deplyoment we have made the following configuration:
1. Extended component RmiServer in <ATG Dir>/home/servers/<production-module>/localconfig/atg/dynamo/server ) and specify the rmi port number
port=18860
[ Commented the port number in RmiServer component of C:\ATG\ATG9.0\PublishingWebAgent\config\atg\dynamo\server ]
3. Created component J2EEContainer in the localconfig of our target production server. ( <ATG Dir>/home/servers/kohler/localconfig/atg/dynamo/service/j2ee/J2EEContainer )
localDirectory={atg.dynamo.root}/j2ee-apps/myModule/myModule.war
4. Created a custom component with localDirectory and file name extensions, in the localconfig of our target production server. ( /atg/epub/file/ )
$class=atg.service.vfs.SelectiveDeleteVFSService
localDirectory={appModuleResource?moduleID=myModule&resourceURI=j2ee-apps/myModule/myModule.war}
fileExtensions=jsp,jspf,JSP,JSPF,jpg,JPG,gif,GIF,PDF
Error while running the production server.
18:32:37,281 ERROR [RmiServer] Unable to register atg/epub/AgentTransport to /atg/dynamo/server/RmiServer
java.rmi.AlreadyBoundException: atg/epub/AgentTransport at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:123)
at atg.server.rmi.RmiServer.exportService(RmiServer.java:470) at atg.server.rmi.RmiServer.doStartService(RmiServer.java:403)
at atg.nucleus.GenericService.startService(GenericService.java:496) at atg.nucleus.NucleusNameResolver.startService(NucleusNameResolver.java:1371)
at atg.nucleus.NucleusNameResolver.configureAndStartService(NucleusNameResolver.java:1133) at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:787)
at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:569) at atg.nucleus.NucleusNameResolver.createFromName(NucleusNameResolver.java:550)
Can anyone please tell whether there is any problems in the configuration?
Thanks in advance,
Jatin