john hartley

Greenhorn
+ Follow
since Oct 22, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by john hartley

I am responsible for a typical Struts application that uses JSPs, Common Controls, etc.. I am now developing a new application that will have the same look and feel as the first application but will have rather different backend processing.

My problem is a customer requirement that says there must be a "main menu" page which will provide links to BOTH applications, (when both are installed and the user is authorized. Single sign-on is also a requirement). Since I am fairly new at web application development, I do not know the best way to construct these applications (or application?) such that the user can link to either application (and back again). I have been warned that trying to link separate Struts applications is risky given the need for absolute URLs. I am aware that I could easily merge the apps into one Struts app using Modules but this may not be ideal from a marketing/code control point of view.

So, can someone set me straight with some suggestions?

TIA

jrh
17 years ago
Thanks for the replies!
The confusion starts when you search out some real examples, even on the actual Sun website:
http://java.sun.com/products/jndi/tutorial/basics/prepare/initial.html
...as well as on the IBM examples that I have found. It just seems to me that you would not want to require the class name and you seem to agree.
Still, can anyone give me a real-world example in which you would want to have the applications specify the factory class?
And yes, JMS is within the J2EE realm, but you can use JMS without coding real J2EE objects. You don't need JNDI either but I thought I might use the most standardized and abstract approach that I can.
Thanks again,
jrh
(I apologize in advance for asking a question that may have an obvious answer).
I am getting familiar with JMS/JNDI as part of an enhancement to a middleware java application, (non-J2EE).
Is it always required that a JNDI "client" know the class name of the context factory? If not always, then when? I have not seen a good explanation of this simple but subtle characteristic of JNDI usage.
<background>
Most of the example code that I have seen that involves JNDI lookups, begins with specifying the InitialContextFactory class name in the environment properties passed to the InitialContext constructor.
(I have some sample code that runs without specifying the factory class, so I know that it works either way depending on conditions).
To me, this seems strange that a client trying to lookup some JNDI references would need to have such implementation-specific information. Consider a JMS client that just wants to access a queue. The client isn't interested in the type of JNDI provider, just getting access to the queue.
</background>

TIA
jrh
Lasse, thanks. I overlooked that feature. With so many features, I am easily confused. Early indications are that it is working.
Thanks again,
jr
I am attempting to do basic schema-validation of xml data using a DOMParser, (latest Apache).
I am using an InputSource wrapping a byte[] full of XML data, i.e. not an XML file.
When validation is turned OFF, the parser is happy and parses the data fine. But when trying to validate the data, the parser always throws the SAXExceptions
"Document is invalid: no grammar found." and
"Document root element "transmittal", must match DOCTYPE root "null".
...implying to me that it cannot locate either the schema schema or the instance schema
The root node attributes in the XML data are:
<rootNodeName xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="rootNodeName.xsd">
I have tried every form for specifying the noNamespaceSchemaLocation that I can think of...
For example:
- fully qualified path
- "file:rootNodeName.xsd"
- setting the systemId (of the InputSource) to the base path of the schema
file location
- ???
Any ideas on how I have to specify this information?
TIA
jr