Bug 778619 (SOA-1098)

Summary: typo in jUDDI related code sample
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Dana Mison <dmison>
Component: DocumentationAssignee: Mark Little <mark.little>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 GA, 4.2 CP02   
Target Milestone: ---   
Target Release: 4.3 CP01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1098
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 778620 (view as bug list) Environment:
Last Closed: 2009-03-06 06:49:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dana Mison 2008-12-22 04:31:58 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Date of First Response: 2009-03-06 01:49:15
project_key: SOA

This section is from the 4.3 Services Guide & the 4.2 Registry Guide.  I assume that the String factoryInitial = ... line is missing either a ); and or some arguments.  This is the same in the ESB source doc.


Where the hostname of the queryManagerURI and lifeCycleManagerURI need to point to the hostname on which jUDDI is running (which would be where application1 is running). Obviously application1 needs to have access to a naming service. To do the registration process you need to do something like:

//Getting the JNDI setting from the config
String factoryInitial = Config.getStringProperty(
Properties env = new Properties();
env.setProperty(RegistryEngine.PROPNAME_JAVA_NAMING_FACTORY_INITIAL,factoryInitial);
env.setProperty(RegistryEngine.PROPNAME_JAVA_NAMING_PROVIDER_URL, providerURL);
env.setProperty(RegistryEngine.PROPNAME_JAVA_NAMING_FACTORY_URL_PKGS, factoryURLPkgs); 

InitialContext context = new InitialContext(env);
Inquiry inquiry = new InquiryService();
log.info("Setting " + INQUIRY_SERVICE + ", " + inquiry.getClass().getName());
mInquery = inquiry;
context.bind(INQUIRY_SERVICE, inquiry);
Publish publish = new PublishService();
log.info("Setting " + PUBLISH_SERVICE + ", " + publish.getClass().getName());
mPublish = publish;
context.bind(PUBLISH_SERVICE, publish);

Comment 1 Mark Little 2008-12-22 04:31:58 UTC
Link: Added: This issue is a dependency of JBESB-2247


Comment 2 Mark Little 2008-12-22 04:31:58 UTC
Link: Added: This issue is a dependency of JBESB-2248


Comment 3 Mark Little 2008-12-22 04:32:30 UTC
Link: Added: This issue is related to SOA-1057


Comment 4 Jiri Pechanec 2009-03-06 06:49:15 UTC
Verified in CR3