Close

JBoss and security

JBoss implementaiton of security is JBossSX. It both supports declarative J2EE (JEE) and role-based security model. Default implementation for declarative security model is JAAS. Declarative: you declare the security roles and permissions using a standard XML message, rather than embedding in your code. Secure access to EJBs and web components using ejb-jar.xml and web.xml deployment…

JMX – XMBean – JBoss

JMX Mbean : A Bean following JMX Specification Categories: Standard MBean * Dynamic MBean Open Mbean Model Mbean MXBean * * Simplest Ones Standard MBean: SomethingMBean -> Interface Something -> Java Class Every method in interface defines either an attribute or an operation in MBean (no Business Process there) Management: management is performed by JMX…

Access EJB via HTTP in JBoss AS

If you are trying to acccess EJB through HTTP, you need to use org.jboss.naming.HttpNamingContextFactory for your context factory. However, there is only one small twitch in using that. You need to specify credentials accessing that invoker. This is what you need to add: env.put(Context.SECURITY_PRINCIPAL, “admin”);env.put(Context.SECURITY_CREDENTIALS, “admin”); This is complete code: Hashtable env = new Hashtable();env.put(Context.INITIAL_CONTEXT_FACTORY,”org.jboss.naming.HttpNamingContextFactory”);env.put(Context.PROVIDER_URL,…

ENC in JNDI JBoss

The application component environment is referred to as the ENC, the enterprise naming context. It is the responsibility of the application component container to make an ENC available to the container components in the form of JNDI Context. // Obtain the application component’s ENCContext iniCtx = new InitialContext();Context compEnv = (Context) iniCtx.lookup(“java:comp/env”); http://docs.jboss.org/jbossas/admindevel326/html/ch3.chapter.html

XADatasource in JBossAS & Hibernate

If you have ever wondered how you can use an XA Datasource in your JBoss AS, this is the answer. First you need to define the XA Datasource in your JBossAS, it is as easy as creating an XML file like this: XAOracleDS true false oracle.jdbc.xa.client.OracleXADataSource jdbc:oracle:thin:@monkeymachine:1521:jboss jboss password org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter jboss:service=TransactionManager Then you need to…

Advanced JBoss Enterprise Development

I attended and successfully completed “Advanced JBoss Enterprise Development” course offered by Red Hat in April 2011. Advanced JBoss Enterprise Development – Certificate Red Hat JBoss Enterprise Application Development II(JB325) – Course The topics covered in this course were as follows: Introduction to JBoss JBoss Architecture Overview JMX Jaba Management Extensions AOP & JBoss Connectors…