I tried googling and searching in answers.atlassian.com, but could find. Can you pls let me know if JNDI APIs are availabe for Jira plugins
you mean, you want to access JNDI from jira plugins? if yes then check this
https://answers.atlassian.com/questions/209645/scriptrunner-and-jndi-database-access
https://answers.atlassian.com/questions/6374/how-do-i-access-jndi-from-a-version-2-osgi-plugin
you can use simple code to access JNDI as follows
// Get Context to connect to database as a datasource Context ctx = new InitialContext() if (ctx == null) { throw new Exception("No Context found!") } DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/MYDB")
i don't thing there is a jira api to access JNDI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.