Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

sam liya

Ranch Hand
+ Follow
since Nov 25, 2008
Cows and Likes
Cows
Total received
1
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sam liya

I have a project which has several modules. I am using intellij as a IDE and gradle as a build too.
I have  a issue that when i try to open dependency class it opens class from jar file which is build and not the actual module code. I need to know why it open the class from jar file?
1 week ago
I am creating a struts 1 example. I am getting below error when i run the project.I have attached the project structure as well.




1 month ago
JSP
I heard that java 10 does not support EJB? is it true? If so how can old project continue? do they have to change to open JDK ?
1 month ago


I have a angular(UI) and Springboot rest api. When i try to call rest api from Ui ,i  am getting above error. I already added the below in my config class. but still the issue is there.

3 months ago
i need that users do not enter duplicate email. for example if asc@gmail.com is already in DB, i want that if user enter same email again , we have to find that it already exists. We have to use lexical analysis for to find it.
3 months ago
i am writing an API to save user data. when user enters data i need to check the uniqueness of those data. for example user enters email , i need to check that email is unique. So how can i use lexical  analysis to check the uniqueness?
3 months ago
I am getting Date as a String from UI as yyyy/MM/dd HH:mm:ss. So how can i get "yyyy/MM/dd" and "HH:mm:ss" .
3 months ago
ok, thanks. I used as below. So how can i get full date(2019/01/30) and time(18.55)

3 months ago
I am getting date and time as a one string from Ui. I need to get only date as Java.util.Date and get the time separately. So how can i separate the date and time ?



above code will change the String to datetime object. So how can i separate the date and time ?
3 months ago
I am writing an APi which saves data in two tables. For examples below are the user input data

name , description , email ,submission_date , submission_time ,ip , os ,browser

I need to save these details in two tables in DB as below

Topic Submission  = name , description , email ,submission_date , submission_time
Submission State  = ip , os ,browser

I need to know how to map one json object to two java classes directly. We can use "com.fasterxml.jackson.databind.ObjectMapper" for json to java mapping, but since we have to map to two classes how to map ?
3 months ago
i need to know what happens queue getting millions of messages withing few seconds. Does mq capable of handling these kind of situation ?
4 months ago
I am using activemq queue to send messages. I need to know when queue getting more messages it may get memoryout of error?
what are the ways to handle this issue ?
4 months ago
what are the differences between  jmstemplate vs producertemplate ?
both templates we can use for send JMS messages.
4 months ago
Below i use lamda and method reference to print values in a list. So what is the difference between two of the methods ?

4 months ago
Below is the logs when applications runs

4 months ago