| |

VerySource

 Forgot password?
 Register
Search
View: 1495|Reply: 11

struts + spring + hibernate framework, can you call multiple services in one action

[Copy link]

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-26 15:40:01
| Show all posts |Read mode
struts + spring + hibernate framework,
Can you call multiple services in one action?
If multiple services are used in one action, will it cause problems?
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 Invalid IP Address

Post time: 2020-2-17 19:00:01
| Show all posts
Of course, no problem.
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-2-18 15:15:01
| Show all posts
Will it be impossible to control things
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-19 23:30:01
| Show all posts
Transaction control can be controlled by declarative transactions in Spring.
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-3-5 22:45:02
| Show all posts
<bean id = "txProxyTemplate" abstract = "true" class = "org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
Ranch
So that
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-17 22:00:01
| Show all posts
The first service call was successful
The call to the second service failed. At this time, it was rolled back. Can the first one be rolled back?
Reply

Use magic Report

0

Threads

6

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-4-7 10:15:01
| Show all posts
Of course, you can call multiple services
 There will be no problem
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-3 16:15:01
| Show all posts
Of course, calling two services requires rollback together, which is a service design issue. It should be a service that calls another or more services, and there should not be too complicated business logic in an action!
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-8-3 16:45:01
| Show all posts
Learn it! ! !
Reply

Use magic Report

1

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-8-3 20:15:02
| Show all posts
davy12

Of course, calling two services requires rollback together, which is a service design issue. It should be a service that calls another or more services, and there should not be too complicated business logic in an action!


I haven't used it, if I have time to send some data links, I will also find
Thank you
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list