Remote development vs. remote debugging

Remote debugging (on a server) Remote debugging is not rocket science (unless you are debugging remotely on a spacecraft or something like that!). I am confident any experienced developer, who has worked with different application / container servers, is familiar with remote debugging and at least tried it once.Each developer might have his/her own definition of what… Continue reading Remote development vs. remote debugging


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… Continue reading JBoss and security


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,… Continue reading Access EJB via HTTP in JBoss AS



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”);


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… Continue reading XADatasource in JBossAS & Hibernate


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… Continue reading Advanced JBoss Enterprise Development