Swapna latha

Ranch Hand
+ Follow
since Dec 18, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Swapna latha

Campbell Ritchie wrote:One publisher's website.


Thank you Campbell. I bought it from Kindle.
Hi all, where can I pay and download latest pdf copies of ocp book by Jeanne and ocp book by Kathy Sierra. What are the other books recommended
@Jeanne Does kindle edition covers all topics. Where can I pay and download pdf document.

Tim Moores wrote:That explains neither what kind of client you intend to use, nor why you think a message queue might be a good choice. Please elaborate on both points.


Hi Tim,

Sorry for late reply. I am planning to use web browser as a client and in future i want to have the app in android too. Using message broker can i store the messages and braodcast when user comes to online ?
Hi Tim,
Stomp allows asynchronous communication in the client side.so in order to store it in database i am thinking of using rabbitmq stomp plugin.
Hi,

I am looking to develop a internal chat service between the logged in members in my website. I just followed https://www.callicoder.com/spring-boot-websocket-chat-example/ and i am very happy to work with web sockets. But I would like to store the chat conversation in database as well as i want to give an option to file upload and file download , how to do that ? I would like to use Rabbit MQ so that i can put the messages in queue, and now question is how to save the chat in mysql database so that whenever user logs in , i want to show the complete chat history to him.

Is using Stomp with Rabbit MQ is correct or not ? OR shall i have to use the old native socket programming with threads ?

Please advise.

Thanks
Swapna

Tim Moores wrote:Setting up (sub)domains is the work of DNS, which has nothing to do with Java or Spring. DNS entries are most often set and changed manually, but you may be able to use a library such as DNSJava to automate that with Java code.

You'll also need a way to create databases programmatically, but that's not a big deal.


Thanks Tim, I understood what you said. I will google out to see how to create databases programatically and get back to you for sure.

5 months ago
I have a website which is a forum having only one  database. When i sell to a customer abc then how sho
uld i create abc.mydomain.com pointing to its abc database. If i get another client as test how should i create
test.mydomain.com with test database. Is it posdible ? If yes how can i do it in spring boot java application.

Thanks
Swapna
5 months ago

Swapna latha wrote:

Ron McLeod wrote:SO post: Mysql and hibernate


After reading the question in stackoverflow, what is my thought is that parent table id goes to child table, child talbe id goes to subchild and it goes on. I think its a simple design, but i am not sure of. Curious to learn about database design techniques and some practical exercises


Is the answer right ?

Ron McLeod wrote:SO post: Mysql and hibernate


After reading the question in stackoverflow, what is my thought is that parent table id goes to child table, child talbe id goes to subchild and it goes on. I think its a simple design, but i am not sure of. Curious to learn about database design techniques and some practical exercises
The following is the question asked in stackoverflow.com :

Can any one help me designing the database for heirarchical organization. Client requirements are : I have multiple organizations and there is a super admin for all of the organizations who can create, update or delete organizations. Each organization has features (apps) . These features apps are going to be used by the employees in the organization.

A super admin creates an organization admin and sets features for organization. The features (or apps in the organization) are different from organization to organization. Admin of the organization can create sub admins under him and in turn sub admins can create employees under them. When an employee logs in he can see only his page and he can contact his immediate admin and also the super admin.

When an admin logs in , he should be able to see his page and also sub-admins page as well as employees too and he has right to create , update and delete employees under him.

Could you please throw light on the database design for the above described. I am thinking of using emaild id as the primary key for each employee or admin or subadmin.

I am very poor at database designing concepts. I am learning database designs and in search, i found this question recently. Is there any good book for database design (practical examples)
Hi,

I have a query in constructing an object and storing it in database in json format.

Its in air domain industry. Need to construct an ojbect and store it in database in json format so the other applications can use the same object for various test automation scripts.

What i have done is i have created a class called PassengerDetails and inserted to station, from station etc., as below.


The passenger type also changes, like infants, companions etc., and i am not understanding how to handle it in class PassengerDetails. I have a guess like i have to add another class for PassengerType. Please correct me if i am wrong and suggest me how to add that passengertype details.

And I have created one ticket class (one ticket for each passenger, if 3 adults are there then 3 tickets and and three tickets are associated with one unique PNR). Here we have to store how the ticket is purchased, i mean by cash or credit card




We are having different payment types like Creditcard, cash, vouchers, refund amount etc., I am in confusion again how to handle this in the above PaymentDetails Class and how to link this class with TicketInformation and PassengerDetails




For multiple tickets, we have one PNR.



Now i have a query like, if there is modification in flights or dates etc., new ticket will be issued. Now the question is how to store this new tickets and old tickets so that the user who retrieves the list of tickets can understand that there is a modification and hence there are new tickets and old tickets.

The other scenario is that if there is an addition of additonal passenger then not only the ticket changes but also the PNR changes, Now the question is i want to store both new and old PNRs and associated tickets.

For multiple PNR's how to write the class, do i have to write a class where it has List<PNRDetails> as instance variable. I messed up the code and i am in confusion. Could any one suggest better approach in modifications of code.


Thanks & Regards,

Swapna.




1 year ago

Jeanne Boyarsky wrote:Swapna,
The alternative is to open the .classpath file in the project. This shows you the classpath as a text file. You can copy/paste in the jar names. It's still manually adding them, but less mouse clicks.



Thank you sir.
1 year ago
Hi,

Already few jar files are added to lib folder and they are added to project. By the way we are not using maven here. Its a very old project. I have added extra 20 jars to the lib folder and if i have to add to build path, i am going to each and every jar and checking whether its added to build path or not. If not , i am adding to build path by clicking Add to build path. Is there any way to add the newly added 20 jars to build path, instead of checking each and every  jar.

Thanks & Regards,

Swapna.
1 year ago

Paul Clapham wrote:Name: "anonymous inner class".



Thanks Paul.

2 years ago