I am using Tomcat 10 and Spring Boot 3,.Server Started Successfully.I didn’t get any expectations in the logs. but my application is not avaible
I have followed each step mentioned in the doc “Basic Deployment :: Jmix Documentation”
here is code
@Bean(name = “dataSource”)
@Primary
DataSource prodDataSource(ApplicationContext context) {
JndiDataSourceLookup lookup = new JndiDataSourceLookup();
DataSource dataSource = lookup.getDataSource(“java:comp/env/jdbc/intaeccorgc”);
// to avoid org.springframework.jmx.export.UnableToRegisterMBeanException:
for (MBeanExporter mbeanExporter : context.getBeansOfType(MBeanExporter.class).values()) {
if (JmxUtils.isMBean(((Object) dataSource).getClass())) {
mbeanExporter.addExcludedBean("dataSource");
}
}
return dataSource;
}
}
Username,URL in prod added correct values
<Context>
<Resource name="jdbc/intaeccorgc"
auth="Container"
type="javax.sql.DataSource"
maxTotal="100"
maxIdle="30"
maxWaitMillis="10000"
username="<Username>"
password=""
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
url="<URL>"
/>
</Context>