HPE Anywhere Developer Forum
Showing results for 
Search instead for 
Do you mean 

Where is the best place to initiate the mini app in the server side?

SOLVED
Go to Solution
Occasional Advisor

Where is the best place to initiate the mini app in the server side?

Where is the best place to initiate the mini app in the server side? for example: connections to the data source.

 

 

1 ACCEPTED SOLUTIONS
Highlighted
Honored Contributor

Re: Where is the best place to initiate the mini app in the server side?

Hi

It's recommended to use DataSourceService in order to get your backend whereabouts and to use regular Java/Spring patterns in order to initalize the pool (lazy evaluation, @PostConstruct)

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.
1 REPLIES
Highlighted
Honored Contributor

Re: Where is the best place to initiate the mini app in the server side?

Hi

It's recommended to use DataSourceService in order to get your backend whereabouts and to use regular Java/Spring patterns in order to initalize the pool (lazy evaluation, @PostConstruct)

--------------------------------------------------------------------------------------
If some answer solves your problem, please mark it as a solution.