Re: [JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment EARDeployer
I am working with Andreas to implement the JSR77 stuff and there are plans to convert the current JSR77 MBeans into XMBeans when they are ready. we are planning to look at the XMBeans sometime next week. As for the problems you guys are running into, the JSR77 spec was not designed to handle non-j2ee packaging. The jboss implementation will have to. if the current stuff is getting in the way just comment it out. Later, Scott _ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=7125 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] CVS update: jboss/src/main/org/jboss/deployment EARDeployer
I asked Andreas the part about theand he did not have a chance to respond before he had to leave for the weekend. the current version of the JSR77 interfaces and most of the implementation in jboss is based on the public draft from last year. yes, vendor specific types are allowed but I don't see the part about the j2eeType that must be a valid standard J2EEManagedObjectType. All it has to do is support the model defined by the J2eeManagedObjectType exactly as the spec specifies Scott _ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=7125 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: contrib/varia/src/main/org/jboss/mail MailService.java
User: mclaugs Date: 02/03/08 06:44:07 Modified:varia/src/main/org/jboss/mail MailService.java Log: removed extra call to org.jboss.management.j2ee.JavaMail.create() Revision ChangesPath 1.5 +1 -2 contrib/varia/src/main/org/jboss/mail/MailService.java Index: MailService.java === RCS file: /cvsroot/jboss/contrib/varia/src/main/org/jboss/mail/MailService.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- MailService.java 6 Mar 2002 01:07:50 - 1.4 +++ MailService.java 8 Mar 2002 14:44:05 - 1.5 @@ -39,7 +39,7 @@ * MBean that gives support for JavaMail. Object of class javax.mail.Session will be bound * in JNDI under java:/ namespace with the name provided with method {@link #setJNDIName}. * - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @author mailto:[EMAIL PROTECTED]";>Simone Bordet * @author mailto:[EMAIL PROTECTED]";>Jason Dillon */ @@ -96,7 +96,6 @@ protected void createService() throws Exception { // Create the JSR77 Managed Object - mMail = JavaMail.create(getServer(), "MailSession", getServiceName() ); mMail = JavaMail.create( getServer(), getJNDIName().startsWith( "java:/" ) ? ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss/src/main/org/jboss/management/j2ee JDBCDataSource.java
User: mclaugs Date: 02/03/08 07:49:47 Modified:src/main/org/jboss/management/j2ee JDBCDataSource.java Log: j2eeType changed from JDBC to JDBCResource Revision ChangesPath 1.12 +2 -2 jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java Index: JDBCDataSource.java === RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- JDBCDataSource.java 8 Mar 2002 05:30:47 - 1.11 +++ JDBCDataSource.java 8 Mar 2002 15:49:47 - 1.12 @@ -24,7 +24,7 @@ * {@link javax.management.j2ee.JDBCDataSource JDBCDataSource}. * * @author mailto:[EMAIL PROTECTED]";>Andreas Schaefer. - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * * Revisions: * @@ -84,7 +84,7 @@ try { // Check if the JDBC Manager exists and if not create one Set lNames = pServer.queryNames( - new ObjectName( J2EEManagedObject.getDomainName() + ":j2eeType=JDBC,*" ), + new ObjectName( J2EEManagedObject.getDomainName() + ":j2eeType=JDBCResource,*" ), null ); if( lNames.isEmpty() ) { ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] org.jboss.resource.ConnectionFactoryLoader not found
I fixed the problem that was causing javax.management.InstanceAlreadyExistsException the jsr77 objects were modified to the current version of the spec last night. JDBCDataSource was looking for its parent with the wrong tpye, j2eeType=JDBC when it should have been j2eeType=JDBCResource Scott _ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=10455 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jbosscx/src/main/org/jboss/resource RARDeployer.java
User: mclaugs Date: 02/04/08 18:06:38 Modified:src/main/org/jboss/resource RARDeployer.java Log: Changed parent param for ResourceAdapterModule.create from null to the same as name for stand-alone modules Revision ChangesPath 1.24 +2 -2 jbosscx/src/main/org/jboss/resource/RARDeployer.java Index: RARDeployer.java === RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/RARDeployer.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- RARDeployer.java 3 Apr 2002 08:23:26 - 1.23 +++ RARDeployer.java 9 Apr 2002 01:06:38 - 1.24 @@ -54,7 +54,7 @@ * * @author Toby Allsopp ([EMAIL PROTECTED]) * @author mailto:[EMAIL PROTECTED]";>David Jencks - * @version$Revision: 1.23 $ + * @version$Revision: 1.24 $ * @seeorg.jboss.resource.ConnectionFactoryLoader * * Revisions: @@ -206,7 +206,7 @@ ObjectName lModule = org.jboss.management.j2ee.ResourceAdapterModule.create( server, - (rdi.parent == null)? null:rdi.parent.shortName, + (rdi.parent == null)? rdi.shortName:rdi.parent.shortName, rdi.shortName, rdi.localUrl, rdi.deployedObject Sponsored by http://www.ThinkGeek.com/ ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] CVS update: jboss-management/src/main/org/jboss/management/j2ee EJBModule.java J2EEManagedObject.java ResourceAdapterModule.java
32 @@ if( mParent != null ) { try { // Notify the parent about its new child - getServer().invoke( - mParent, - "addChild", - new Object[] { mName }, - new String [] { ObjectName.class.getName() } - ); + if(mParent.getKeyProperty( "name" ).compareTo(" ") != 0) { + getServer().invoke( + mParent, + "addChild", + new Object[] { mName }, + new String [] { ObjectName.class.getName() } + ); + } + else + { + ObjectName lServer = (ObjectName) getServer().queryNames( + new ObjectName( +J2EEManagedObject.getDomainName() + ":" + +J2EEManagedObject.TYPE + "=" + J2EEServer.J2EE_TYPE + "," + +"name=" + mParent.getKeyProperty( J2EEServer.J2EE_TYPE ) + "," + +"*" + ), + null + ).iterator().next(); + getServer().invoke( + lServer, + "addChild", + new Object[] { mName }, + new String [] { ObjectName.class.getName() } + ); + } super.postRegister( pRegistrationDone ); } catch( JMException jme ) { 1.5 +50 -32 jboss-management/src/main/org/jboss/management/j2ee/ResourceAdapterModule.java Index: ResourceAdapterModule.java === RCS file: /cvsroot/jboss/jboss-management/src/main/org/jboss/management/j2ee/ResourceAdapterModule.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ResourceAdapterModule.java19 Mar 2002 01:09:19 - 1.4 +++ ResourceAdapterModule.java9 Apr 2002 01:02:59 - 1.5 @@ -33,7 +33,7 @@ * {@link javax.management.j2ee.ResourceAdapterModule ResourceAdapterModule}. * * @author mailto:[EMAIL PROTECTED]";>Scott McLaughlin. - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * * Revisions: * @@ -75,7 +75,7 @@ public static ObjectName create( MBeanServer pServer, String pApplicationName, String pName, URL pURL, ObjectName pService) { Logger lLog = Logger.getLogger( ResourceAdapterModule.class ); String lDD = null; - ObjectName lParent = null; + ObjectName lApplication = null; ObjectName lCreated = null; try { ObjectName lServer = (ObjectName) pServer.queryNames( @@ -89,31 +89,49 @@ String lServerName = lServer.getKeyPropertyList().get( J2EEManagedObject.TYPE ) + "=" + lServer.getKeyPropertyList().get( "name" ); lLog.debug( "ResourceAdapterModule.create(), server name: " + lServerName ); - if( pApplicationName != null ) - { -lParent = (ObjectName) pServer.queryNames( - new ObjectName( - J2EEManagedObject.getDomainName() + ":" + - J2EEManagedObject.TYPE + "=" + J2EEApplication.J2EE_TYPE + "," + - "name=" + pApplicationName + "," + - lServerName + "," + - "*" -), -null -).iterator().next(); - } - else + + // if pName is equal to pApplicationName then we have + // a stand alone Module so do not create a J2EEApplication + if( pName.compareTo(pApplicationName) != 0 ) { -lCreated = J2EEApplication.create( - pServer, - pName, - null -); -lParent = lCreated; -pApplicationName = pName; - } - // First get the deployement descriptor - lDD = J2EEDeployedObject.getDeploymentDescriptor( pURL, J2EEDeployedObject.RAR ); + ObjectName parentAppQuery = new ObjectName( +J2EEManagedObject.getDomainName() + ":" + +J2EEManagedObject.TYPE + "=" + J2EEApplication.J2EE_TYPE + "," + +"name=" + pApplicationName + "," + +lServerName + "," + +"*" + ); + Set parentApps = pServer.queryNames(parentAppQuer
[JBoss-dev] CVS update: jbosscx/src/main/org/jboss/resource ConnectionManagerFactoryLoader.java
User: mclaugs Date: 02/04/10 20:04:16 Modified:src/main/org/jboss/resource ConnectionManagerFactoryLoader.java Log: Moved creation of JSR-77 objects to createService and destruction of them to destroyService Revision ChangesPath 1.12 +35 -16 jbosscx/src/main/org/jboss/resource/ConnectionManagerFactoryLoader.java Index: ConnectionManagerFactoryLoader.java === RCS file: /cvsroot/jboss/jbosscx/src/main/org/jboss/resource/ConnectionManagerFactoryLoader.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- ConnectionManagerFactoryLoader.java 6 Mar 2002 01:07:45 - 1.11 +++ ConnectionManagerFactoryLoader.java 11 Apr 2002 03:04:15 - 1.12 @@ -39,7 +39,7 @@ * * @author Toby Allsopp ([EMAIL PROTECTED]) * @author mailto:[EMAIL PROTECTED]";>David Jencks - * @version$Revision: 1.11 $ + * @version$Revision: 1.12 $ */ public class ConnectionManagerFactoryLoader extends ServiceMBeanSupport @@ -211,6 +211,30 @@ return cmfs.get(name.toString()); } } + + + /** +* Create service method +* +* @exception Exception Description of Exception +*/ + public void createService() + throws Exception + { + + // Create JSR-77 JCAConnectionFactory MBean + ObjectName lJCAConnectionFactory = JCAConnectionFactory.create( + getServer(), + factoryName, + getServiceName() + ); + + JCAManagedConnectionFactory.create( + getServer(), + factoryClass, + lJCAConnectionFactory + ); + } /** * #Description of the Method @@ -248,18 +272,6 @@ log.info("Connection manager factory '" + factoryName + " bound to " + "'java:/" + factoryName + "'"); - // Create JSR-77 JCAConnectionFactory MBean - ObjectName lJCAConnectionFactory = JCAConnectionFactory.create( - getServer(), - factoryName, - getServiceName() - ); - - JCAManagedConnectionFactory.create( - getServer(), - factoryClass, - lJCAConnectionFactory - ); } /** @@ -274,13 +286,20 @@ log.info("Connection manager factory '" + factoryName + "' removed from JNDI"); - // Destroy JSR-77 JCA ConnectionFactory MBeans - JCAManagedConnectionFactory.destroy(getServer(),factoryClass); - JCAConnectionFactory.destroy(getServer(),factoryName); } catch (NamingException e) { } + } + /** +* Description of the Method +* +*/ + public void destroyService() + { + // Destroy JSR-77 JCA ConnectionFactory MBeans + JCAManagedConnectionFactory.destroy(getServer(),factoryClass); + JCAConnectionFactory.destroy(getServer(),factoryName); } protected ObjectName getObjectName(MBeanServer server, ObjectName name) ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Start and Stop of an Application (EAR,WAR, RAR and JAR)
This concept is supported by the BEA server and I would assume that JBoss would want something like it. state persistence is something else that is related to this that might also be a good feature. when the state of the application changes this information is persisted. This could allow an application to be stopped, and maintain the stopped state even after a restart of the server. Just a thought Scott McLaughlin _ View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=9728 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] JSR-77 refactoring has begun
Scott, When the original code was written we did not use JMX notifications because we were concerned that the number of notifications would be very high and might cause the server to bottle neck because of the notification volume. Is your idea to also populate the statistics using notifications? In any case I can start updating the JSR-77 classes to the final spec, then I will start working on the population of the statistics data. One other issue that was brought up on the forum relating to JSR-77 was the number of MBeans that were being created. I have started looking at the possibility of all the MBeans into a single MBean that keeps track of all the JSR-77 related information including state management and statistics. Given this single MBean my idea is all access to the JSR-77 related data with JBoss is through the MEJB, but since it is just going to delegate to the JSR-77 repository MBean, the MBean could be accessed directly if other MBeans with in JBoss required JSR-77 related data. comments always welcome, Scott McLaughlin >>> [EMAIL PROTECTED] 01/15/03 10:29PM >>>I started the refactoring of the JSR-77 layer to pull it out of the core. The initial checkinfocuses on the SAR related code. The change will be to move the JSR-77 object creationout of the core deployers and components and into the JSR-77 module itself. Theinteraction between the two layer is vis JMX notifications. So far this has simplifiedboth the core and the JSR-77 code. I expect this to be complete by the end of theweek. Beyond that updating the classes to the JSR-77 1.0 final release and populatingthe statistics is what will take some work.Scott StarkChief Technology OfficerJBoss Group, LLC---This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Web console
WS, The simple answer to this one is when connecting to the web-console user the full ip addess insted of localhost I am currently looking into this problem to determine the best way to fix it. what is happening is, when the applet tries to connect back to the server it is using the real ip address not 127.0.0.1 or localhost, it is unable to determine that the ip address is the same as localhost so therfore throws an AccessControlException I will post to the Management on JBoss forum when I have find/check in the fix for this Later Scott McLaughlin >>> [EMAIL PROTECTED] 01/28/03 03:02PM >>>Hello,I've posted a message in the "Management on JBoss"forum but my message isn't displayed :(So here is my question:I've started JBoss and then accessed the web-consolewith http://localhost:8080/web-console/and then, I get the following exception:java.security.AccessControlException: access denied(java.net.SocketPermission XXX.XXX.XXX.192:3117connect,resolve) atjava.security.AccessControlContext.checkPermission(AccessControlContext.java:270) atjava.security.AccessController.checkPermission(AccessController.java:401) atjava.lang.SecurityManager.checkPermission(SecurityManager.java:542) atjava.lang.SecurityManager.checkConnect(SecurityManager.java:1044) at java.net.Socket.connect(Socket.java:419) at java.net.Socket.connect(Socket.java:375) at java.net.Socket.(Socket.java:290) at java.net.Socket.(Socket.java:118) atsun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) atsun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:122) atsun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) atsun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) atsun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) atsun.rmi.server.UnicastRef.invoke(UnicastRef.java:101) at org.jnp.server.NamingServer_Stub.lookup(UnknownSource) atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:492) atorg.jnp.interfaces.NamingContext.lookup(NamingContext.java:471) atjavax.naming.InitialContext.lookup(InitialContext.java:347) atorg.jboss.console.navtree.ConsoleTreeModel.getPM(ConsoleTreeModel.java:243) atorg.jboss.console.navtree.ConsoleTreeModel.loadTree(ConsoleTreeModel.java:102) atorg.jboss.console.navtree.ConsoleTreeModel.(ConsoleTreeModel.java:60) atorg.jboss.console.navtree.AdminTreeBrowser.(AdminTreeBrowser.java:63) atorg.jboss.console.navtree.AppletBrowser.start(AppletBrowser.java:53) at sun.applet.AppletPanel.run(AppletPanel.java:355) at java.lang.Thread.run(Thread.java:536)I use the Plug-in Java(TM): Version 1.4.0_02.Should the applet.jar be signed?WS___Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !Yahoo! Mail : http://fr.mail.yahoo.com---This SF.NET email is sponsored by:SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!http://www.vasoftware.com___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Clean build of main is not starting correctly
I am in the process of fixing this I will look at it tonight Scott M.>>> [EMAIL PROTECTED] 03/18/03 01:14PM >>>A clean co of jboss-head is building, but not starting up correctly. This lookslike the JSR77 cluster view service that has gotten out of synch with respectto the service config file.C:\cvs\Head\jboss-head\build\output\jboss-4.0.0alpha\bin>run -c all===. JBoss Bootstrap Environment. JBOSS_HOME: C:\cvs\Head\jboss-head\build\output\jboss-4.0.0alpha\bin\\... JAVA: /usr/local/Java/j2sdk1.4.1_02\bin\java. JAVA_OPTS: -Dprogram.name=run.bat. CLASSPATH: ;/usr/local/Java/j2sdk1.4.1_02\lib\tools.jar;C:\cvs\Head\jboss-head\build\output\jboss-4.0.0alpha\bin\\run.jar.===...10:10:12,250 ERROR [URLDeploymentScanner] MBeanException: Incomplete Deployment listing:Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes:[jboss:service=HAManagement]MBeans waiting for other MBeans:[EMAIL PROTECTED] { objectName: jboss:service=HAManagement state: CLASSMISSING}]Cause: Incomplete Deployment listing:Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes:[jboss:service=HAManagement]MBeans waiting for other MBeans:[EMAIL PROTECTED] { objectName: jboss:service=HAManagement state: CLASSMISSING}]10:10:12,265 INFO [URLDeploymentScanner] Started10:10:12,265 INFO [MainDeployer] Deployed package:file:/C:/cvs/Head/jboss-head/build/output/jboss-4.0.0alpha/server/all/conf/jboss-service.xml10:10:12,265 INFO [Server] JBoss started in 56s:406msScott StarkChief Technology OfficerJBoss Group, LLC---This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for?http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: RE: [JBoss-dev] [JL] Is it time for a new enterprise solution?
I am working on web based management application, at this point it only supports the currently implemented parts of the JSR 77 spec that exist in JBoss, but I envision this to be expanded to support all service related management offered by the JBoss platform. If there is sufficient interest, I can post this once I fix a few minor bugs * * * View thread online: http://jboss.org/forums/thread.jsp?forum=66&thread=14061 ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] ejb-name conflict, help me!!!
How I got around this in the MailService by just removing the java:/ from the jndi name if it exists. This may not be the best solution but it does get around object name that is not spec compliant. Scott * * * View thread online: http://jboss.org/forums/thread.jsp?forum=66&thread=14604 ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
Re: [JBoss-dev] Thinlet and the JBoss Console GUI?
yes, I am looking at it from two angles a client based GUI and also a web application that uses thinlets in an applet. I will post more info and also a working version when I get a little more of it functional. >>> [EMAIL PROTECTED] 09/17/02 06:35PM >>>Has anyone looked into Thinlet (http://www.thinlet.com) as a possiblewidget set for a GUI console?Looks promising... fast... but I haven't looked into it very deeply.--jason---This SF.NET email is sponsored by: AMD - Your access to the expertson Hammer Technology! Open Source & Linux Developers, register nowfor the AMD Developer Symposium. Code: EX8664http://www.developwithamd.com/developerlab___Jboss-development mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-development