Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 package org.jboss.identity.idm.integration.jboss5;
 
 
Deploy the JBoss identity Management: 1. Start the IdentitySessionFactory. 2. bind it into the JNDI.

Author(s):
Jeff Yu
	private IDMService service;
	public IDMDeployer() {
		super(IDMMetadata.class);
	}
	public void deploy(VFSDeploymentUnit deploymentUnitIDMMetadata metadatathrows DeploymentException {
		JbossIDMDeployerType config = metadata.getDeploperType();		
		if ( != null) {
		}
		if (config.getJNDIName() != null) {
		}
		if (config.getHibernateDeployer() != null) {
		}
		if (config.getInitializers() != null) {
			InitializerType initializers = config.getInitializers();
			if (initializers.getDatasource() != null) {
			}
			if (initializers.getSqlInitializer() != null) {
			}
			if (initializers.getHibernateInitializer() != null) {
			}
		}
		try {
catch (Exception e) {
			throw new DeploymentException("error in starting the service"e);
		}
	}
	public void undeploy(VFSDeploymentUnit deploymentUnitIDMMetadata metadata) {
	}
	}
	public void setTransactionManager(TransactionManager transactionManager) {
		this. = transactionManager;
	}
New to GrepCode? Check out our FAQ X