william kane

Ranch Hand
+ Follow
since Nov 21, 2000
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 william kane

Hi,
I was reading up the Queue api docs. I could not quite understand the statement 'Queue implementations generally do not define element-based versions of methods equals and hashCode but instead inherit the identity based versions from class Object, because element-based equality is not always well-defined for queues with the same elements but different ordering properties.' Could anyone please elaborate preferably with an example.

William
15 years ago
What is the criteria for creating connection factories for JMS destinations?Is it ok to have one connection factory for a queue for the whole application?How does that compare to having a connectin factory per module?
Thanks in advance
William
Hi,
I am trying to backing beans for a data table.
I have a datatable displayed in one page using
<h:dataTable value="#{Somebean.someresult}" binding="#{BackingBean.htmlTable}" >

Now I want the use the same backing bean to display the table in the next page .I have therefore set the value backing bean instance in the request and used the following code the render the data table in the next page using the binding.
<h:dataTable id="fanClub" value="#{Somebean.someresult}" binding="#{BackingBean.htmlTable}">
The table renders with empty rows w/o any data.
Is there anything else to do to use a backing bean in a screen.
Hope i am clear with my question.
Thanks in advance
William Kane
17 years ago
JSF
Hi,
I would like to know component bindings are used in JSF application? What is use of wiring components into java beans when java beans are meant hold data?
Thanks in advance
William
17 years ago
JSF

Originally posted by DJDON:
Hi William,


This restore view is usefull when you are switching from faces-page to non-faces page and again back to faces-page.

Cheers



Hi DDJDON,
I am afraid am not sure about what your response means. To reiterate my question-- The Restore View phase is supposed to retrieve the component tree, if it was already displayed or construct a new component tree if it displayed for the first time.
Consider the following scenario, A.jsp is already rendered on the web brower with a form that submits to B.jsp.
What happens when the user clicks on 'submit' on A.jsp? Will the component tree of A.jsp be retrieved or that of B? If it is on B.jsp then, how does JSF know that the target page is B.jsp because target page is derived only after 'Invoke application' phase?
Hope i am clear
Thanks in advance
William
17 years ago
JSF
Hi,
I am new to JSF I have a fundamental question about the life cyle of JSF.
Most of the tutorials say that the 'restore component view' stage restores the component tree to the previous state.Here is what the JSF tutorial in java world says 'If that page previously displayed and JSF saved the page's state information, the state information is added to the request.'
1.What does page's state information mean?Is it anything other that the state of the bean associcated with the components?
2.What 'state information is added to request' mean?If page is requested based on a form submit the current request will have request parameters filled during submitting the form, then, what is state information that is added to request?

Hope i am clear about my query.
Thanks in advance
William
17 years ago
JSF
Hi,
I would like to download the latest source for axis from the repository and fix some bugs.
I am not able to connect to cvs location stated in the apache site for axis.
Does any one know details of the location for CVS reporsitory for axis?
Thanks in advance
William Kane

Originally posted by Ulf Dittmer:
The UnxUtils package includes patch and diff. Binaries are available that work right out of the box.



Thanks Ulf Dittmer that helped
Hi,
Can anyone let me know how we can apply a diff file to a source to get the modified source.
I am working on windows and i couldnot find a utility that will allow me to run a 'patch' command.
Thanks in advance
William
Hi,
I am working with Sun Java Application Server 8.2.
I find that there is no way to specify the JNDI name for the ejb-refs during deployment using the deploy tool.The deploy tool provides a way to specify the jndi name for res-ref and res-env-ref though.
Can any one let me know the reason for this.
Thanks in advance
William Kane
17 years ago

Originally posted by Roger Chung-Wee:
The developer writes code like this.


Thank you Roger,
That clarifies my query,I have a further question though
1.I have read that to access referenced ejb on should use the jndi name "java:come/env/<name of the fake reference>".Is the prefix "java:comp/env" needed in the bean access code?
Thanks in advance
William Kane
Why are JMS queues and topic called administered objects?
Thanks in advance
William Kane
As per the EJB specification , the role of the deployer is to ensure that "All ejb references are bound to the homes of the beans that exist in the operational environment".
Does this mean that the ejb refereces have to associated with JNDI names of the referenced EJBs?
Thanks in advance
William Kane
Hi,
I am trying to port an application from J2EE1.3 to Sun Application Server 8.2. The application uses Sun-j2ee-ri.xml files in ear files to deployment descriptors.But the j2EE 1.4 specification does not use Sun-j2ee-ri.xml files.Does anyone know if its possible to port the information in Sun-j2ee-ri.xml on to the Sun Application Server 8.2?
If yes what are the files into which the information in the Sun-j2ee-ri.xml files should go?
Thanks in advance
William Kane
18 years ago

Originally posted by Ulf Dittmer:
There is no general answer. It depends on where you want to process the information. If the data is in the SOAP header, you can have a JAX-RPC handler examine it, and maybe reject it. Same on the client side, a handler could add a SOAP header, but shouldn't alter the actual request.

Another consideration is how fine-grained you need the access control to be. If it's just a yes/no thing, a header would do nicely, but if different users have different permissions you might want to have that information in the service, so that you can use it for your access control.

Generally, if it feels like actual information, it goes into the request. If it feels like meta-information, that's what the SOAP headers are for. (Going off-topic, it's a similar decision as to what should be an element, and what should be an attribute in an XML document.)



Thanks Dittmer,
That reply did clear many of my queries.
If headers can used to pass information to meta information, then is information needed for authentication a good candidate for header information?If yes,does the client have to set headers or can the capabilites for client side handlers be used for the same?
Thanks again
William Kane
18 years ago