This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * JBoss, Home of Professional Open Source. | |
| * Copyright 2014 Red Hat, Inc., and individual contributors | |
| * as indicated by the @author tags. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version='1.0' encoding='UTF-8'?> | |
| <server xmlns="urn:jboss:domain:4.1"> | |
| <extensions> | |
| <extension module="org.jboss.as.clustering.infinispan"/> | |
| <extension module="org.jboss.as.connector"/> | |
| <extension module="org.jboss.as.deployment-scanner"/> | |
| <extension module="org.jboss.as.ee"/> | |
| <extension module="org.jboss.as.ejb3"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * JBoss, Home of Professional Open Source. | |
| * Copyright 2014 Red Hat, Inc., and individual contributors | |
| * as indicated by the @author tags. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * JBoss, Home of Professional Open Source. | |
| * Copyright 2014 Red Hat, Inc., and individual contributors | |
| * as indicated by the @author tags. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version='1.0' encoding='UTF-8'?> | |
| <server xmlns="urn:jboss:domain:1.8"> | |
| <extensions> | |
| <extension module="org.jboss.as.clustering.infinispan"/> | |
| <extension module="org.jboss.as.cmp"/> | |
| <extension module="org.jboss.as.connector"/> | |
| <extension module="org.jboss.as.deployment-scanner"/> | |
| <extension module="org.jboss.as.ee"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| JBoss, Home of Professional Open Source | |
| Copyright 2014, Red Hat, Inc. and/or its affiliates, and individual | |
| contributors by the @authors tag. See the copyright.txt in the | |
| distribution for a full listing of individual contributors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {toc:style=none\|outline=true} | |
| h1. Target Audience | |
| This document is intended for people who want to extend JBoss Application Server (AS) 7 to introduce new capabilities. | |
| h2. Prerequisites | |
| You should know how to download, install and run JBoss Application Server 7. If not please consult the [AS7:Getting Started Guide]. You should also be familiar with the management concepts from the [AS72:Admin Guide], particularly the [AS72:Core Management Concepts] section and you need Java development experience to follow the example in this guide. | |
| h2. Examples in this guide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| b | |
| c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.ArrayList; | |
| public class MemoryUtil{ | |
| private static final int MegaBytes = 10241024; | |
| public static void main(String args[]) { | |
| long freeMemory = Runtime.getRuntime().freeMemory()/MegaBytes; | |
| long totalMemory = Runtime.getRuntime().totalMemory()/MegaBytes; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.swing.UIManager; | |
| public class TestLAF { | |
| public static void main(String[] a) { | |
| UIManager.LookAndFeelInfo[] looks = UIManager.getInstalledLookAndFeels(); | |
| for (UIManager.LookAndFeelInfo look : looks) { | |
| System.out.println(look.getClassName()); | |
| } | |
| // wait infinitely |