Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Ramesh Etta

Ranch Hand
+ Follow
since Sep 18, 2007
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 Ramesh Etta

Hi,

I am using JDBC/LDAP realm for authentication and I need to fetch the list of user names using the role name.

Is there any API method that Glassfish provide to achieve this or how can we acheive this?


Thanks
Ramesh
7 years ago
Hey i got the solution. Below bean will do it.



Hi,
I am running an Java Application and using log4j i am able to generate the logs. My log4j.xml file is placed with in the classpath of the application. Now i need to read the log4j.xml from outside the application. How i can i achieve this. I am using spring configurations.

Please help.
Hi Ivan, Thanks for the reply. I could'nt even think of the service down. Because other clients are able to send the requests. Anyhow thank you for your reply.
11 years ago
Hi Ivan,

I couldnt get any trace apart from the one i given from the logs. This error will not happen every time. Can you give me some scenarios which you ever have come through, where you see this kind of exception.
11 years ago
I am getting this error after i am successfully able to send request for some time. My Connection timeout value is set to 10 minutes. But i am getting this exception in less than a second i send the request.

The below is the error log i see.
[org.apache.cxf.phase.PhaseInterceptorChain] - Interceptor has thrown exception, unwinding now Could not send Message.

javax.xml.ws.soap.SOAPFaultException: Could not send Message.

Please help
11 years ago
Hi,

I am using Spring Security for Authentication. Currently i am authenticating username and password. Now my requirement is to add one more field with user name and password say something like Dept. Now if all the three values matches then only the user should be authenticated. Otherwise not. So how to add third field to my login page which will be authenticated along with user name and password. I came to know that userDetailsService will accept only username and password. how to add the third.

Thanks
Ramesh
12 years ago
I think we can do the work what the reference data is doing in the formBackingObject(), then why do we need a seperate referenceData() method.

Please clarify this with example.

Thanks
Ramesh
12 years ago
Hi All,

What is the difference between formBackingObject() and referenceData() method in a SimpleFormController ? Can you give any example in which contexts are used.

Thanks
Ramesh
12 years ago
Thanks for your replies.

I am having the same concern too.

But if you find any kind of Java programs which can do validate the business mail id vs free mail ids please reply to the mail.

Thanks once again.
13 years ago
Hi,
I have a text field to enter email, and when i enter the mail, it needs to validate in such a way that, only Business mail Ids should be accepted and all the free mails we can see
in the web should not be allowed.

I mean if enter mail id like xyz@yahoo.com, abc@gmail.com etc should not be accepted. and business mails like ibm.com, oracle.com etc should be allowed.
I can put the free mailids in a list and validate, but how can i know that this particular mail id like xxx.xyz.com is free mail / business mail. ( as there are many free mails available on the web ).

Is there any way to check this.

Please reply.
13 years ago
Thanks very much for your reply.

I solved the problem using isReachable method

bye
13 years ago
Hi everybody,

I am using java api, for sending a mail to the client.

Here i am able to check the format of the mailId, which needs to be sent.

But my problem here is , for example my mail id is ramesh@gmail.com, now i need to check whether gmail.com is existing or not in the internet, ie whether there is any addresss in the internet with the name gmail.com.

Please help me.

Thanks.
13 years ago
Hi,

I am using <ice:selectInputDate value="#{bean.someDate} binding="#{bean.otherDate}" .......... />

Now when i set variables in the bean
for value it looks something like this
private Date someDate;

And now when i set variable for the binding in the bean
private Date otherDate;
Now it throws an IllegalArgumentException, becuase the returnType of otherDate should be something other than Date.

I came to know for the inputText tag there is HtmlInputText class as return type when we use binding attribute.

Can anyone tell me how to use the binding attribute in the <ice:selectInputDate....../> tag.

Thanks in advance
13 years ago
JSF
Hi,

my requirement is like this
I had an emp table where it contains empno,empname, etc
now i write a query which fetches data using where clause of empname, which is like this

from emp e where e.empname='f%'

The above query only retrieves the emp records whose name starts with f ( small f not a cap f)

Now my requirement is i need to write a query where it also retrieves the empname records which starts with F (cap f) also.

Hope you got my problem.

please reply.

I came to know that i can use Criteria for this. But i want to use only hql query.