Re: [JBoss-user] [newbie] Listening on a TCP socket in J2ee environment
Easiest way to do it is to write your component as an MBean. There are no socket listening or threading restrictions as with EJB, and you get lifecycle control, a management interface and intrumentation to boot. //Nicholas --- Samuel Cheung [EMAIL PROTECTED] wrote: Hi, Is there a way to listen on a TCP socket in J2ee environment (e.g. jboss)? I need to communicate with some existing server using some proprietary protocol. This existing server will send my j2ee application multiple requests on 1 socket. What is the best way to achieve that? Thank you. = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [Installation Configuration] - Re: JBoss and J2SDK 1.5.0 Problem
I did that, but for some reason, I am also having JSP compilation problems with JMX-Console. Generated servlet error: [javac] Compiling 1 source file [javac] error: error reading C:\JBossNet\server\net4cluster\tmp\deploy\tmp57160schedule-manager-service.xml; java.util.zip.ZipException: error in opening zip file [javac] 1 error Also some not-very-important-right-now issues with JPDA: C:\JBossNet\binrun -c net4cluster === . JBoss Bootstrap Environment . JBOSS_HOME: C:\JBossNet\bin\\.. . JAVA: C:\j2sdk1.5.0\bin\java . JAVA_OPTS: -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Dprogram.name=run.bat -Xms128m -Xmx512m . CLASSPATH: ;C:\j2sdk1.5.0\lib\tools.jar;C:\JBossNet\bin\\run.jar . === . ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_LOAD(509) [debugInit.c,L476] JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNA L(113) Press any key to continue . . . Oh well, its early days still.. //Nicholas --- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820435#3820435 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820435 It won't work unless you remove javax.management classes from your rt.jar. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Snoop On HttpSession Replication
I am trying to snoop in on the actual values being replicated in JBoss/Tomcat (3.2.3) HttpSession replication. It is quite an ugly object tree being stored in the session and we are trying to migrate over to a cluster. I have implemented a DSListener on the DistributedState MBean, but I am stumped trying to render any useful information from the Serializable passed to the listener callback. So far, I can only get the hash code. Can anyone recommend a snoop tool/method/class to get a better view of what's going on ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Snoop On HttpSession Replication
We are wrestling some issues involving session replication. They are (as far as I can tell) all application based. Does anyone have a tool/class/source that eases snooping on the exact values zipping back and forth ? I have implemented a logging DSListener and DSListenerEx, and although they notify me of a replication event, I am stumped on how to derive any useful information from the Serializable that is passed in the callback. Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss MQ doesnt create tables on mySQL
There is an unresolvable transaction in HSQL. The quickest way to get rid of this is to delete the files in jboss-home/server/server/data/hypersonic. //Nicholas --- Stefan Schuster [EMAIL PROTECTED] wrote: Thanks for the suggestion, but it didnt help This is a critical blocker, I have bought the JBoss documentation, but I cant find out how to make this work If I find a solution, I would like to contribute it as an example in some kind of FAQ. Help is still welcome ! Hi, you should add another depends tag depends optional-attribute-name=Datasourcejava:/MySQLDS/depends (not completely shure) -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] im Auftrag von [EMAIL PROTECTED] Gesendet: Di 20.01.2004 12:47 An: [EMAIL PROTECTED] Cc: Betreff: [JBoss-user] JBoss MQ doesnt create tables on mySQL Hi, I configured Jboss to use MySQL to persist JMS messages. On startup, I get the following message: --- 12:39:29,515 ERROR [PersistenceManager] Starting failed org.jboss.mq.SpyJMSException: Could not resolve uncommited transactions. Messag e recovery may not be accurate; - nested throwable: (java.sql.SQLException: Gene ral error, message from server: Table 'test.jms_messages' doesn't exist) at org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(Pers istenceManager.java:336) at org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceMana ger.java:1356) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1 92) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl ler.java:976) at $Proxy14.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:394) at org.jboss.system.ServiceController.start(ServiceController.java:411) at org.jboss.system.ServiceController.start(ServiceController.java:411) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea nDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen tScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS canner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A bstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1 92) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25
[JBoss-user] prepared-statement-cache-size: How to estimate an optimal size
What is a good estimation model for determining the prepared statement cache size ? About how much memory (or other overhead considerations) would anyone estimate a cached prepared statement will consume ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Monitoring, performance, response time
Zauber; Check out this toolkit: http://jrat.sourceforge.net/ It does bytecode instrumentation and after a run period you can see a whole array of stats for each method's elapsed time. It works quite nicely. It also supports JBoss 4 runtime AOP instrumentation. Cheers. //Nicholas --- [EMAIL PROTECTED] wrote: perhaps you have some nice ideas for the following problem. I want to monitor my applications. I need - the response time for method calls (I can write an interceptor for this) - the response time for the database accesses - client information (user or ip-adresse) Do you know a tool to extract these informations (no profiler, I will use it a productive environment). jrat for example have to shutdown before you become the logfile informations. Which is the best way for me to implement this features in jboss (3.x or 3.2). Jboss team: are you planing to implement some of this features in the near future? -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Monitoring, performance, response time - JRAT
Zauber; Sorry, I missed that you had referenced JRat. The shutdown is a problem, but a new rev of the software supports a triggered flush of the stats via an HTTP port. I am not sure if that rev is available yet, but I can ask Jeff to push it out there. Also, I am hoping to work with him to create an MBean so that stats can be viewed in the JMX-Console. It should be fairly trivial. //Nicholas --- Bill Burke [EMAIL PROTECTED] wrote: Are these web clients? I think you can write a filter to obtain client ip, maybe even user. For database access you would have to modify the execute statement of the WrappedStatement or WrappedPreparedStatement within the connector module. Bill [EMAIL PROTECTED] wrote: perhaps you have some nice ideas for the following problem. I want to monitor my applications. I need - the response time for method calls (I can write an interceptor for this) - the response time for the database accesses - client information (user or ip-adresse) Do you know a tool to extract these informations (no profiler, I will use it a productive environment). jrat for example have to shutdown before you become the logfile informations. Which is the best way for me to implement this features in jboss (3.x or 3.2). Jboss team: are you planing to implement some of this features in the near future? -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Exclude a class from being logged to the appender
You can raise the priority of the specific class: category name=com.x.mynoisyclass additivity=false priority value=ERROR/ /category //Nicholas --- Pitre, Russell [EMAIL PROTECTED] wrote: Does anyone know how I can EXCLUDE a certain class from being logged to the console appender. This class logs a ping message every 5 seconds and I don't want to see the messages on the console during development. Any help is greatly appreciated... appender name=CONSOLE class=org.apache.log4j.ConsoleAppender param name=Target value=System.out/ !-- CHANGE Value to debug, info, warn, etc...-- param name=Threshold value=info/ layout class=org.apache.log4j.PatternLayout !-- The default pattern: Date Priority [Category] Message\n -- param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] %m%n/ /layout /appender Thanx Russ- = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ***JBoss 3.2.2/Oracle 9i thin driver test running out of database cursors on HPUX11***
This is nearly always because the Statements, PreparedStatements, CallableStatements and ResultSets are not being closed properly. Make sure that: A. Finally blocks call the close() methods on each of those resources. Also make sure that the close() calls in the finally block are themselves in a try/catch so a failure in one does not blow you out of the finally before it is comlete. B. Make sure you do not reuse Statements or ResultSets without closing them first. //Nicholas --- Sasidharan, Manoj [EMAIL PROTECTED] wrote: Hello All, When we run our stress test, the number of Oracle database cursors keep increasing. Finally the system crashes with Max Cursors Exceeded error from Oracle. Any tips on how to tackle this? Thanks and Best Regards MS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] ***JBoss 3.2.2/Oracle 9i thin driver test runnin g out of database cursors on HPUX11*** works on BEA WLS 7.0
Was the prepared statement cache in 3.2.2 ? --- Adrian Brock [EMAIL PROTECTED] wrote: On Tue, 2004-01-06 at 19:59, Sasidharan, Manoj wrote: The same source build works just fine in Weblogic 7.0.SP4. Can we still suspect the code? Here are some facts: 1. Source code for building binaries (JBoss and Weblogic applications) are same 2. Oracle server/driver is the same Is there any way to set/configure the Prepared Statement Cache in JBoss? The max cursors message comes from not closing result sets. By spec, closing the statements should close result sets, but Oracle had problems with that in the past. I can't confirm that it was ever fixed. If you add track-statementstruetrack-statements/ to your oracle-ds.xml JBoss will inform you when you don't close statements. From 3.2.3RC1 it also gives you a nice stack trace telling you where you opened them. (This assumes you are closing your connections). The prepared statement cache is turned off by default. You can enable it with: prepared-statement-cache-size100/prepared-statement-cache-size meaning 100 cached statements per connection. You can find all these details in docs/dtd/jboss-ds_1_0.dtd Regards, Adrian rgds MS -Original Message- From: Nicholas [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 10:53 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] ***JBoss 3.2.2/Oracle 9i thin driver test running out of database cursors on HPUX11*** This is nearly always because the Statements, PreparedStatements, CallableStatements and ResultSets are not being closed properly. Make sure that: A. Finally blocks call the close() methods on each of those resources. Also make sure that the close() calls in the finally block are themselves in a try/catch so a failure in one does not blow you out of the finally before it is comlete. B. Make sure you do not reuse Statements or ResultSets without closing them first. //Nicholas --- Sasidharan, Manoj [EMAIL PROTECTED] wrote: Hello All, When we run our stress test, the number of Oracle database cursors keep increasing. Finally the system crashes with Max Cursors Exceeded error from Oracle. Any tips on how to tackle this? Thanks and Best Regards MS --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your
Re: [JBoss-user] ***JBoss 3.2.2/Oracle 9i thin driver test resulting in deadlock * **
Manoj; Deadlocks are usually an application problem involving the sequence in which locks are placed on shared resources. Here is a document you may find very helpful in resolving this issue: http://i3t.org/members/article.jsp?articleId=1595209 Cheers. //Nicholas --- Sasidharan, Manoj [EMAIL PROTECTED] wrote: Hello All, The stress test of our JBoss application results in application deadlocks. The test fails even when there are 6 concurrent users. Find enclosed are the stack trace of the deadlock detection by the JBoss server. Please let me know in case you need any additional information to analyse/understand the issue. Can anybody help us resolve this. Thanks in advance. rgds MS 2004-01-06 13:00:17,653 ERROR [STDERR] [Tue Jan 06 13:00:17 PST 2004][ERROR][145 f5721f530d8fc4383a15501859e205105c7e1][javax.ejb.EJBException:12]: null; CausedB yException is: Application deadlock detected, resource=org.jboss.ejb.plugins.lock.QueuedPes [EMAIL PROTECTED], bean=MapEntity, id=28, refs=5, tx=TransactionImpl:XidIm pl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual=], synched=Thread[R MI TCP Connection(12)-10.21.80.24,5,RMI Runtime], timeout=5000, queue=[TXLOCK wa itingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//71, B ranchQual=] id=0 thread=Thread[RMI TCP Connection(8)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=wo odstock.plx.com//73, BranchQual=] id=0 thread=Thread[RMI TCP Connection(3)-10.21 .80.24,5,RMI Runtime] queued=true], holder=TransactionImpl:XidImpl [FormatId=257 , GlobalId=woodstock.plx.com//75, BranchQual=], waitingResource=org.jboss.ejb.pl [EMAIL PROTECTED], bean=MapNames, id=13, refs=3, tx=Tr ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//75, BranchQual= ], synched=null, timeout=5000, queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [ FormatId=257, GlobalId=woodstock.plx.com//77, BranchQual=] id=0 thread=Thread[RM I TCP Connection(11)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK waitingTx=Tr ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual= ] id=0 thread=Thread[RMI TCP Connection(6)-10.21.80.24,5,RMI Runtime] queued=tru e], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257, GlobalId=woodst ock.plx.com//75, BranchQual=] 2004-01-06 13:00:17,673 ERROR [STDERR] [Tue Jan 06 13:00:17 PST 2004][CALL STACK ][145f5721f530d8fc4383a15501859e205105c7e1][javax.ejb.EJBException: null; Caused ByException is: Application deadlock detected, resource=org.jboss.ejb.plugins.lock.QueuedPes [EMAIL PROTECTED], bean=MapEntity, id=28, refs=5, tx=TransactionImpl:XidIm pl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual=], synched=Thread[R MI TCP Connection(12)-10.21.80.24,5,RMI Runtime], timeout=5000, queue=[TXLOCK wa itingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//71, B ranchQual=] id=0 thread=Thread[RMI TCP Connection(8)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK waitingTx=TransactionImpl:XidImpl [FormatId=257, GlobalId=wo odstock.plx.com//73, BranchQual=] id=0 thread=Thread[RMI TCP Connection(3)-10.21 .80.24,5,RMI Runtime] queued=true], holder=TransactionImpl:XidImpl [FormatId=257 , GlobalId=woodstock.plx.com//75, BranchQual=], waitingResource=org.jboss.ejb.pl [EMAIL PROTECTED], bean=MapNames, id=13, refs=3, tx=Tr ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//75, BranchQual= ], synched=null, timeout=5000, queue=[TXLOCK waitingTx=TransactionImpl:XidImpl [ FormatId=257, GlobalId=woodstock.plx.com//77, BranchQual=] id=0 thread=Thread[RM I TCP Connection(11)-10.21.80.24,5,RMI Runtime] queued=true, TXLOCK waitingTx=Tr ansactionImpl:XidImpl [FormatId=257, GlobalId=woodstock.plx.com//69, BranchQual= ] id=0 thread=Thread[RMI TCP Connection(6)-10.21.80.24,5,RMI Runtime] queued=tru e], waitingResourceHolder=TransactionImpl:XidImpl [FormatId=257, GlobalId=woodst ock.plx.com//75, BranchQual=] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java: 386) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFi nderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionCo ntainer.java:331) at org.jboss.ejb.Container.invoke(Container.java:700) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFa ctory.java:375) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSession Proxy.java:83) at $Proxy141.setMap(Unknown Source) at com.plx.efw.common.command.MapSetCommand.executeCommand(MapSetCommand.jav a:71) at com.plx.efw.common.command.SystemCommand.execute(SystemCommand.java:66
[JBoss-user] EntityInstanceCache - remove(String id): How do I derive the id ?
In the EntityInstanceCache.remove(String method), how do I derive the ID String from the primary key object that I want to remove from the cache ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EntityInstanceCache - remove(String id): How do I derive the id ?
So I would need a seperate property editor for each Entity Bean ? Ouch. I thought there was some magic going on that I could not figure out. In this case, I do not have the object. Simply the DB table and the values of the PK columns. Thanks. //Nicholas --- Adrian Brock [EMAIL PROTECTED] wrote: On Mon, 2004-01-05 at 22:46, Adrian Brock wrote: You have it the wrong way around. You need a javabean property editor that can create your primary key object from the string. If you have the Object why can't you just use remove(Object id); Regards, Adrian On Mon, 2004-01-05 at 22:40, Nicholas wrote: In the EntityInstanceCache.remove(String method), how do I derive the ID String from the primary key object that I want to remove from the cache ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Create Dynamic Queue in JBossMQ [was use of http-invoker]
I have been working on a JBoss MQ Admin API. It is still a bit rough, but 90% of it works now. I am still working on the security stuff, of which 0% seems to work. Source code attached. Feel free to drop me an email if you have any problems with it. //Nicholas --- Scott M Stark [EMAIL PROTECTED] wrote: The http-invoker handles RMI/HTTP transport. This has nothing to do with the jmx-console which provides an html interface to the JMX server. You have to write Java code that accesses the RMIAdaptor and invokes the JMS queue creation operation on the destination manager mbean if you use the http-invoker. Scott Stark Chief Technology Officer JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel GARDAIS Sent: Monday, December 29, 2003 4:27 AM To: jboss-user Subject: [JBoss-user] use of http-invoker Hi folks, Merry Chrismas and Happy new year to all What is the URL to dynamicly create a JMS queue using the http-invoker ? I already have a URL which points to jmx-console/HtmlAdaptor but I'd like not to have to deploy the jmx-console (just using the http-invoker) thanks, ionel ___ 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: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ mqadmin.zip Description: mqadmin.zip
Re: [JBoss-user] Design advice
I have been very successful with CMP, but all those additional features you are looking for (transactions, cache, security) are well supported by Hibernate. I would even hazard a guess that Hibernate may be a faster learning curve if you are doing this sort of thing for the first time. //Nicholas --- [EMAIL PROTECTED] wrote: Hi all, We are starting to migrate our datamodel from Lotus Domino databases to JBoss. At this time we are looking into using Entity Beans (CMP 2.0) for this purpose. But we are also looking into Hibernate. Our underlying database is MySQL. Especially, we might need inheritance mapping which probably is best supported by Hibernate. But, we also need transactions, cache, security, etc... (This is probably best supported by CMP). Which technology would you recommend for us to use? Regards, Harm de Laat Informatiefabriek The Netherlands --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Nukes forums are live on www.jboss.org
I just wwnt in there, and they are very snappy. Nice job ! //Nicholas --- Bill Burke [EMAIL PROTECTED] wrote: Can you all bang on it? Julien did a bunch of testing before hand and it seems to be working pretty good so far. Kudos to Julien's hard work. It looks pretty nice and is pretty fast. Bill --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jdbc difference oracle - hsql
Oracle is funny that way. Different results may occur for b=null and b is null In OraLogic, null is an unknown value, and hence is never equal to anything. --- Rupp, Heiko [EMAIL PROTECTED] wrote: Hi, I just encounter a different result from a finder Collection findFoo(String a, String b) select object o from xxx where o.a=?1 and o.b=?2 with a=test b=null hsql 1.7.1 with its driver does the expected thing and find a record (test, null) while Oracle9i with its thin driver doesn't find the same record. Any hint here? This is with JBoss 3.2.1 and 3.2.3 Thanks Heiko -- Heiko W. Rupp EMail: [EMAIL PROTECTED] Senior Consultant Telefon: +49 711 222 992 - 900 Cellent AG Finance SolutionsTelefax: +49 711 222 992 - 999 Calwer Str. 33 D-70173 Stuttgart --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78alloc_id371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle error
If you are using Java 1.4+, you should use the ojdbc14.jar library for the Oracle JDBC drivers. //Nicholas --- [EMAIL PROTECTED] wrote: It is not a driver problem, I´m using oracle classes12.zip driver. I´ve found the solution: I changed the page-size tag in standardjbosscmp-jdbc.xml from 1000 to 100 and now it works. What this tag means? I have found this workaround by proof and error... -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Miércoles, 03 de Diciembre de 2003 08:33 mañana To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Oracle error AFAICT, it is either a driver problem or there is a bind variable in the statement which is a reserved word. Could you try with another driver? [EMAIL PROTECTED] wrote: Hi all, I have a CMP entity bean that access to oracle 9i database. When I do the lookup it has no problem, but when I try to get some attribute (eg getName()) it gives the following error: org.jboss.tm.JBossTransactionRolledbackException: Load failed; CausedByException is: ORA-01745: invalid host/bind variable name ; CausedByException is: Load failed; CausedByException is: ORA-01745: invalid host/bind variable name ; nested exception is: javax.ejb.EJBException: Load failed; CausedByException is: ORA-01745: invalid host/bind variable name ; - nested throwable: (javax.ejb.EJBException: Load failed; CausedByException is: ORA-01745: invalid host/bind variable name ) I have found a solution to this error an it is to have less than 255 records in the table. When the returned collection has more than 255 CMP object it breaks. Does anyone know where should I change this configuration or what is wrong? I have looked in the conf dir but I did not found where... Regards, Hernán. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Datasource Dependencies - depends not working as expected
I am trying to take advantage of the depends in the data source definition files in 3.2.3RC1 and 3.2.3. Basically, I want to define the data source properties in my system properties and put ${x} tokens in the data source definition file. eg. datasources local-tx-datasource jndi-nameORACLEDSN/jndi-name connection-url${oracle.ds.jdbc.url}/connection-url driver-class${oracle.ds.jdbc.driver}/driver-class user-name${oracle.ds.jdbc.username}/user-name . . . dependsjboss:type=Service,name=SystemProperties/depends /local-tx-datasource /datasources etc. However, even though the SystemProperties mbean is defined in the depends tag, the data source still deploys first, making it fail. Once the SystemProperties service starts, touching the data source file makes it deploy fine. This seems inconsistent with dependencies I have used with custom MBean deployments in jboss-service.xml files. Any ideas ? Thanks ! //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] flushing cache with commit option A
You can call the MBean from the JMX Console. Look in the domain jboss.j2ee and look for the mbean that is named something like jndiName=your ejb jndi name,plugin=cache,service=EJB. Click on it and there is an operation called flush(). You can do it programatically using the RMIAdaptor as well. This strategy has worked really well for us. We have our app server aggresively caching in EJBs, but we have one app where reference data is maintianed, directly to the database. After each operation in the app, we flush the cache for the specific bean. //Nicholas --- Frank Morton [EMAIL PROTECTED] wrote: I'm using 3.2.2 in production with commit option A. Every now and then I'd like to do some SQL directly on the database, but doing so would get the cached entity bean content out of sync with the data. Usually it is with database content that I know is not being modified elsewhere (or I'm willing to take the risk). So, what I'd like to do is run the SQL and then somehow flush the caches, forcing the change to be loaded next time it is needed. Any way to do this with commit option A? --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS Test Harness - Fails on session.createTopic(String name)
I am porting some JMS performance test harnesses over to JBoss, but a common problem seems to be that the dynamic calls to session.createTopic(String name) are not supported. In lieu, I will code the harness to call the DynamicStateManager MBean to create the topics. Is this essentially correct ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jmx-invoker-adaptor-server.sar vs. jmx-rmi-adaptor.sar - Bad For WebConsole ?
) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTomcatService.java:545) at org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomcatService.java:309) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:394) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy4.start(Unknown Source) at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) at org.jboss.Main.boot(Main.java:150) at org.jboss.Main$1.run(Main.java:395) at java.lang.Thread.run(Thread.java:534) 08:58:09,450 ERROR [Engine] - Root Cause - java.lang.NullPointerException at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:297) --- Scott M Stark [EMAIL PROTECTED] wrote: You have to replace the deploy/jmx-invoker-adaptor-server.sar with the docs/examples/jmx/jmx-rmi-adaptor.sar. The jmx-invoker-adaptor-server.sar does not support the remoting of the jmx notifications in 3.2.2. -- Scott Stark Chief Technology Officer JBoss Group, LLC Nicholas wrote: I have been trying to get RMI based remote JMX notifications working on version of JBoss 3.2.2 and higher. So I went back to the exmaples
Re: [JBoss-user] commit options
Imagine there is you with your EJBs executing transactions and queries against your database. At the same time, there are a few other applications doing the same thing, but using direct SQL and not your EJBs. (This is setting aside all new and sophisticated cache invalidation schemes) Option A: This option gives you the best performance, since data is cached in your entity cache between transactions, with the assumptions that it is always valid. However, it is a risky assumptiopn in your scenario since the other applications may update the data in the database, and your entities will not know they are caching invalid or stale data. On the other hand, if your EJBs own the data, or you eliminate the other applications, your EJBs now have the single point of change to the database, so this aggressive caching is safe. One of the nice things here is that if you do have manageable exceptions to the single point of updates policy, you can programatically invalidate the cache of the specific entity bean. Option B: The other applications will not be going away and they are making changes to the database very frequently, vastly increasing the chances that cached entity data will be stale. In this case, the entity loads its relevant data at the begining of the transaction (to make sure it is completely up to date) and discards it at the end. There is no caching going on at all here. Option C: A bit fuzzy on this one, but it is basically where the data in the entity bean may be chached (?) at the beginning of a transaction, but will be discarded at the end. I am hard pressed to come up with a scenario for this one that fits in with JBoss but perhaps someone else will. Option D: This is like Option A, except that the cache invalidates after a configurable amount of time. This would be ideal if you were reading data from the database that the other applications were writing, but it was OK if you were n seconds behind. (Like 20 minute old stock quotes) Hope that clears it up. //Nicholas --- Ionel GARDAIS [EMAIL PROTECTED] wrote: Hi, There have been some posts about use of commit options. What are the different commit-options made for ? When to use one or other commit-option ? = -- Regards, Ionel ___ 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: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Remote JMX Notifications - Having Trouble With Example ch2 xmbean1 in JBoss 3.2.1
I have been trying to get RMI based remote JMX notifications working on version of JBoss 3.2.2 and higher. So I went back to the exmaples in the 3.2.1 docs (the latest I have...??) and ran the XMBean example TestXMBean1. It still works in JBoss 3.2.1 but no longer works in 3.2.2 or 3.2.3RC1. I get the same errors on both, outlined below. Is there an update for this example ? Is there something different I need to do ? Thanks ! //Nicholas C:\JBossDocs\321\AdminDevel\examplesant -Dchap=chap2 -Dex=xmbean1 run-example c:\j2sdk1.4.2\bin\java.exe -Xms64M -Xmx256M -classpath c:\j2sdk1.4.2\lib\tools.jar;C:\Jakarta\apache-ant-1.5.4\lib\xml-apis.jar;C:\Jakarta\apache-ant-1.5.4\ lib\xercesImpl.jar;C:\Jakarta\apache-ant-1.5.4\lib\optional.jar;C:\Jakarta\apache-ant-1.5.4\lib\clover.jar;C:\Jakarta\apache-ant-1.5.4\lib\ant.jar;C:\Program Fi les\Altova\xmlspy\XMLSpyInterface.jar -Dant.home=C:\Jakarta\apache-ant-1.5.4 org.apache.tools.ant.Main -Dchap chap2 -Dex xmbean1 run-example Buildfile: build.xml validate: [java] ImplementationTitle: JBoss [WonderLand] [java] ImplementationVendor: JBoss.org [java] ImplementationVersion: 3.2.2 (build: CVSTag=JBoss_3_2_2 date=200310182216) [java] SpecificationTitle: JBoss [java] SpecificationVendor: JBoss (http://www.jboss.org/) [java] SpecificationVersion: 3.2.2 [java] JBoss version is: 3.2.2 fail_if_not_valid: init: [echo] Using jboss.dist=C:/jboss-3.2.2 compile: run-example: prepare: chap2-ex1xmbean1-sar: run-examplexmbean1: [java] JNDIMap Class: org.jboss.mx.modelmbean.XMBean [java] JNDIMap Operations: [java] + void start() [java] + void stop() [java] + void put(java.lang.Object chap2.xmbean:service=JNDIMap,java.lang.Object chap2.xmbean:service=JNDIMap) [java] + java.lang.Object get(java.lang.Object chap2.xmbean:service=JNDIMap) [java] + java.lang.String getJndiName() [java] + void setJndiName(java.lang.String chap2.xmbean:service=JNDIMap) [java] + [Ljava.lang.String; getInitialValues() [java] + void setInitialValues([Ljava.lang.String; chap2.xmbean:service=JNDIMap) [java] java.lang.reflect.UndeclaredThrowableException [java] at $Proxy0.addNotificationListener(Unknown Source) [java] at org.jboss.chap2.xmbean.TestXMBean1.main(TestXMBean1.java:74) [java] Caused by: java.lang.NoSuchMethodException: javax.management.MBeanServer.addNotificationListener(javax.management.ObjectName, org.jboss.jmx.adaptor. rmi.RMINotificationListener, javax.management.NotificationFilter, java.lang.Object) [java] at java.lang.Class.getMethod(Class.java:978) [java] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:183) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) [java] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:367) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) [java] at sun.rmi.transport.Transport$1.run(Transport.java:148) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) [java] at java.lang.Thread.run(Thread.java:534) [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) [java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) [java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135) [java] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96) [java] at org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor.invoke
Re: [JBoss-user] Remote JMX Notifications - Having Trouble With Example ch2 xmbean1 in JBoss 3.2.1
Perfect. Thanks. //Nicholas --- Scott M Stark [EMAIL PROTECTED] wrote: You have to replace the deploy/jmx-invoker-adaptor-server.sar with the docs/examples/jmx/jmx-rmi-adaptor.sar. The jmx-invoker-adaptor-server.sar does not support the remoting of the jmx notifications in 3.2.2. -- Scott Stark Chief Technology Officer JBoss Group, LLC Nicholas wrote: I have been trying to get RMI based remote JMX notifications working on version of JBoss 3.2.2 and higher. So I went back to the exmaples in the 3.2.1 docs (the latest I have...??) and ran the XMBean example TestXMBean1. It still works in JBoss 3.2.1 but no longer works in 3.2.2 or 3.2.3RC1. I get the same errors on both, outlined below. Is there an update for this example ? Is there something different I need to do ? Thanks ! //Nicholas --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Load Balancing Failover For JMX RMIAdapter
I am trying to set up a cluster of MBean services where we have a set of custom MBeans. I would like to use load balancing and failover for the MBean clients, but it I realize that jmx/rmi/RMIAdaptor is not HA ready. (Using 3.2.1, 3.2.2 and 3.2.3RC1) Reviewing the docs, I tried to implement this example: HAPartition myPartition = (HAPartition)ctx.lookup(/HAPartition/ + partitionName); HARMIServer rmiserver = new HARMIServerImpl(myPartition, MyService, MyService.class, myService); MyService stub = (MyService)rmiserver.createHAStub(new RoundRobin()); I am not sure if this is the right way to go, but screw the torpedoes The first thing I ran into is that although HARMIServerImpl implements createHAStub(), the interface HARMIServer does not. So I did this: Object sourceObject = ctx.lookup(jmx/rmi/RMIAdaptor); HAPartition myPartition = (HAPartition)ctx.lookup(/HAPartition/ + partitionName); HARMIServer rmiserver = new HARMIServerImpl(myPartition, HARMIAdaptor, sourceObject.getClass(), sourceObject); // Here I cast the HARMIServer to a HARMIServerImpl org.jboss.jmx.adaptor.rmi.RMIAdaptor stub = (org.jboss.jmx.adaptor.rmi.RMIAdaptor)((HARMIServerImpl)rmiserver).createHAStub(new RoundRobin()); Then I take the stub and bind it back into JNDI where I can retrieve it later. Well it compiled fine..(famous last words), but at runtine I get this error: java.lang.IllegalArgumentException: $Proxy25 is not an interface at java.lang.reflect.Proxy.getProxyClass(Proxy.java:340) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552) at org.jboss.ha.framework.server.HARMIServerImpl.createHAStub(HARMIServerImpl.java:184) at com.adp.sbs.jboss.ha.HAExporter.start(HAExporter.java:58) Am I going in the right direction ? Thanks. //Nicholas --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Load Balancing Failover For JMX RMIAdapter - Solved - But One More Thing...
I figured out what I was doing wrong after some drifting through the source code. Anyways, now it load balances fine. (Instead of sourceObject.getClass(), I used org.jboss.jmx.adaptor.rmi.RMIAdaptor.class.) However, I observed that when I tried to test the failover by stopping one of my servers, the call to the **stopping** server failed saying Cause: javax.management.InstanceNotFoundException: myDomain:name=SyncProcess is not registered. Obviously the call went in after my MBean had been unregistered, but before the RMI service had stopped. Other than implementing a retry loop in the client, can anyone recommend a solution to this ? Thanks. //Nicholas --- Nicholas [EMAIL PROTECTED] wrote: I am trying to set up a cluster of MBean services where we have a set of custom MBeans. I would like to use load balancing and failover for the MBean clients, but it I realize that jmx/rmi/RMIAdaptor is not HA ready. (Using 3.2.1, 3.2.2 and 3.2.3RC1) Reviewing the docs, I tried to implement this example: HAPartition myPartition = (HAPartition)ctx.lookup(/HAPartition/ + partitionName); HARMIServer rmiserver = new HARMIServerImpl(myPartition, MyService, MyService.class, myService); MyService stub = (MyService)rmiserver.createHAStub(new RoundRobin()); I am not sure if this is the right way to go, but screw the torpedoes The first thing I ran into is that although HARMIServerImpl implements createHAStub(), the interface HARMIServer does not. So I did this: Object sourceObject = ctx.lookup(jmx/rmi/RMIAdaptor); HAPartition myPartition = (HAPartition)ctx.lookup(/HAPartition/ + partitionName); HARMIServer rmiserver = new HARMIServerImpl(myPartition, HARMIAdaptor, sourceObject.getClass(), sourceObject); // Here I cast the HARMIServer to a HARMIServerImpl org.jboss.jmx.adaptor.rmi.RMIAdaptor stub = (org.jboss.jmx.adaptor.rmi.RMIAdaptor)((HARMIServerImpl)rmiserver).createHAStub(new RoundRobin()); Then I take the stub and bind it back into JNDI where I can retrieve it later. Well it compiled fine..(famous last words), but at runtine I get this error: java.lang.IllegalArgumentException: $Proxy25 is not an interface at java.lang.reflect.Proxy.getProxyClass(Proxy.java:340) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:552) at org.jboss.ha.framework.server.HARMIServerImpl.createHAStub(HARMIServerImpl.java:184) at com.adp.sbs.jboss.ha.HAExporter.start(HAExporter.java:58) Am I going in the right direction ? Thanks. //Nicholas --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] java thread dumper for windows background processes - (Not for background processes)
service. I am looking for something that would enable me to take a thread dump from a java process running in the background. As far as I know only CTLR BREAK will trigger a thread dump on windows java and so I guess I need some tool that would send this as an event to the java process. Regards, Sebastian ___ This message is for the named recipient's use only. It may contain sensitive and private proprietary information. No confidentiality is waived or lost by any incorrect transmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Sakonnet Technology, LLC and its subsidiaries reserve the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as preliminary only and subject to our formal written confirmation. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ ThreadMonster.sar Description: ThreadMonster.sar
RE: [JBoss-user] How to make jboss as app server in JDeveloper10g
Despite the common blood between the two products, the guy asked about JDeveloper, not JBuilder. JBuilder 10 (Beta) has support for JBoss. //Nicholas --- Rod Macpherson [EMAIL PROTECTED] wrote: JBuilder has not added build-in support for JBoss and that is a very telling omission. I think it would be inappropriate to go into details of one customer's anecdotal report of how JBuilder Enterprise was a miserable failure. Instead let me suggestion that you investigate using XDoclet for cross-platform descriptors and Eclipse and ANT for development. They are indeed free however that is last on the list of superior features with respect to JBuilder Enterprise. I am sure there are varying opinions on that but you have mine for what it's worth. I had used JBuilder 2.0 up to JBuilder 7.0 Enterprise which led to me switching to Eclipse. To answer your question, you will need the JBuilder JBoss plug-in and they should have that at Borland's code-central. -Original Message- From: Shiv Shankar Prasad [mailto:[EMAIL PROTECTED] Sent: Thursday, October 16, 2003 10:09 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] How to make jboss as app server in JDeveloper10g Hi All, I am facing problem in using JDeveloper10g with jboss. I want to user Jboss3.2.2RC4 as a default server instead OC4J. How can I do that. Please help me. Regards Shiv Shankar = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email sponsored by: Enterprise Linux Forum Conference Expo The Event For Linux Datacenter Solutions Strategies in The Enterprise Linux in the Boardroom; in the Front Office; in the Server Room http://www.enterpriselinuxforum.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Installing as a windows service
We use FireDaemon (www.firedaemon.com) and it is great. //Nicholas --- Brian McSweeney [EMAIL PROTECTED] wrote: Hi all, I know that this has come up before. And I know that it's on the forums to use Alexander soft to install windows as a service. However I'm getting problems running jboss as a service if it's other than the default service. Could anyone tell me if there is any other way to install jboss as a windows service, or give me their experience with it. Thanks very much, Brian = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()
Ouch... I used the name a sit was displayed in JMX Console, but when consulting the configuration file, it was wrong. I have corrected that, so the JMS dependencies are: dependsjboss.mq.destination:service=Queue,name=ClientChangeNotification/depends dependsjboss.mq:service=InvocationLayer,type=JVM/depends (The configuration was: mbean code=org.jboss.mq.server.jmx.Queue name=jboss.mq.destination:service=Queue,name=ClientChangeNotification depends optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager/depends /mbean ) However, I just hot deployed the SAR and it did not run the start method, and there were no errors in the server.log. //Nicholas --- Adrian Brock [EMAIL PROTECTED] wrote: Is the queue name correct? Does it start if you remove that dependency? Post the queue deployment descriptor. Regards, Adrian On Wed, 2003-10-08 at 23:39, Nicholas wrote: Yes, sorry. It does, but I cannot tell why. The dependendencies listed below work if we exclude the JMS MBeans. 2003-10-08 17:59:37,239 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: none MBeans waiting for classes: none MBeans waiting for other MBeans: [ObjectName: jboss:service=DataSyncController state: CONFIGURED I Depend On: jboss.jca:name=UpdateCacheDS,service=LocalTxCM jboss.jca:name=OracleDS,service=LocalTxCM jboss.jca:name=FLTStagingDS,service=LocalTxCM jboss.j2ee:jndiName=ejb/ClientManager,service=EJB jboss.j2ee:jndiName=ejb/UserManager,service=EJB jboss.j2ee:jndiName=ejb/Client,service=EJB jboss.j2ee:jndiName=ejb/Combo,service=EJB jboss.j2ee:jndiName=ejb/ClientAssignment,service=EJB jboss.j2ee:jndiName=ejb/ClientInactivation,service=EJB jboss.j2ee:jndiName=ejb/TaxEvent,service=EJB jboss.j2ee:jndiName=ejb/TaxEventTransaction,service=EJB jboss.j2ee:jndiName=ejb/QuarterlyProcessStatus,service=EJB jboss.j2ee:jndiName=ejb/FltHistoryManager,service=EJB jboss.j2ee:jndiName=ejb/UserManagerLocal,service=EJB jboss.j2ee:jndiName=ejb/ClientBits,service=EJB jboss.j2ee:jndiName=ejb/DataSynchLocal,service=EJB jboss.mq:service=InvocationLayer,type=JVM jboss.mq.destination:name=ClientChangeNotification,service=Queue jboss:service=CacheService jboss:service=EBSScheduler Depends On Me: ] Thanks. //Nicholas --- Adrian Brock [EMAIL PROTECTED] wrote: And the error message is? Something about incomplete deployments? Regards, Adrian On Wed, 2003-10-08 at 22:49, Nicholas wrote: We have SAR that depends on a JMS Connection Factory and a Queue. We have attempted to set them as dependencies in the SAR's jboss-service, but doing so causes the start() method to never be called at jboss startup time. However, not putting in the dependencies results in a JNDI lookup failure when the MBean looks up the ConnectionFactory and/or the Queue. The dependencies we put in look like this: dependsjboss.mq:service=InvocationLayer,type=JVM/depends dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends Which MBeans should I be putting the dependencies on to make this work ? Thanks ! //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443
[JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()
We have SAR that depends on a JMS Connection Factory and a Queue. We have attempted to set them as dependencies in the SAR's jboss-service, but doing so causes the start() method to never be called at jboss startup time. However, not putting in the dependencies results in a JNDI lookup failure when the MBean looks up the ConnectionFactory and/or the Queue. The dependencies we put in look like this: dependsjboss.mq:service=InvocationLayer,type=JVM/depends dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends Which MBeans should I be putting the dependencies on to make this work ? Thanks ! //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SAR Has Dependency On JMS Connection Factory Queue - But No MBean start()
Yes, sorry. It does, but I cannot tell why. The dependendencies listed below work if we exclude the JMS MBeans. 2003-10-08 17:59:37,239 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: none MBeans waiting for classes: none MBeans waiting for other MBeans: [ObjectName: jboss:service=DataSyncController state: CONFIGURED I Depend On: jboss.jca:name=UpdateCacheDS,service=LocalTxCM jboss.jca:name=OracleDS,service=LocalTxCM jboss.jca:name=FLTStagingDS,service=LocalTxCM jboss.j2ee:jndiName=ejb/ClientManager,service=EJB jboss.j2ee:jndiName=ejb/UserManager,service=EJB jboss.j2ee:jndiName=ejb/Client,service=EJB jboss.j2ee:jndiName=ejb/Combo,service=EJB jboss.j2ee:jndiName=ejb/ClientAssignment,service=EJB jboss.j2ee:jndiName=ejb/ClientInactivation,service=EJB jboss.j2ee:jndiName=ejb/TaxEvent,service=EJB jboss.j2ee:jndiName=ejb/TaxEventTransaction,service=EJB jboss.j2ee:jndiName=ejb/QuarterlyProcessStatus,service=EJB jboss.j2ee:jndiName=ejb/FltHistoryManager,service=EJB jboss.j2ee:jndiName=ejb/UserManagerLocal,service=EJB jboss.j2ee:jndiName=ejb/ClientBits,service=EJB jboss.j2ee:jndiName=ejb/DataSynchLocal,service=EJB jboss.mq:service=InvocationLayer,type=JVM jboss.mq.destination:name=ClientChangeNotification,service=Queue jboss:service=CacheService jboss:service=EBSScheduler Depends On Me: ] Thanks. //Nicholas --- Adrian Brock [EMAIL PROTECTED] wrote: And the error message is? Something about incomplete deployments? Regards, Adrian On Wed, 2003-10-08 at 22:49, Nicholas wrote: We have SAR that depends on a JMS Connection Factory and a Queue. We have attempted to set them as dependencies in the SAR's jboss-service, but doing so causes the start() method to never be called at jboss startup time. However, not putting in the dependencies results in a JNDI lookup failure when the MBean looks up the ConnectionFactory and/or the Queue. The dependencies we put in look like this: dependsjboss.mq:service=InvocationLayer,type=JVM/depends dependsjboss.mq.destination:name=ClientChangeNotification,service=Queue/depends Which MBeans should I be putting the dependencies on to make this work ? Thanks ! //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] All The Ports JBoss Listens On
We are trying to document all the ports JBoss opens up (for the hosting center guys). In this case, we are using 3.2.0-tomcat-4.1.24. I am pretty comfortable with the 8*** series, and then the 1*** series, but the whole 3*** series is a mystery to me. java.exeTCP 1099Naming Service (JNDI) java.exeTCP 1701HyperSonic SQL javaw.exe TCP 3060 java.exeTCP 3078 java.exeTCP 3079 java.exeTCP 3080 java.exeTCP 3081 java.exeTCP 3082 java.exeTCP 3083 java.exeTCP 3084 java.exeTCP 3085 java.exeTCP 3089 java.exeTCP 3090 java.exeTCP 3091 java.exeTCP 3092 java.exeTCP 3093 java.exeTCP 3094 java.exeTCP 3095 java.exeTCP 3096 java.exeTCP 3097 java.exeTCP 3098 java.exeTCP 3099 java.exeTCP 3100 java.exeTCP 3104 java.exeTCP 3108 java.exeTCP 3112 java.exeTCP 3114 java.exeTCP 3116 java.exeTCP 3118 java.exeTCP 3137 java.exeTCP 3153 java.exeTCP 3155 java.exeTCP 3157 java.exeTCP 3161 java.exeTCP 3167 java.exeTCP 3173 java.exeTCP 3179 java.exeTCP 3183 java.exeTCP 3192 java.exeTCP 3196 java.exeTCP 3198 java.exeTCP 3201 java.exeTCP 8009Tomcat AJP 1.3 java.exeTCP 8083JBoss Web Service java.exeTCP 8090JMS Binding Port (UIL2) java.exeTCP 8091JMS Binding Port (OIL2) java.exeTCP 8092JMS Binding Port (UIL) java.exeTCP 8093JMS Binding Port (OIL) java.exeTCP 8881Tomcat HTTP 1.1 Any idea what these ports are ? = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] local session beans
Is the test client in a seperate VM ? If so, that is the problem. Local beans are only accessible in the same VM. //Nicholas --- Butt, Dudley [EMAIL PROTECTED] wrote: Hi, I seem to be having a problem trying to reference my local session beans from a small test client I wrote, any ideas? Thanx NOTICE: This message contains privileged and confidential information intended only for the person or entity to which it is addressed. Any review, retransmission, dissemination, copy or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient, is prohibited. If you received this message in error, please notify the sender immediately by e-mail, facsimile or telephone and thereafter delete the material from any computer. The New Africa Capital Group, its subsidiaries or associates do not accept liability for any personal views expressed in this message. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] local session beans
You have a couple of options, but they basically revolve around the same principal: You need a bridge that can be invoked remotely, but that runs in the JBoss VM and can therefore invoke the local beans. Check out Cactus, which does this via servlets. You might also consider using an MBean which would act as your JUnit proxy and you can call it over RMI. We also use something called EJBRouter which uses a servlet and reflection to invoke the beans. You call it in your client using HTTPClient. You supply the name of the bean, the name of the method and an array of arguments. It will return the object returned by your local bean method. Ping me off list and I will send you the source. //Nicholas --- James Black [EMAIL PROTECTED] wrote: Stephane Nicoll wrote: If you are trying to access your bean from a test running outside JBoss it's normal. Local SB can be accessed inside JBoss only. So how can you unit test the local SBs if they have to run inside JBoss? I am guessing that is why my unit tests fail when I try getting the LocalHome interface. -- We do not lose our identity in our relations with others; in part, at least, we achieve our identity by those relations. Tony Blair, 1993 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss welcomes the Hibernate project
What does this mean for CMP2 support in JBoss 3 and 4 ? Will you continue to develop it by implementing the spec. with Hibernate ? Or will CMP users continue to use the current engine ? Or something else ? --- Bill Burke [EMAIL PROTECTED] wrote: Hibernate will be replacing JBossDO. Gavin is on JDO 2 expert committee. Alex will be joining it shortly too and is already on mail list for JDO 2. Barlow, Dustin wrote: Will Hybernate also be used to implement JBoss' JDO solution (ie JBossDO) as well? Dustin -Original Message- From: Bill Burke [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 2:07 PM To: Jboss-Dev; JBoss 2 Subject: [JBoss-user] JBoss welcomes the Hibernate project All, I would sincerely like to welcome Gavin and Hibernate to the JBoss Group and JBoss.org umbrella. I can't tell you how incredibly psyched and excited we at JBoss are about this. Over the past year, I can't tell you how many times we've encountered customers that are using Hibernate or are looking to use Hibernate to replace the clunky design that EJB CMP is. Technically this is a perfect marriage for both projects. We at JBoss have been looking at replacing our aging CMP persistence for over a year now in JBoss 4.0. We are excited that we will be able to leverage Hibernate as the backbone of our persistence solutions rather than having to patch our existing, aging solution or rewriting it from scratch. Hibernate will also become part of our POJO/AOP based solution and a key component of our aspect-oriented middleware offering. These two things alone will expand the userbase and developer base of Hibernate. This means more people finding bugs and more people fixing bugs. JBoss developers have also done a lot of distributed caching work that will be applicable to Hibernate. We will also help Gavin create tighter integration of Hibernate with JBoss for those of you who are interested in that. Things like packaged Hibernate components that can be hot-deployed. JMX management of Hibernate components. Those are just a few of the things that we can introduce. JBoss Group is proud to pionner a model we call Professional Open Source whereby JBoss.org grows and JBoss Group recruits the top talent from succesful open source efforts. It enables developers to work fulltime, become pro, on their own projects. Recently JBoss Group recruited Remy Maucherat, the lead developer of Tomcat 5, Julien Viet the developer of Nukes, Bela Ban, creator of JavaGroups, more are coming. JBG offers the rare opportunity to turn from hobbyist open source to professional open source. All core JBoss developers are pro themselves(myself included). JBoss Group professional open source sponsors the top developers to work full time on their projects and thus provides a boost to the projects involved by sponsoring their leaders. Finally the availability of professional services is a boost to corporate adoption of succesful open source projects such as Hibernate. We strongly believe this is the way of the future at JBoss. All and all, I hope you all look favorably on this new relationship. I know I do. Thanks all! Bill -- Bill Burke Chief Architect JBoss Group LLC. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Bill Burke Chief Architect JBoss Group LLC. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossMX - Still distributed standalone ?
The most recent distribution of JBossMX on Sourceforge is JBossMX 1.1.2. Is this more or less up to date with JBoss 3.2.X or is it no longer distributed standalone ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] using JBoss-QL in an ejbSelect method?
Yes. Using JBoss declared SQL, you basically override the SQL defined in the ejb.select. An example from our code: * @ejb.finder * method-intf=LocalHome * signature=Collection findMaxEventForClient(int clientId) * query=SELECT OBJECT(e) FROM Event where e.clientId = ?1 * result-type-mapping=Local [EMAIL PROTECTED] * method-intf=LocalHome * signature=Collection findMaxEventForClient(int clientId) * from= * where=event_id = (select max(event_id) from client c, event e where c.client_id = e.client_id and c.client_id = {0}) * order= * alias=e * strategy=on-load * page-size=1 * eager-load-group=default * //Nicholas --- Matthew Hixson [EMAIL PROTECTED] wrote: I was just wondering if its possible to make use of JBossQL in an ejbSelect method. We've gone to the trouble of extending JBossQL to include now(), but I'd like to make use of it from within an ejbSelect method. /** * @ejb.select * result-type-mapping=Local * query=select o.contentId from v_content o * where o.contract.contractId = ?1 * and o.availableStartDate is not NULL * and o.availableEndDate is not NULL * and o.contract.startDate is not NULL * and o.contract.endDate is not NULL * and o.approvalCode = 97 * and now() o.availableStartDate and * now() o.availableEndDate * and now() o.contract.startDate and * now() o.contract.endDate * order by o.availableStartDate desc * * @param contractId * @return Collection * @throws FinderException */ public abstract Collection ejbSelectAvailableContentIdsByContractId(Integer contractId) throws FinderException; Is is possible to add an xdoclet tag to make that ejbSelect method use JBoss-QL rather than EJB-QL? We're using xdoclet 1.2b3. Thanks, -M@ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] ClientLoginModule
Another one here: http://www.javaworld.com/javaworld/jw-08-2001/jw-0831-jaas.html --- Holger Baxmann [EMAIL PROTECTED] wrote: On Mon, 25 Aug 2003 16:07:27 +0100, Marco Tedone [EMAIL PROTECTED] wrote: Hi, could someone please forward me where I could find any documentation on how to use the ClientLoginModule in jboss? From the login-config.xml file, I can read that this can be used by Servlet which try to access an EJB (exactly what I'm going to do). A good starting point will the google search JAAS Tutorial provide ... for example: http://java.sun.com/j2se/1.4.1/docs/guide/security/jaas/tutorials/ bax Thanks, Marco --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How to get EJB's LocalHome from MBean?
The global jndi name basically starts at the root, and does not implement the java:/comp environment. So when you do a lookup of the home in the global from an MBean, you just get an InitialContext() and then lookup: MyLocalHome or ejb/MyLocalHome It also helps to use the JNDIViewer in the JMX-Console which gives you a map of the entire JNDI tree. I never leave home without it :) //Nicholas --- Steven Harris [EMAIL PROTECTED] wrote: What is this global JNDI name? Could you give me an example? -Original Message- From: Alexey Loubyansky [mailto:[EMAIL PROTECTED] Sent: Saturday, August 23, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to get EJB's LocalHome from MBean? Milen Dyankov wrote: Hi, can you please explain how can one call Session or Entity Bean from an MBen? I was under the impression that because the EJB and the MBean are deployed in the same JBoss instance (does this means same VM?) Yes. The code below is ok except you should use bean's (global) JNDI name. MBean's do not have Enterprise Naming Context (aka ENC) like EJB. alex something like : ... Context initial = new InitialContext(); MyBeanLocalHome objref = (MyBeanLocalHome)initial.lookup(java:comp/env/MyBean); ... will work in my MBean, but it doesn't. I get javax.naming.NameNotFoundException: env not bound May be I should configure this in jboss-service.xml. Currently it is generated by XDoclet and looks something like mbean code=pl.laser name=LASER:application=MyApp,service=MyService xmbean-dd=pl/laser/myservice.xml /mbean Can someone provide an example code of single-method MBean calling helloWorld of some SLSB? Thanks in advance Milen --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Sar deployment order question
In order to put a dependency in the SAR on a local data source called OracleDS, put this tag in the jboss-service.xml: dependsjboss.jca:name=OracleDS,service=LocalTxCM/depends //Nicholas --- Steven Harris [EMAIL PROTECTED] wrote: Actually I misread your question, but I think the answer is similar. I think you need to declare a dependency on the Service or Services that connect those datasources and bind them into JNDI. I'm not sure exactly which ones. -Original Message- From: Steven Harris [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:27 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] RE: [JBoss-user] Sar deployment order question You can make your application an MBean in an ear with your jar and sar included in that ear. In your jboss-service.xml mbean def, you can put dependsjboss:service=Naming/depends to declare that starting your application depends on JNDI naming service being started. In the examples for JBoss Admin Development, look at the examples for chapter 2. -Original Message- From: Stephane Nicoll [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 11:32 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Sar deployment order question First of all, I will put those JAR and WAR into an EAR file, not a SAR. Then apart from that, sorry I don't know the answer :/ On Thu, 2003-08-21 at 11:52, Davide Pozza wrote: Hi all I've packager my application's jar and war into a sar archive and at the first startup of jboss I receive many deployment errors. I know that this is because the datasources used by my application are deployed and bounded to jndi after the sar deployment, but I don't know hot to tell jboss that my application has to be deployed at the end of the startup process. Any suggestions? Thanks Davide = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP2 JDBCCMP2xFieldBridge Storing Non-Dirty Fields [FIX CONFIRMED]
Works now. Thanks. //Nicholas --- Alexey Loubyansky [EMAIL PROTECTED] wrote: It is fixed in 3.2.2RC3 in CVS. alex Nicholas wrote: JBoss 3.2.2RC2 Win32 JDK 1.4.2 I have an entity bean which is being updated with a coarse grained method that passes a value object which was previosuly retrieved. In this test case, only one field was updated, yet the store command stores every field (except the PK). Here is my log: 2003-08-17 22:47:25,899 346508 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PayeeCheck] (RMI TCP Connection(2)-169.254.25.129:) Executing SQL: SELECT EVENT_ID, PAYEE_ID, CHECK_SEQ, CHECK_TYPE_CD, CHECK_NUMBER, CHECK_AMOUNT, SUPPRESS_DIRECT_DEPOSIT, CREATED, UPDATED, PAYEE_ID, EVENT_ID FROM PAYEE_CHECK WHERE (PAYEE_CHECK_ID=?) 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeCheckId] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=1, jdbcType=INTEGER, value=748 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.eventId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=1, javaType=int, Simple, value=76 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=2, javaType=int, Simple, value=373 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkSeq] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=3, javaType=int, Simple, value=1 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkTypeCd] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=4, javaType=java.lang.String, Simple, value=R 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkNumber] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=5, javaType=java.lang.String, Simple, value=001 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkAmount] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=6, javaType=java.lang.Double, Simple, value=0.0 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.suppressDirectDeposit] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=7, javaType=java.lang.String, Simple, value=2 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.created] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=8, javaType=java.util.Date, Simple, value=2003-07-24 00:00:00.0 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.updated] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=9, javaType=java.util.Date, Simple, value=2003-08-17 00:00:00.0 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=10, javaType=int, Simple, value=373 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.eventId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=11, javaType=int, Simple, value=76 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.PayeeCheck] (RMI TCP Connection(2)-169.254.25.129:) Store command NOT executed. Entity is not dirty: pk=[payeeCheck:]748 2003-08-17 22:47:25,949 346558 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.PayeeCheck] (RMI TCP Connection(2)-169.254.25.129:) Executing SQL: UPDATE PAYEE_CHECK SET EVENT_ID=?, PAYEE_ID=?, CHECK_SEQ=?, CHECK_TYPE_CD=?, CHECK_NUMBER=?, CHECK_AMOUNT=?, SUPPRESS_DIRECT_DEPOSIT=?, CREATED=?, UPDATED=? WHERE PAYEE_CHECK_ID=? 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.eventId] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=1, jdbcType=INTEGER, value=76 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeId] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=2, jdbcType=INTEGER, value=373 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkSeq] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=3, jdbcType=INTEGER, value=1 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkTypeCd] (RMI TCP Connection(2
Re: [JBoss-user] JMS connection factory
Assuming the default server: Edit the file jboss-home\server\default\deploy\jms\jbossmq-service.xml. Add a new XML MBean definition using the existing ones as a template. For example: mbean code=org.jboss.mq.il.uil2.UILServerILService name=jboss.mq:service=InvocationLayer,type=UIL2 depends optional-attribute-name=Invokerjboss.mq:service=Invoker/depends attribute name=ConnectionFactoryJNDIRefUIL2ConnectionFactory/attribute attribute name=XAConnectionFactoryJNDIRefUIL2XAConnectionFactory/attribute attribute name=ServerBindPort8093/attribute attribute name=PingPeriod6/attribute attribute name=EnableTcpNoDelaytrue/attribute !-- Used to disconnect the client if there is no activity -- !-- Ensure this is greater than the ping period -- attribute name=ReadTimeout7/attribute !-- The size of the buffer (in bytes) wrapping the socket -- !-- The buffer is flushed after each request -- attribute name=BufferSize2048/attribute !-- Large messages may block the ping/pong -- !-- A pong is simulated after each chunk (in bytes) for both reading and writing -- !-- It must be larger than the buffer size -- attribute name=ChunkSize100/attribute /mbean //Nicholas --- shahin [EMAIL PROTECTED] wrote: Hi list, How can I create new ConnectionFactory in JBoss3.2.1 Thanks. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss DataSource
Edgar; Can you supply some stack traces on those sqlExceptions ? //Nicholas --- Edgar Silva [EMAIL PROTECTED] wrote: Hi Folks... I have one Application running a Oracle DataSource, after some sqlexceptions, JBoss or Oracle closes Connection, resulting in a NullPointerException when trying to use DataSouce... Somebody had similar problem? And how you solve it? Regards Edgar --- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by Dice.com. Did you know that Dice has over 25,000 tech jobs available today? From careers in IT to Engineering to Tech Sales, Dice has tech jobs from the best hiring companies. http://www.dice.com/index.epl?rel_code=104 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP2 JDBCCMP2xFieldBridge Storing Non-Dirty Fields
)-169.254.25.129:) Set parameter: index=5, jdbcType=VARCHAR, value=001 2003-08-18 10:37:22,070 115616 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkAmount] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=6, jdbcType=DOUBLE, value=0.0 2003-08-18 10:37:22,070 115616 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.suppressDirectDeposit] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=7, jdbcType=VARCHAR, value=2 2003-08-18 10:37:22,070 115616 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.created] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=8, jdbcType=TIMESTAMP, value=Thu Jul 24 00:00:00 EDT 2003 2003-08-18 10:37:22,070 115616 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.updated] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=9, jdbcType=TIMESTAMP, value=Mon Aug 18 00:00:00 EDT 2003 2003-08-18 10:37:22,070 115616 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeCheckId] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=10, jdbcType=INTEGER, value=749 2003-08-18 10:37:24,093 117639 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Rows affected = 1 --- Alexey Loubyansky [EMAIL PROTECTED] wrote: I don't know when 3.2.2RC3 is going to be released. There should be nightly builds somewhere, but, believe it or not, I also don't where they are. It should be documented somewhere or you can ask on the list. If you have access to CVS, I would suggest you to download the code from CVS (but wait for 24 hours, it's sf.net's issue for anonymous access). Instructions are here: http://www.jboss.org/index.html?module=htmlop=userdisplayid=developers/sourcecode Thanks, alex Nicholas wrote: Thanks Alex ! I am CVS challenged. Any idea when the build will be downloadable ? //Nicholas --- Alexey Loubyansky [EMAIL PROTECTED] wrote: It is fixed in 3.2.2RC3 in CVS. alex Nicholas wrote: JBoss 3.2.2RC2 Win32 JDK 1.4.2 I have an entity bean which is being updated with a coarse grained method that passes a value object which was previosuly retrieved. In this test case, only one field was updated, yet the store command stores every field (except the PK). Here is my log: 2003-08-17 22:47:25,899 346508 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.PayeeCheck] (RMI TCP Connection(2)-169.254.25.129:) Executing SQL: SELECT EVENT_ID, PAYEE_ID, CHECK_SEQ, CHECK_TYPE_CD, CHECK_NUMBER, CHECK_AMOUNT, SUPPRESS_DIRECT_DEPOSIT, CREATED, UPDATED, PAYEE_ID, EVENT_ID FROM PAYEE_CHECK WHERE (PAYEE_CHECK_ID=?) 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeCheckId] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=1, jdbcType=INTEGER, value=748 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.eventId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=1, javaType=int, Simple, value=76 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeId] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=2, javaType=int, Simple, value=373 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkSeq] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=3, javaType=int, Simple, value=1 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkTypeCd] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=4, javaType=java.lang.String, Simple, value=R 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkNumber] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=5, javaType=java.lang.String, Simple, value=001 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkAmount] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=6, javaType=java.lang.Double, Simple, value=0.0 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.suppressDirectDeposit] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=7, javaType=java.lang.String, Simple, value=2 2003-08-17 22:47:25,899 346508 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.created] (RMI TCP Connection(2)-169.254.25.129:) Get result: index=8, javaType=java.util.Date, Simple, value
Re: [JBoss-user] CMP2 JDBCCMP2xFieldBridge Storing Non-Dirty Fields
Oherr... yes Sorry about that. I will try again tomorrow. Cheers. //Nicholas --- Alexey Loubyansky [EMAIL PROTECTED] wrote: Well, try again tomorrow. It's non-flying weather today ;) Have you received my answer on your private email to me? I noted, you should wait for 24 hours before checking it out. alex Nicholas wrote: I got the 3.2.x snapshot, built the 3.2.2RC3 server and ran the same test, and the results seem to be exactly the same: (The only thing I am not sure about is that I did not rebuild the EJB jar with the RC3 libraries) 2003-08-18 10:37:21,900 115446 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PayeeCheck.findByPrimaryKey] (RMI TCP Connection(1)-169.254.25.129:) Executing SQL: SELECT PAYEE_CHECK_ID, EVENT_ID, PAYEE_ID, CHECK_SEQ, CHECK_TYPE_CD, CHECK_NUMBER, CHECK_AMOUNT, SUPPRESS_DIRECT_DEPOSIT, CREATED, UPDATED, EVENT_ID, PAYEE_ID FROM PAYEE_CHECK WHERE PAYEE_CHECK_ID=? 2003-08-18 10:37:21,900 115446 TRACE [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.PayeeCheck.findByPrimaryKey] (RMI TCP Connection(1)-169.254.25.129:) Set parameter: index=1, jdbcType=INTEGER, value=749 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeCheckId] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=1, javaType=int, Simple, value=749 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.eventId] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=2, javaType=int, Simple, value=76 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=eventId 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeId] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=3, javaType=int, Simple, value=372 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=payeeId 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkSeq] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=4, javaType=int, Simple, value=1 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=checkSeq 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkTypeCd] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=5, javaType=java.lang.String, Simple, value=R 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=checkTypeCd 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkNumber] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=6, javaType=java.lang.String, Simple, value=001 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=checkNumber 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkAmount] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=7, javaType=java.lang.Double, Simple, value=0.0 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=checkAmount 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.suppressDirectDeposit] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=8, javaType=java.lang.String, Simple, value=2 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1)-169.254.25.129:) Add preload data: entity=PayeeCheck pk=[payeeCheck:]749 field=suppressDirectDeposit 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.created] (RMI TCP Connection(1)-169.254.25.129:) Get result: index=9, javaType=java.util.Date, Simple, value=2003-07-24 00:00:00.0 2003-08-18 10:37:21,930 115476 TRACE [org.jboss.ejb.plugins.cmp.jdbc.ReadAheadCache.PayeeCheck] (RMI TCP Connection(1
[JBoss-user] CMP2 JDBCCMP2xFieldBridge Storing Non-Dirty Fields
[org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.checkAmount] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=6, jdbcType=DOUBLE, value=0.0 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.suppressDirectDeposit] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=7, jdbcType=VARCHAR, value=2 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.created] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=8, jdbcType=TIMESTAMP, value=Thu Jul 24 00:00:00 EDT 2003 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.updated] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=9, jdbcType=TIMESTAMP, value=Sun Aug 17 00:00:00 EDT 2003 2003-08-17 22:47:25,949 346558 TRACE [org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMP2xFieldBridge.PayeeCheck.payeeCheckId] (RMI TCP Connection(2)-169.254.25.129:) Set parameter: index=10, jdbcType=INTEGER, value=748 2003-08-17 22:47:25,949 346558 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreEntityCommand.PayeeCheck] (RMI TCP Connection(2)-169.254.25.129:) Rows affected = 1 I also printed the value of all the fields in the value object: 2003-08-17 22:47:25,949 DEBUG [ PayeeCheckBean$Proxy] PayeeCheckDO payeeCheckId748/payeeCheckId eventId76/eventId payeeId373/payeeId checkSeq1/checkSeq checkTypeCd748/checkTypeCd checkNumber001/checkNumber checkTypeCd748/checkTypeCd checkAmount0.0/checkAmount suppressDirectDeposit2/suppressDirectDeposit createdThu Jul 24 00:00:00 EDT 2003/created updatedSun Aug 17 22:47:25 EDT 2003/updated hashcode225418449/hashcode /PayeeCheckDO It seems to be marking all fields dirty even though most are obviosuly unchanged. Any ideas ? //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Stored procedures and session beans
Provided that the stored proc does not have any commits or rollbacks in it, I think you are in the clear. CMT will make the call part of the transaction. Make sure you get your connection from a transacted pool. //Nicholas --- Russell Chan [EMAIL PROTECTED] wrote: Hi, I've looked through the documentation, but haven't really found an answer to my question yet, so I'll try here. I have a case where some legacy functionality is wrapped up in an oracle stored procedure. I have a session bean which needs to do some lookups/updated, call this stored procedure, and do further lookups/updates. The session bean is currently implemented using CMT. Is it possible to get the stored procedure to run in the same database connection as the transaction? (Otherwise, my data lookups could be skewed because of the stored proc). If so, how do I get the connection? I've managed to get a database connection inline but it is probably not part of the current transaction, so I'm worried about dirty reads. Thanks, Russ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Load-Balancing Problems
We took Sun's ServiceLocator example (at http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html) and extended it to cache not only the Context and the Home, but the remote too. Reusing the remote (session beans only...:) ) has the same effect, and you will round robin happilly. //Nicholas --- Simone Milani [EMAIL PROTECTED] wrote: Hi, I use 3.2.2RC2 and the default config for round robin. to have the call span the whole cluster in round robin I need to lookup the home every time which is not very efficient. I would like to do the lookup and the create only one and do round robin after that. Is it possible? Thanks! Simone - Original Message - From: Sacha Labourey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 13, 2003 8:28 AM Subject: RE: [JBoss-user] Load-Balancing Problems Then that is very strange as with 3.2.x you should be able to re-create your home/remote and keep balancing correctly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christofer Dutz Sent: mercredi, 13. août 2003 00:18 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Load-Balancing Problems I am using 3.2.2RC2 ... Chris Sacha Labourey wrote: ... Or use 3.2.x which removes this issue. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Brock Sent: mardi, 12 août 2003 17:50 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Load-Balancing Problems You are probably doing sessionHome.create() on every request? This creates a new remote interface proxy, which will round-robin all servers. However if you only do one invocation it will always use the first server and never get to the others. You can get similar problems with other patterns in your RemoteInterface usage depending upon how many servers you have. One simple solution is to use RandomRobin rather than RoundRobin as the load balancing policy. Regards, Adrian On Tue, 2003-08-12 at 10:41, Christofer Dutz wrote: Hi, I am having some Problems with load-balancing in JBoss. All Beans are set to use the RoundRobin Load-Balancing strategy and the cluster seems to work like a charm. I setup the HA-JNDI to work on Port 1100 and setup the client to use this port. Everything seems to work fine, except one thing. If I watch the load of the cluster-machines with top I can see the machine that is directly accessed by the Client-Application has a load of 100% the other cluster nodes then are only 30%. Mabe I'm wrong, but I think that it could be, that the client proxy is doing no load-balancing at all and that the 30% are just for syncing. Any Ideas of how I could balance the load over all nodes? Any help is realy appreciated. Christofer Dutz --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click- url.com/go/psa0013ave/direct;at.aspnet_072303_ 01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet _072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspne === message truncated === = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user
Re: [JBoss-user] local interfaces
Only in VM, so it's not restricted to ejbs. Eg. you could call a local from an MBean running in the same VM as the local. //Nicholas --- [EMAIL PROTECTED] wrote: Is it right, that local interfaces cannot be used from (external) clients to ejbs? Only ejb to ejb is supported? --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] change default tomcat port
The file is: \jboss-3.2.1_tomcat-4.1.24\server\default\deploy\jbossweb-tomcat.sar\META-INF\jboss-service.xml Look for: /Engine !-- A HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=3 maxProcessors=10 enableLookups=true acceptCount=10 debug=0 connectionTimeout=2 useURIValidationHack=false/ //Nicholas --- [EMAIL PROTECTED] wrote: Hi all, I'm using JBoss 3.2.1 with integrated Tomcat. How can I change the port number to something like 12001 instead of the default 8080? I need to do this because some other server is running on the same port. Thanks a lot, Harm de Laat Informatiefabriek The Netherlands --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Client Access to JBoss EJBs
E I am going to take a guess and say that Anmeldekonfiguration kann nicht gefunden means that the auth.conf file could not be found. What did you set your java.security.auth.login.config system property to ? Are you sure the file can be found there ? //Nicholas --- Christofer Dutz [EMAIL PROTECTED] wrote: Thanks for your reply. Unfortunately I get the same error I got from other tries: java.lang.SecurityException: Anmeldekonfiguration kann nicht gefunden werden. at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at javax.security.auth.login.Configuration$3.run(Configuration.java:221) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215) at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.init(LoginContext.java:167) at javax.security.auth.login.LoginContext.init(LoginContext.java:404) at org.jboss.security.jndi.LoginInitialContextFactory.getInitialContext(LoginInitialContextFactory.java:58) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.init(InitialContext.java:219) at javax.naming.InitialContext.init(InitialContext.java:195) at de.cware.cweb.client.TestClient.main(TestClient.java:40) Caused by: java.io.IOException: Anmeldekonfiguration kann nicht gefunden werden. at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) ... 19 more What am I doing wrong. It seems It is no problem to access JBoss from clients like Web-Client. But what do I have to do to get the normaly external Java-App to work ? Chris Nicholas wrote: Your simple client should have code that looks up the JNDI context using the LoginInitialContextFactory. Something like this: public Context login(String user, String password) { try { Context ctx = null; Properties p = new Properties(); p.put(Context.PROVIDER_URL, yourhost:1099); p.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.security.jndi.LoginInitialContextFactory); p.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); p.put(Context.SECURITY_PROTOCOL, login); p.put(Context.SECURITY_PRINCIPAL, user); p.put(Context.SECURITY_CREDENTIALS, password); ctx = new InitialContext(p); return ctx; } When you run your cliemt, set the following system property: java.security.auth.login.config=A URL THAT POINTS TO auth.conf eg. http://MYHOST:8080/security-conf/auth.conf The auth.conf file looks like this: login { org.jboss.security.ClientLoginModule required; }; other { org.jboss.security.ClientLoginModule required; }; So the line p.put(Context.SECURITY_PROTOCOL, login); refers to the entry in the auth.conf file. Hopefully, that will sort you out. //Nicholas --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Client Access to JBoss EJBs
Your simple client should have code that looks up the JNDI context using the LoginInitialContextFactory. Something like this: public Context login(String user, String password) { try { Context ctx = null; Properties p = new Properties(); p.put(Context.PROVIDER_URL, yourhost:1099); p.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.security.jndi.LoginInitialContextFactory); p.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); p.put(Context.SECURITY_PROTOCOL, login); p.put(Context.SECURITY_PRINCIPAL, user); p.put(Context.SECURITY_CREDENTIALS, password); ctx = new InitialContext(p); return ctx; } When you run your cliemt, set the following system property: java.security.auth.login.config=A URL THAT POINTS TO auth.conf eg. http://MYHOST:8080/security-conf/auth.conf The auth.conf file looks like this: login { org.jboss.security.ClientLoginModule required; }; other { org.jboss.security.ClientLoginModule required; }; So the line p.put(Context.SECURITY_PROTOCOL, login); refers to the entry in the auth.conf file. Hopefully, that will sort you out. //Nicholas --- Christofer Dutz [EMAIL PROTECTED] wrote: Hi, at the moment I am learning for an exam on tuesday and am realy sort of frustrated. I finaly managed to understand using XDoclet and simply wanted to try to access my Beans from a simple Client. Now something has to have changed since earlier JBoss versions (I am using 3.2.2RC2) How can I authenticate a simple client application in a seperate VM so I can acces my EJBs. I have tried googeling for a solution, but that only made things worse. It seems impossible to find up-to-date information. All hints turned out to be wrong. Could someone please send me a link on how to write a client to correctly authenticate with the JAAS-Service of JBoss ? Thanx in advance, Chris --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] When to use XA Datasource?
Use XA if you are going to execute distributed transactions or two phase commit. //Nicholas --- [EMAIL PROTECTED] wrote: I'm using oracle so i have a choice between an xa-datasouce or a non-xa-datasource. I'm trying to decide which one to use. I know that the non-xa-datasource provides support for regular transactions and built in j2ee transaction support supports transactions at the code level. Do i really need XA? What are the benifits/disadvantages of using either type? Does anyone have a recommendation on what to use? --- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No ManagedConnections Available!
Not totally clear on how many threads are actually running concurrently, but the data source has a default of MAX 20 connections, so it is quite likely that you would get this error since you will have used up all the connections. //Nicholas --- Magesh Prabhu [EMAIL PROTECTED] wrote: Hi Guys, In order to test the concurrency in my system, I created a Threaded standalone application and tried to invoke a Stateless Session Bean concurrently 100 times. What the Session Bean does is fairly simple, It calls an entiry bean which in turn searches for the primary key in the database. If there is'nt one, it creates a new record. When I executed my threaded applicatoin, I got the following Exception stack trace. Can somebody explain be about this 'No ManagedConnections Available!'. Am I missing something in the way I have configured my datasource. My datasource configuration is : datasources local-tx-datasource jndi-nameOracleDS/jndi-name connection-urljdbc:oracle:thin:@193.16.18.142:1521:testdb/connection-url driver-classoracle.jdbc.driver.OracleDriver/driver-class user-namedev/user-name passworddev/password exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name /local-tx-datasource /datasources Environment: jboss-3.2.1_tomcat-4.1.24, Oracle 8.1.6, Jdk 1.4.1_01 Thanx in advance, Magesh EXCEPTION STACK: org.jboss.util.NestedSQLException: No ManagedConnections Available!; - nested throwable: (javax.resource.ResourceException: No ManagedConnections Available!) at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:106) at com.pindartech.imageprocessing.manager.requestpersistencemanager.RequestBean.getConnection(RequestBean.java:690) at com.pindartech.imageprocessing.manager.requestpersistencemanager.RequestBean.ejbFindByPrimaryKey(RequestBean.java:460) at sun.reflect.GeneratedMethodAccessor521.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(BMPPersistenceManager.java:578) at org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPersistenceManager.java:316) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:301) at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:627) at sun.reflect.GeneratedMethodAccessor520.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:998) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:188) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:215) at org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:88) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:91) at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:61) at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:28) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477) at org.jboss.ejb.Container.invoke(Container.java:694) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy263.findByPrimaryKey(Unknown Source) at com.pindartech.imageprocessing.manager.requestpersistencemanager.RequestDBManager.findRequestByRequestID(RequestDBManager.java:53) at com.pindartech.imageprocessing.manager.requestpersistencemanager.RequestPersistenceManagerBean.findRequestByRequestID(RequestPersistenceManagerBean.java:98) at sun.reflect.GeneratedMethodAccessor544.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke
Re: [JBoss-user] New to JBoss......
Here are some on line tutorials: http://www.dsg.cs.tcd.ie/~dowlingj/teaching/ds/tutorials/ejb/jboss_3_intro.htm http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html http://www7b.software.ibm.com/wsdd/techjournal/0302_koo/koo.html http://www.ammai.com/modules.php?op=modloadname=Sectionsfile=indexreq=viewarticleartid=6page=1 http://www.uniforum.chi.il.us/slides/beginning_ejb/Introduction_To_Entity_Beans_with_JBoss.pdf http://www.stanford.edu/~mdelgado/jboss/ http://www.pubbitch.org/jboss/ http://sourceforge.net/projects/xpetstore/ Not really a tutorial but lots of XDocleted source code for JBoss. //Nicholas There is also an O'Reilly JBoss workbook, but the link from the JBoss site seems to be broken right now. --- s chakradhar [EMAIL PROTECTED] wrote: Hi.. all, I am very new to the JBoss application server. I used to work with Weblogic previously. Please anyone can help me in finding the documentation examples for JBoss to work with(I think..there is very less documentation details available..for JBoss as compared to weblogic..) thanks in advance... regards chakradhar __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing more. Download eval WebKing and get a free book. www.parasoft.com/bulletproofapps ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Hello ! The problem of JBoss 3.2.1 + Tomcat 4.1.24-LE
Put the war files in jboss-3.2.1_tomcat-4.1.24/server/default/deploy assuming you are using the default config. //Nicholas --- jonathan wong [EMAIL PROTECTED] wrote: Dear All , Hello ! I try to move my application from my standalone Tomcat to the JBoss's Tomcat . However , how can I deploy the webapps in the JBoss' Tomcat ? I just place the application in the jbossweb-tomcat.sar . For example , I place ROOT ( which is the ROOT in a standalone Tomcat ) in jbossweb-tomcat.sar , and type http://localhost:8080/ROOT/index.jsp; . However , the Tomcat says : HTTP Status 500 - No Context configured to process this request and JBoss says : MAPPING configuration error for request URI /ROOT/index.jsp Therefore , what further configuration should I do ? Thank you ! = Jonathan (Wong Yat Sing) Jonathan Studio M.P (852) - 91235947 NetMeeting : [EMAIL PROTECTED] ICQ# 57646152 __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss-Net performance issues
Got the scuttlebut from an IBM internal friendly, but I expect we'll see something soon. I'll post back when we do. //Nicholas --- Barlow, Dustin [EMAIL PROTECTED] wrote: Interesting information. Do you have any links or further info on the IBM parser? -Dustin -Original Message- From: Nicholas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:35 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss-Net performance issues I believe that one of the reasons .Net continues to do so well in WebServices performance is that their XML parser is reportedly anywhere from 4 to 20 times faster than any Java based parsers. I had heard that eBay has XML generated on the back end Java systems translated on NT boxes using a JNI wrapped MS XML parser. (Would be nice to find an equivalent on Sourceforge !!) In order to address this disparity, I hope we will start to see lines of technology like HotSpot being used to reach native parsing performance. IBM is supposedly writing dynamic XLST down to native JITs. On Microsoft's side, they still seem to be a little disappointed with the XML parsing performance, so they are payloading binary data in the SOAP envelopes in heir high performance systems. Interesting approach, but what's the point ? They seem to have gone full circle and come back to IIOP. //Nicholas --- Jon Barnett [EMAIL PROTECTED] wrote: That is an interesting set of results, although not surprising. As Bill said, the greatest problem with Web services is that you take the hit for working with XML. There are many articles that discuss this, of which I include this one: http://techupdate.zdnet.com/techupdate/stories/main/0,14179,28 36041,00.htm l One thing we haven't got round to doing is looking at the relative performance of the different service types. It would be interesting to see the cost of bean-wrapped data via the RPC-style service versus XML-like data injected directly using the message-style service. One thing about the Microsoft sponsored study - it is not clear whether Microsoft applied any parsers for the receipt and interpretation of the request nor the generation of the response. The fact that they got a performance enhancement partially linked to better database access methods means that to some extent, they have an almost straight-to-stream data feed (the bottle neck is not the XML generation, which in turn indicates very optimized data to XML-wrapping). Regards, JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barlow, Dustin Sent: Thursday, 26 June 2003 6:41 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss-Net performance issues I've been playing with the simple Hello jboss-net code included in the samples directory. I did some performance testing and the results are quite stunning. The test was simple. I used the included sample Axis test client to call the hello(String name) method but instead of passing it a short string, I decided to make things a little more interesting and pass it a 75k and then a 275k string of XML read from a file. The EJB hello method did nothing other then accept the data as a parameter, and echo back the size of the data that was passed into the method. I was very surprised at how long it took run. ATTACHMENT part 2 application/x-pkcs7-signature name=smime.p7s = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar
Re: [JBoss-user] Question on LDAP/JBOSS
Arun; Are you using the JDBC-LDAP Bridge Driver ? Can you look in your LDAP server's log and see if there are any error messages that coincide with the requests from your JBoss server ? This way we can ensure that the requests are actually reaching your LDAP server and any error messages may reveal why the requests are failing. Also, I wonder if the driver is able to create the table being requested. The bean is generating the SQL CREATE TABLE MusicCDBean (dn VARCHAR(255,0),cn VARCHAR(255,0)) It seems it cannot find that object, since the remaining name does not include the table name, implying that there was another object further down the hierarchy that it could not find. Hopefully, all this will be in the LDAP error log. //Nicholas --- Arun [EMAIL PROTECTED] wrote: Hi, Can I use the JDBC-LDAP driver(JdbcLdap.jar) from octetstring with EJB container JBOSS for deploying CMP entity Beans? I am using jboss-3.2.1_tomcat-4.1.24, openLDAP 3.0 and JDBC-LDAP driver(JdbcLdap.jar). I have written a EJB CMP entity bean to store/retrieve data from LDAP. I tried to deploy it in JBOSS , but could not. I have put the JDBCLdap.jar in appropriate jboss lib directory. I have made changes to the *Jaws.xml and services.xml file in jboss as done for other datastores. ( I am using the jdbc-ldap driver since CMP entity bean will configure to anything which supports JDBC.Hence cannot use JNDI api directly in CMP beans to store/retrieve data to LDAP). The error in the server.log file shows, === 2003-06-23 18:16:41,811 INFO [STDOUT] javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=CIMOM,o=WSSPL,c=INDIA' === I do not get this error when i am trying to query LDAP outside the jboss conatiner, using different application written in c++ to query LDAP(with the same DN as above). I have attached the server.log file which shows the error. Please let me know what could be the problem. Thanks Regards ATTACHMENT part 2 application/octet-stream name=server.log = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Timer Service
Edgar; I started out using Quartz (http://www.part.net/quartz.html) , but in the end, I switched to the native Timer MBean, using the following docs: http://jboss.sourceforge.net/doc-24/ch11s58.html //Nicholas --- Edgar Silva [EMAIL PROTECTED] wrote: Have anybody working with Timer Service, TimedObject (EJB2.1) or other Scheduling Technology with JBoss? Can somebody send some resources, Articles or examples of how to work with this technologies? Since now...thanks Edgar Silva --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Connecting to remote MBeanServer
Here you go: if(ctx==null) ctx = new InitialContext(System.getProperties()); if(server==null) server = (RMIAdaptor) ctx.lookup(jmx/rmi/RMIAdaptor); if(name==null) name = new ObjectName(jboss.security:service=JaasSecurityManager); Object result = server.invoke(name, flushAuthenticationCache, new Object[]{client-login}, new String[]{java.lang.String}); --- Simone Milani [EMAIL PROTECTED] wrote: Hi, Please could you point me at an example of using the MBeanServer remotely using the EJB or RMI adaptor? Thanks Simone --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] HOWTO: Call an EJB from an Oracle Java Stored Procedure
I wrote the OracleLoadJava task. I just have not got around to submitting it. I wanted to write a whole set of PL/SQL-JBoss services so I figured I would just load the whole JBoss client dir, but I also noticed a large number of invalid classes. I think we just have to ramp up the complexity of the calls and track what's needed where and for what. I will start docuemnting what you have here and we should compare notes periodically, and I'll put them on a wiki somewhere. Agreed ? //Nicholas --- Guy Rouillier [EMAIL PROTECTED] wrote: Nicholas, I finally got around to trying this, and it works - thanks! I struggled with this for about 6 months and got nowhere (including working with someone inside Oracle!) I had to go through several iterations and fix missing permissions identified in udump. I really should delete all Java permissions and start from scratch to identify exactly what is needed; I have a bunch already in there from when I tried the last time. A couple of points/questions: (1) Where did you find the OracleLoadJava task for Ant? (2) I loaded all JBoss-3.2.1/client jars *except* jbossall-client.jar (figuring it was redundant). Again, I'll probably start from scratch to see if I can pare down what is needed. After recompiling the INVALID classes, I'm still showing 488 classes that are marked INVALID. Many of them look pretty fundamental (i.e., necessary), so I'm wondering once we move beyond a trivial example if this will continue to work. (3) Your steps say to recompile these INVALID classes. I found that the following accomplishes the same thing, and gets done much faster: - First, load all the jar files without resolving. Don't know how to do this in Ant, but from a command line you can do it like this: call loadjava -user GUYR/[EMAIL PROTECTED] concurrent.jar - Then make a second pass through all the jars, this time invoking the resolver. This looks like this: call loadjava -resolve -resolver ((* GUYR) (* PUBLIC)) -user GUYR/[EMAIL PROTECTED] concurrent.jar Nicholas wrote: I went back to reproducs this, and the process was this using Windows XP Professional JBoss jboss-3.2.0_tomcat-4.1.24 Oracle Enterprise Version 9.2.0.1.0 1. LoadJava the entire JBoss Client Jar collection into SCOTT. project name=OracleLoadJavaExample default=all basedir=. taskdef name=OracleLoadJava classname=org.apache.tools.ant.taskdefs.optional.oraclejava.OracleLoadJava/ /target target name=all patternset id=all.jars include name=**/*.jar/ /patternset OracleLoadJava oci=on user=SCOTT/[EMAIL PROTECTED] resolve=on debug=on force=no noverify=on verbose=on noserverside=on schema=scott synonym=on time=on fileset dir=C:/jboss-3.2.0_tomcat-4.1.24/client patternset refid=all.jars/ /fileset /OracleLoadJava /target /project 2. Recompile all the invalid classes. To do this, generate a script with this SQL logged in as SCOTT: select 'ALTER JAVA CLASS SCOTT.' || object_name || ' COMPILE;' from USER_OBJECTS where object_type in ('JAVA CLASS', 'JAVA SOURCE') and status = 'INVALID' Run the script that is generated. 3. Grant the following rights to SCOTT: dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission', 'IP ADDRESS:1024-', 'listen,resolve' ); dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission', 'IP ADDRESS:3495', 'connect,accept,resolve' ); dbms_java.grant_permission( 'SCOTT','SYS:java.lang.RuntimePermission','org.jboss.security.SecurityAssociation.getPrincipalInfo', '' ); dbms_java.grant_permission( 'SCOTT','SYS:java.io.SerializablePermission', 'enableSubstitution', '' ); dbms_java.grant_permission( 'SCOTT', 'SYS:java.net.SocketPermission','IP ADDRESS:8093', 'connect,resolve' ); There may be some extra ones in there. I was also trying to communicate with some JMS processes, but generally, Oracle will tell you exactly which permissions you need in the error message if you fail to have one. 3. Load EJB. Again, I used the Ant task and loaded the JAR I deployed to JBoss and a simple test client of a simple EJB: EJB: import javax.ejb.*; public class StringLibBean implements SessionBean { SessionContext sessionContext; public void ejbCreate() throws CreateException { } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { } public void setSessionContext(SessionContext sessionContext) { this.sessionContext = sessionContext; } public String reverse(java.lang.String a) { return new StringBuffer(a).reverse().toString(); } } Client Code: public
Re: [JBoss-user] Cascade delete
We just figured this one out, but we are using 3.2.0. The foregin key in the child table was defined as NOT NULL and JBoss was trying to set it to null so it was failing right there. Once we set it to NULLABLE, it appears that JBoss sets the foregin keys to null, then deletes them. I am sure there is an explanation as to why it works this way, but it does work as desired. //Nicholas --- Warren Mira [EMAIL PROTECTED] wrote: Hi, We have configured oracle for cascade delete, works fine from doing delete via sqlplus, other clients, but if we do a remove() from an Entity bean, the cascade is not happening. Anyone else experiencing this?, using jboss-3.0.4 Thanks Warren --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Configuring Minimal Server for JAAS
I am trying to add the minimal necessary modules to the minimal JBoss configuration (3.2.0). I added my login-cong.xml to conf and a datasource XML to deploy, but when I run my code, I get a: java.lang.SecurityException: Unable to locate a login configuration What am I missing here ? Thanks. //Nicholas --- Alexey Loubyansky [EMAIL PROTECTED] wrote: Hello Nicholas, if you have NOT NULL foreign keys and want to use cascade-delete, you should use a custom container configuration with sync-on-commit-only set true: container-configurations container-configuration extends=Standard CMP 2.x EntityBean container-nameSync On Commit Only CMP2.x Container/container-name sync-on-commit-onlytrue/sync-on-commit-only /container-configuration /container-configurations alex Wednesday, June 11, 2003, 3:58:10 PM, Nicholas Nicholas wrote: N We just figured this one out, but we are using 3.2.0. N The foregin key in the child table was defined as NOT N NULL and JBoss was trying to set it to null so it was N failing right there. N Once we set it to NULLABLE, it appears that JBoss sets N the foregin keys to null, then deletes them. I am sure N there is an explanation as to why it works this way, N but it does work as desired. N //Nicholas N --- Warren Mira [EMAIL PROTECTED] wrote: Hi, We have configured oracle for cascade delete, works fine from doing delete via sqlplus, other clients, but if we do a remove() from an Entity bean, the cascade is not happening. Anyone else experiencing this?, using jboss-3.0.4 Thanks Warren --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HOWTO: Call an EJB from an Oracle Java Stored Procedure
the classes are fully compiled in Oracle, it is pretty snappy. //Nicholas --- Guy Rouillier [EMAIL PROTECTED] wrote: Nicholas and Stephano, I've tried to get this working numerous times in the past, but I'm still not there. You can find my previous posts on this by searching the archives. Nicholas, I can load the JBoss classes into the Oracle JVM using loadjava. But whenever I try to run the simplest EJB invocation, I get all kinds of errors. Have you successfully invoked a method on an EJB running under JBoss from within an Oracle stored procedure? If so, I would very much like details on how you did this. Would make a great HOWTO for this group. Thanks. Nicholas wrote: Stefano; I have had some luck loading classes using a custom Ant task. It is really just a wrapper for LoadJava but easier to use if you are Ant inclined. It looks like this: patternset id=oracle.load.classes include name=jbossall-client.jar/ /patternset target name=LoadJBossToOracle OracleLoadJava oci=on user=SCOTT/[EMAIL PROTECTED] resolve=on debug=on force=on noverify=on verbose=on noserverside=on schema=scott synonym=on time=on fileset dir=C:/jboss-3.2.0_tomcat-4.1.24/client patternset refid=oracle.load.classes/ /fileset grant name=scott/ /OracleLoadJava /target The keys are the following: 1. Defer resolution until the second pass. (set resolve=on) 2. Recompile all classes when you are done. You can generate a script to do this as follows: select 'ALTER JAVA CLASS USER NAME.' || object_name || ' COMPILE;' from ALL_OBJECTS where object_type in ('JAVA CLASS', 'JAVA SOURCE') and OWNER = 'USER NAME' Run the output as a SQL script. It will take quite a long time... Anyways, email me off line and I'll send you the Ant tasks, examples and doc. //Nicholas --- Stefano Maestri [EMAIL PROTECTED] wrote: We are trying to write a java Stored procedure for oracle that call a session bean. We are experiencing some troble because when we set the InitialContext we get an error because org.jnp.interfaces.NamingContextFactory is not present in Aurora. We tryied to load it (extracted from jbossall-client.jar), but Oracle failed to resolve that class. We tryied also to load all jbossall-client.jar with a lot of resolving error. Ideas? Domeone had already did something like that. We are using Jboss-3.2.1 for the bean (and for the jabossall-client.jar) and Oracle 9.2 on HP-UX for the DB. Thanks a lot for the attention. P.S.: We had not also javax.ejb in Aurora, but it load correctly. -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Guy Rouillier --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never
Re: [JBoss-user] Some J2EE Design Questions
We have attacked this problem in two ways. One was to use the MBean timer to time out sessions after a period of inactivity. The second, more difficult but with some fringe benefits, was to use heartbeating from the client. We used JMS heartbeats. See http://www.javaworld.com/javaworld/jw-03-2002/jw-0315-heart.html Cheers. //Nicholas --- Richard Stack [EMAIL PROTECTED] wrote: Hello Mike, Could you explain what you mean when you say RMI is a connectionless protocol (not a persistent connection) Richard Finn, Michael wrote: 1. If EJB Timer (2.1) does not fit the bill for you, an MBean is a typically a good solution for this problem. Depends on what you mean by service. 2. Since RMI is a connectionless protocol (not a persistent connection), there is really no 'disconnect' event. Your best bet is probably to use shutdown hooks in your client, and make last ditch effort to do the logout there. mike -Original Message- From: Sasidharan, Manoj [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 3:33 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Some J2EE Design Questions Hello All, 1. How can a daemon process/service implemented in J2EE world? Any design pattern? 2. Is there any way to trap J2EE client disconnect events - we want to timeout user sessions if they fail to logout properly from our J2EE app and disconnect from App Server Thanks in advance for your time in helping me with these design issues. MS --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Call an EJB from an Oracle Java Stored Procedure
Stefano; I have had some luck loading classes using a custom Ant task. It is really just a wrapper for LoadJava but easier to use if you are Ant inclined. It looks like this: patternset id=oracle.load.classes include name=jbossall-client.jar/ /patternset target name=LoadJBossToOracle OracleLoadJava oci=on user=SCOTT/[EMAIL PROTECTED] resolve=on debug=on force=on noverify=on verbose=on noserverside=on schema=scott synonym=on time=on fileset dir=C:/jboss-3.2.0_tomcat-4.1.24/client patternset refid=oracle.load.classes/ /fileset grant name=scott/ /OracleLoadJava /target The keys are the following: 1. Defer resolution until the second pass. (set resolve=on) 2. Recompile all classes when you are done. You can generate a script to do this as follows: select 'ALTER JAVA CLASS USER NAME.' || object_name || ' COMPILE;' from ALL_OBJECTS where object_type in ('JAVA CLASS', 'JAVA SOURCE') and OWNER = 'USER NAME' Run the output as a SQL script. It will take quite a long time... Anyways, email me off line and I'll send you the Ant tasks, examples and doc. //Nicholas --- Stefano Maestri [EMAIL PROTECTED] wrote: We are trying to write a java Stored procedure for oracle that call a session bean. We are experiencing some troble because when we set the InitialContext we get an error because org.jnp.interfaces.NamingContextFactory is not present in Aurora. We tryied to load it (extracted from jbossall-client.jar), but Oracle failed to resolve that class. We tryied also to load all jbossall-client.jar with a lot of resolving error. Ideas? Domeone had already did something like that. We are using Jboss-3.2.1 for the bean (and for the jabossall-client.jar) and Oracle 9.2 on HP-UX for the DB. Thanks a lot for the attention. P.S.: We had not also javax.ejb in Aurora, but it load correctly. -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.2.0 Crashed Out Of Memory After 1 Hour...
Are you seeing this with no additional modules deployed ? Just the bare installation ? I have been running 2 3.2 clustered instances on NT with 1.4.1_02 and they have been flat memorywise. //Nicholas --- Hunter Hillegas [EMAIL PROTECTED] wrote: Interesting. Anyone else have trouble with this combo? Perhaps I need to downgrade to 1.4.0? Hunter From: Bradley McLean [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 12 Apr 2003 18:04:44 -0400 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] 3.2.0 Crashed Out Of Memory After 1 Hour... * Hunter Hillegas ([EMAIL PROTECTED]) [030412 17:48]: Just upgraded to 3.2.0 and it ended up crashing after about 1 hour of use... We have allocated 900MB to the JVM and never had OOM with 3.0.6. Anyone else seeing huge memory usage? We are: SMP Linux, JDK 1.4.1_02 (Sun). We've had trouble with that combination, with JBoss 3.0.4 and other java code. We use 1.4.0 on SMP Linux because of that. --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossManagedConnectionPool - How Many Connections In Pool ?
Yep, I also noticed that AvailableConnectionCoubnt was always zero, even when I am using connections. What's with that ? //Nicholas --- nick [EMAIL PROTECTED] wrote: Nicholas wrote: From memory there are two: AvailableConnections and MaxConnections (or something like that). I noticed AvailableConnections is zero until you actually try to use a connection (in jboss 3.0.6) . Looks like lazy connection pool initialization. Walkthrough: on the top page search for your datasource name - click the third link containing the name, then look for the above attributes. regards, Nick Which attribute should be viewed in the JMX console to determine how many database connections are currently being held by a given connection pool ? Is this possible ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossManagedConnectionPool - How Many Connections In Pool ?
Which attribute should be viewed in the JMX console to determine how many database connections are currently being held by a given connection pool ? Is this possible ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Non-Serializable Objects In JNDI
A while back there was a thread on here about a way to store non-Serializable objects in JNDI. Can someone give me a pointer to where that was ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Alert On Failed EJB Deploy
We are building a continuous integration system and while the system emails us if there are any failures on compile , build or deployment, we were not being notified if an EJB failed to deploy in JBoss. So this seems like a silly way to get an alert, but we created an SMTP appender in Log4j, created a logger on org.jboss.system.ServiceController and created a log4j trigger as follows: import org.apache.log4j.spi.TriggeringEventEvaluator; import org.apache.log4j.spi.LoggingEvent; public class YesTrigger implements TriggeringEventEvaluator{ public boolean isTriggeringEvent(LoggingEvent event) { return (event.getRenderedMessage().startsWith(Problem) || event.getRenderedMessage().startsWith(Unable)); } } It seems to work for the issues we have had so far. Is there a cleaner way to do it ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Axis JBoss - Client Stubs Not Portable ?
I have been working with Axis JBoss for a while and I am finally getting around to putting together my build system. It has occured to me that when I run WSDL2Java, the client stubs generated have HARD CODED IP addresses or host names, making the generated code completely non-portable to other systems. So much for code once, run anywhere. The components affected are the ServiceLocator and the SoapBindingStubs. The ServiceLocator issue seems to be trivial to fix, but the SoapBindingStubs use the IP address/host name in the namespaces. Am I doing something wrong here ? Does anyone have any insight into this ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 [EMAIL PROTECTED] Get Your News From The Crowbar: http://crowbar.dnsalias.com:443/crowbar/ --- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Run Client Using RMI
For remote [and local] connections, I have never used the decorated URL you showed in your email. I simply used: java.naming.provider.url=hostname:port If it is timing out, make sure you can actually ping the server from your client box..:) Also, make sure all the required stuff (that is a technical term) is in your client classpath. Lastly, make sure you are infact running the JNDI port on the port you are trying to connect to. Cheers. //Nicholas --- Hanson, Matthew [EMAIL PROTECTED] wrote: Hi-- OK - Please don't slam me too hard for this mail. I wanna move my jboss client from the machine where jboss is installed (i.e., localhost) to our hp machine. I just wanna make sure that the test client can make the call properly over the network. Someone has surely answered this question before - make configuration file changes are required to do this? For what I've read so far, I believe most of the client changes entail updating the jndi.properties 'java.naming.provider.url=localhost' entry to 'java.naming.provider.url=jnp://somehostname:1099/'. Are there other changes that are needed beside this? To the client only? Both client and/or server? For localhost, can I simply change this val to the IP for the machine where jboss is running? I tried this, but the app timed out, so I know I'm still dumb on some of the issues. Please help! Thanks! Matt Hanson! --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB QL error
I had the same error, and fixed it by settting the case of [my version of] firm to Firm. I also had the abstract schema name set to Firm. //Nicholas --- Dain Sundstrom [EMAIL PROTECTED] wrote: On Friday, February 7, 2003, at 09:48 AM, Rafal Kedziorski wrote: ejb-ql![CDATA[SELECT OBJECT(o) FROM firm o WHERE o.name = ?1]]/ejb-ql After start JBoss I get this error: Was expecting one of: IN ... ABSTRACT_SCHEMA ... )] I am going to guess the full error said Found 'firm' Was expecting one of: This means that 'firm' is not the literal IN, and 'firm' is not a know abstract schema name. Did you declare that your firm entity have an abstract-schema-name of 'firm'? If not do it. -dain --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Say No to NetBeans
Perhaps not, but it's **certified**, so it does not even matter if it sucks. --- Keene Hammond [EMAIL PROTECTED] wrote: As for open source app servers, we already got one. It's called the Sun ONE app server. SunOne is open source? I don't see any source code... = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss Version [Which One ?]
I was just reviewing the list of JBoss packages on SourceForge. I am currently using 3.0.4 and I am wondering when I should venture into a new version. Is the following basically applicable ? 3.0.6: Bug Fixes For 3.0.4 3.2: New Features Over 3.0.4 as well as bug fixes 4.0 [Alpha]: New Architecture (this one's out) //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss 3.0.4 CMP 2- DB Error Retrieving Values
Simple entity bean. I do a loookup, it finds the record but when it retrieves the row, it throws a SQL exception saying invalid column name. I cannnot figure out why because when I take the SQL from the console and paste into my SQLEditor, it executes fine. Here is the error: 09:22:36,843 DEBUG [ClientManagerBean] getClient(1) 09:22:36,921 DEBUG [findByPrimaryKey] Executing SQL: SELECT CLIENT_ID FROM CLIENT WHERE CLIENT_ID=? 09:22:37,171 DEBUG [Client] Executing SQL: SELECT MASTER_COMBO_ID, CLIENT_CODE, ORGANIZATION_ID, FEIN, TIPPED_CLIENT, COMPANY_NAME, ADDRESS1, ADDRESS2 , CITY, STATE, ZIP, ZIP4, TEL, PAYROLLCONTACT_NAME, PAYROLLCONTACT_TEL, PAYROLL_SETUP_DATE, PAYROLL_START_DATE, FEATURE_TERMINATION_DATE, ACC_NAME, ACSR_NAME, FICA_LIABILITY_SPLIT, COMBO_CLIENT, WINBACK_CLIENT, CLIENT_START_DATE, FLT_EMAIL, USER_ID, SERVICE_CENTER_ID FROM CLIENT WHERE (CLIENT_ID=?) 09:22:37,453 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy: java.sql.SQLException: ORA-00904: invalid column name The full stack trace is attached. = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] 09:22:37,171 DEBUG [Client] Executing SQL: SELECT MASTER_COMBO_ID, CLIENT_CODE, ORGANIZATION_ID, FEIN, TIPPED_CLIENT, COMPANY_NAME, ADDRESS1, ADDRESS2 , CITY, STATE, ZIP, ZIP4, TEL, PAYROLLCONTACT_NAME, PAYROLLCONTACT_TEL, PAYROLL_SETUP_DATE, PAYROLL_START_DATE, FEATURE_TERMINATION_DATE, ACC_NAME, AC SR_NAME, FICA_LIABILITY_SPLIT, COMBO_CLIENT, WINBACK_CLIENT, CLIENT_START_DATE, FLT_EMAIL, USER_ID, SERVICE_CENTER_ID FROM CLIENT WHERE (CLIENT_ID=?) 09:22:37,453 ERROR [LogInterceptor] TransactionRolledbackLocalException, causedBy: java.sql.SQLException: ORA-00904: invalid column name at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:830) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2391) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:527) at org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.executeQuery(LocalPreparedStatement.java:289) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:122) at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:572) at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:251) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInterceptor.java:90) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:163) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy166.getClientId(Unknown Source) at com.adp.ebs.flt.DO.ClientDO.init(Unknown Source) at com.adp.ebs.flt.ejb.ClientManagerBean.getClient(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke
Re: [JBoss-user] JBoss-IDE 1.0 alpha released
It worked fine for me. The run.bat has an entry like this: JAVA_OPTS=-classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS% So, the port will be 8787. Even when you run as a service, you must have somewhere where you set your JVM options. Also, if you do not want the service to startup to be dependent on the debug client launching it, set suspend=n. //Nicholas --- Ingo Bruell [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Hans Dockter, HD When you configure a JBoss for launching in JBoss-IDE you can choose HD the type which would be 'Remote JBoss' in your case. For the second HD question see the JBoss-IDE quick start quide pages 6-8. The port just HD has to be unused. I meant on eclipse side. But i saw that every time i started jboss with the debug option set on. Another port was used. if i start jboss as a service i can not see which port it just uses. Is there a way to specify the port ? I have not seen any information in the docs. best regards Ingo Bruell - --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu -BEGIN PGP SIGNATURE- Version: PGP 6.5i iQA/AwUBPjfW4I/nxkgWnuX8EQLiOgCeInHqHr0h6DaIH867Zgg5GTUDf3AAoIHr 5y4gBpU23mGO7GkA+4hn4XRS =dwlU -END PGP SIGNATURE- --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] XDoclet 1.1.2 JBoss 3.0.4 - No More issues
Allrightee. Figured it out. A series of silly mistakes combined with the new ejbdoclet task syntax threw me. Thanks for the help. Anyone going to Atlanta this weekend ? //Nicholas --- Rod Macpherson [EMAIL PROTECTED] wrote: Good point David. Using the explicit version number definitely generates the correct DTD for me: ejbdoclet ... jboss version=3.0 xmlencoding=ISO-8859-1 ... / - Original Message - From: David Jencks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 27, 2003 8:42 PM Subject: Re: [JBoss-user] XDoclet 1.1.2 JBoss 3.0.4 - Got some issues I'm not sure, but I wonder if you have specified the jboss version correctly in ant in the jboss subtask of the ejb task. david On Monday, January 27, 2003, at 10:43 PM, Nicholas wrote: Thanks for the response. I am still having a couple of problems. Number 1 is that XDoclet is using the wrong DTD for the jboss.xml file. It is using http://www.jboss.org/j2ee/dtd/jboss.dtd and what I really want is http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd. Or at least, that is what I attribute this build error to: [ejbdoclet] Generated file [file:C:/projects/flt/classes/META-INF/jboss.xml:line 10] Message=[Element type local-jndi -name must be declared.] is not valid according to its DTD. This might be due to some missing @tags in your source. My javadoc looks like this: /** * CLIENT Entity Bean * @ejb:bean * name=com.adp.ebs.flt.ejb.Client * type=CMP * view-type=local * local-jndi-name=ejb/Client * @ejb.transaction type=Required * @ejb.persistence table-name=CLIENT * @ejb.env-entry name=blabla value=12345 type=java.lang.Integer * @jboss.container-configuration name=entitybean.configuration.name * @jboss.create-table create=false * @jboss.remove-table remove=false */ Any insight ? Thanks. --- David Jencks [EMAIL PROTECTED] wrote: The best version of xdoclet is 1.2b2 by far. The best example I know of is xpetstore on sourceforge: its a minimalistic version of petstore using as many xdoclet features as possible. david jencks On Monday, January 27, 2003, at 06:39 PM, Nicholas wrote: I am having some issues getting the results I want from XDoclet. Things like missing tags (local-jndi-name) and others Can someone refer me to a good doc source for examples and JBoss XDoclet ref ( the quick start, Admin Devel doc$ and the CMP2 doc$ seem to be a little light on this) and can I get a recommendation on the best version of XDoclet ? I am using SSBs and CMP2 entities. Thanks. = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something === message truncated === = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http
[JBoss-user] XDoclet 1.1.2 JBoss 3.0.4 - Got some issues
I am having some issues getting the results I want from XDoclet. Things like missing tags (local-jndi-name) and others Can someone refer me to a good doc source for examples and JBoss XDoclet ref ( the quick start, Admin Devel doc$ and the CMP2 doc$ seem to be a little light on this) and can I get a recommendation on the best version of XDoclet ? I am using SSBs and CMP2 entities. Thanks. = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] XDoclet 1.1.2 JBoss 3.0.4 - Got some issues
Thanks for the response. I am still having a couple of problems. Number 1 is that XDoclet is using the wrong DTD for the jboss.xml file. It is using http://www.jboss.org/j2ee/dtd/jboss.dtd and what I really want is http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd. Or at least, that is what I attribute this build error to: [ejbdoclet] Generated file [file:C:/projects/flt/classes/META-INF/jboss.xml:line 10] Message=[Element type local-jndi -name must be declared.] is not valid according to its DTD. This might be due to some missing @tags in your source. My javadoc looks like this: /** * CLIENT Entity Bean * @ejb:bean * name=com.adp.ebs.flt.ejb.Client * type=CMP * view-type=local * local-jndi-name=ejb/Client * @ejb.transaction type=Required * @ejb.persistence table-name=CLIENT * @ejb.env-entry name=blabla value=12345 type=java.lang.Integer * @jboss.container-configuration name=entitybean.configuration.name * @jboss.create-table create=false * @jboss.remove-table remove=false */ Any insight ? Thanks. --- David Jencks [EMAIL PROTECTED] wrote: The best version of xdoclet is 1.2b2 by far. The best example I know of is xpetstore on sourceforge: its a minimalistic version of petstore using as many xdoclet features as possible. david jencks On Monday, January 27, 2003, at 06:39 PM, Nicholas wrote: I am having some issues getting the results I want from XDoclet. Things like missing tags (local-jndi-name) and others Can someone refer me to a good doc source for examples and JBoss XDoclet ref ( the quick start, Admin Devel doc$ and the CMP2 doc$ seem to be a little light on this) and can I get a recommendation on the best version of XDoclet ? I am using SSBs and CMP2 entities. Thanks. = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss Axis - Updates To A Session Bean With Complex Types
When exposing a session bean as a web service, the serialization of a remote to be retrieved by a SOAP client seems to be pretty easy. e.g. Session Bean: ClientManager Function: getClient(int i) Returns: ClientRemote The remote, ClientRemote can be viewed as a bean (since it is a collection of getters and setters) and the BeanSerialzier does a fine job of converting the remote to XML. However, on the return trip: Session Bean: ClientManager Function: setClient(ClientRemote client) Returns: void This presents a problem, because Axis tries to use the BeanDeserializer and quickly runs into the problem that ClientRemote is not actually a bean and is really only an interface. Hence, it cannot be instantiated as a bean could. Does anyone have any insight into how this issue can be best resolved ? //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] JBoss Axis - Updates To A Session Bean With Co mplex Types
Thanks for the reference. Looking through the code now. setOptions() seems prety key, since it is the hey to retrieve the according Home object. Where/When does that get called ? //Nicholas --- Jung , Dr. Christoph [EMAIL PROTECTED] wrote: Write a custom bean deserializer whose create method contacts a factory or something. See org.jboss.net.axis.server.EntityBeanDeserializer and the jboss.net testsuite (it�s still crappy and only copes with a single, primitive primary key, but works). The deserializer caches the properties until it has enough information to install the reference ... CGJ -Urspr�ngliche Nachricht- Von: Nicholas [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 17. Januar 2003 17:45 An: [EMAIL PROTECTED] Betreff: [JBoss-user] JBoss Axis - Updates To A Session Bean With Complex Types When exposing a session bean as a web service, the serialization of a remote to be retrieved by a SOAP client seems to be pretty easy. e.g. Session Bean: ClientManager Function: getClient(int i) Returns: ClientRemote The remote, ClientRemote can be viewed as a bean (since it is a collection of getters and setters) and the BeanSerialzier does a fine job of converting the remote to XML. However, on the return trip: Session Bean: ClientManager Function: setClient(ClientRemote client) Returns: void This presents a problem, because Axis tries to use the BeanDeserializer and quickly runs into the problem that ClientRemote is not actually a bean and is really only an interface. Hence, it cannot be instantiated as a bean could. Does anyone have any insight into how this issue can be best resolved ? //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] JBoss Axis - Updates To A Session Bean With Co mplex Types
Sorry; I jumped the gun a bit there. I think I understand how it works. Do you have a sample WSDD file you can send me ? //Nicholas --- Jung , Dr. Christoph [EMAIL PROTECTED] wrote: Write a custom bean deserializer whose create method contacts a factory or something. See org.jboss.net.axis.server.EntityBeanDeserializer and the jboss.net testsuite (it�s still crappy and only copes with a single, primitive primary key, but works). The deserializer caches the properties until it has enough information to install the reference ... CGJ -Urspr�ngliche Nachricht- Von: Nicholas [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 17. Januar 2003 17:45 An: [EMAIL PROTECTED] Betreff: [JBoss-user] JBoss Axis - Updates To A Session Bean With Complex Types When exposing a session bean as a web service, the serialization of a remote to be retrieved by a SOAP client seems to be pretty easy. e.g. Session Bean: ClientManager Function: getClient(int i) Returns: ClientRemote The remote, ClientRemote can be viewed as a bean (since it is a collection of getters and setters) and the BeanSerialzier does a fine job of converting the remote to XML. However, on the return trip: Session Bean: ClientManager Function: setClient(ClientRemote client) Returns: void This presents a problem, because Axis tries to use the BeanDeserializer and quickly runs into the problem that ClientRemote is not actually a bean and is really only an interface. Hence, it cannot be instantiated as a bean could. Does anyone have any insight into how this issue can be best resolved ? //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com - A 128-bit supercerts will allow you to extend the highest allowed 128 bit encryption to all your clients even if they use browsers that are limited to 40 bit encryption. Get a guide here:http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0030en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Nature of Tomcat / JBoss integration
Or, even better, run all three in one JVM. --- Vladyslav Kosulin [EMAIL PROTECTED] wrote: HORTON,NOAH (HP-FtCollins,ex1) wrote: Hi! I am helping to evaluate using JBoss in a project and have some questions about how Tomcat and JBoss are integrated. Does Tomcat run in the same JVM with JBoss? If not, what sort of communication is used between the two JVMs? If they run in one JVM, do you think it is possible to get them interoperating from separate JVM's without insane amounts of work? I ask because we face a potential situation where our product would need to interoperate with another application that has embedded Tomcat and we would like to use one web container if possible. If I understand right, you don't need to execute any servlet container on top of JBoss at all. Just use your existing Tomcat and invoke remote interface methods of EJBs deployed on JBoss. Vlad --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jbuilder integration question...
In JBuilder, to create, deploy and run EJBs, create an EJB Module, complete the EJBs and then right click the EJB Module and select Run (or debug). This will launch JBoss. You will need all of he server jars in the classpath. //Nicholas --- Matthew Van Horn [EMAIL PROTECTED] wrote: Well, I installed the JBoss OpenTool, and it seems that the contents of my ejb jar are now gone (not the source code, thankfully - just the IDE representation and the descriptors.) I am also unclear as to how to run JBoss in the IDE - are there docs somewhere? My old runtime config now just gives me errors. It looks like I may have such a hard time putting everything back that I might as well try starting from scratch with Eclipse. Argh. On Friday, January 10, 2003, at 10:39 AM, Nicholas wrote: I was thinking of Eclispe too, but the JBoss OpenTool plugin for JBuilder is really good. I seriously believe it is worth about 4 productivity hours per EJB. The only JBoss plugins [I could find] for Eclipse simply run JBoss in the environment. Super. Useful, but no match for the functionality addin the OpenTool provides in JBuilder. Maybe the authors will port it //Nicholas --- Matthew Van Horn [EMAIL PROTECTED] wrote: I am considering switching to Eclipse, but I can only handle so many learning curves at once (J2EE/JMS, JBoss, Xindice...) On Thursday, January 9, 2003, at 01:32 PM, Rod Macpherson wrote: The open tool works with JB 7.0 but consider Eclipse in combination with Ant. - Original Message - From: Matthew Van Horn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 6:22 PM Subject: Re: [JBoss-user] Jbuilder integration question... The Open tool site makes references to JBuilder 6, does it also work well with JBuilder 7 ? On a side note - Does exit code 10 indicate anything specific in JBoss - My app is killing the server (sometimes), but no error, and I don't know why. On Wednesday, January 8, 2003, at 11:27 PM, Nicholas wrote: I have never tried Protegra, but I can vouch for the JBoss-Opentool. It is excellent. //Nicholas --- cai margiex [EMAIL PROTECTED] wrote: u can use opentool on http://sourceforge.net/projects/jboss-opentool/, it's better than protegra. good luck. From: Matthew Van Horn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Jbuilder integration question... Date: Wed, 8 Jan 2003 16:25:12 +0900 I am using JBuilder and JBoss 3.0.4 with the Protegra tool and there is a really annoying thing happening. Somehow JBuilder is overwriting my jboss.xml file so that this: destination-jndi-namequeue/testQueue/destination-jndi-name is changed to this: message-driven-destination-namequeue/testQueue/message-driven- destination-name in my message driven bean. Just wondering if anyone else has experienced this, and if there is a way to avoid it? Matt --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld === message truncated === = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to use a principal from a webapp for securing ejb calls
I may be going out on a limb here, but I think Sven's question may be along the same lines of what I have been wondering about, which is: If you do not lock down the servlets (i.e. no security) but you want to collect username and credential information in the web layer, how do you create and propagate the security context to the EJB layer from there ? //Nicholas Scott M Stark [EMAIL PROTECTED] wrote: You use the bundled Tomcat or Jetty containers and use the same security-domainvalue in the ejbs as the web app and do nothing else.Scott StarkChief Technology OfficerJBoss Group, LLC- Original Message - From: "Scheil, Sven" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Friday, January 10, 2003 5:41 AMSubject: [JBoss-user] How to use a principal from a webapp for securing ejb calls We have developed a multitier app (cmdline clients, webclients, ejb business layer and db layer). Running all on a jboss 3.0.3; the webclients are developed using struts 1.1; the complete application can be put in one ear file. The access to the webbclients is controlled by a form-based authentication with a security-domain configured via login-config.xml: ="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag = "required" ="dsJndiName"java:/CloudscapeDS select PASSWORD from PERSON p where p.USERNAME=? and p.LOCKED=false select r.ROLE,'Roles' from PERSON_ROLE_ROLE_PERSON_ROLE r, PERSON p where p.USERNAME=? AND p.PERSONNO=r.PERSON This works all very well. Now we would like to use declarative Security for our EJBs (with the same realm). But we don't know how to use the principal (we have in each request of my webclients) to authenticate against the ejb container. Do we have to build our own Hashtable h with ... h.put(javax.naming.CONTEXT.SECURITY_PRINCIPAL , request.getUserPrincipal()); ... ctx = new InitialContext(h) and saving this ctx in a session attribute of my webclient to use for further lookups? If this is the way, we become trouble with our implementation of the ServiceLocator pattern. Our ServiceLocator class is a Singelton and results the home interfaces of our EJBs. The InitialContext is stored once in an instance variable. Could anyone give us a short description of the right way or send us an url of an example app? Thank you Sven---This SF.NET email is sponsored by:SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!http://www.vasoftware.com___JBoss-user mailing list[EMAIL PROTECTED]https://lists.sourceforge.net/lists/listinfo/jboss-userNicholas WhiteheadHome: (973) 377 9335Cell: (201) 615 2716Work: (212) 622 5639[EMAIL PROTECTED]
Re: [JBoss-user] Jbuilder integration question...
I was thinking of Eclispe too, but the JBoss OpenTool plugin for JBuilder is really good. I seriously believe it is worth about 4 productivity hours per EJB. The only JBoss plugins [I could find] for Eclipse simply run JBoss in the environment. Super. Useful, but no match for the functionality addin the OpenTool provides in JBuilder. Maybe the authors will port it //Nicholas --- Matthew Van Horn [EMAIL PROTECTED] wrote: I am considering switching to Eclipse, but I can only handle so many learning curves at once (J2EE/JMS, JBoss, Xindice...) On Thursday, January 9, 2003, at 01:32 PM, Rod Macpherson wrote: The open tool works with JB 7.0 but consider Eclipse in combination with Ant. - Original Message - From: Matthew Van Horn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 08, 2003 6:22 PM Subject: Re: [JBoss-user] Jbuilder integration question... The Open tool site makes references to JBuilder 6, does it also work well with JBuilder 7 ? On a side note - Does exit code 10 indicate anything specific in JBoss - My app is killing the server (sometimes), but no error, and I don't know why. On Wednesday, January 8, 2003, at 11:27 PM, Nicholas wrote: I have never tried Protegra, but I can vouch for the JBoss-Opentool. It is excellent. //Nicholas --- cai margiex [EMAIL PROTECTED] wrote: u can use opentool on http://sourceforge.net/projects/jboss-opentool/, it's better than protegra. good luck. From: Matthew Van Horn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Jbuilder integration question... Date: Wed, 8 Jan 2003 16:25:12 +0900 I am using JBuilder and JBoss 3.0.4 with the Protegra tool and there is a really annoying thing happening. Somehow JBuilder is overwriting my jboss.xml file so that this: destination-jndi-namequeue/testQueue/destination-jndi-name is changed to this: message-driven-destination-namequeue/testQueue/message-driven- destination-name in my message driven bean. Just wondering if anyone else has experienced this, and if there is a way to avoid it? Matt --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =omething 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
Re: [JBoss-user] Jbuilder integration question...
I have never tried Protegra, but I can vouch for the JBoss-Opentool. It is excellent. //Nicholas --- cai margiex [EMAIL PROTECTED] wrote: u can use opentool on http://sourceforge.net/projects/jboss-opentool/, it's better than protegra. good luck. From: Matthew Van Horn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Jbuilder integration question... Date: Wed, 8 Jan 2003 16:25:12 +0900 I am using JBuilder and JBoss 3.0.4 with the Protegra tool and there is a really annoying thing happening. Somehow JBuilder is overwriting my jboss.xml file so that this: destination-jndi-namequeue/testQueue/destination-jndi-name is changed to this: message-driven-destination-namequeue/testQueue/message-driven- destination-name in my message driven bean. Just wondering if anyone else has experienced this, and if there is a way to avoid it? Matt --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP2 - Field To Persist In Updates But Not Inserts
How can I define a CMP2 field to only persist in UPDATEs and not the initial INSERT ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP2 - Field To Persist In Updates But Not Inserts
Ah, no. Sorry. What I have is a nullable field that is an optional foreign key in the database. So, I do not have to supply a value, but if I do, it will be validated against the parent table. At row creation time, I do not know what that value should be, so I want it to be null, but it appears in CMP2 that *every* field must be persisted at insert time. In JBuilder 6, the Data Source browser of the EJB Designer component allows you to edit column CMP properties, and there is an option to ignoreOnInsert which exactly what I want. However, the feature seems to have no effect on the deployment XML. Thanks. //Nicholas --- Alex Loubyansky [EMAIL PROTECTED] wrote: Hello Nicholas, could you be more specific? do you mean the field should be updated by the db? alex Monday, January 06, 2003, 2:18:50 PM, you wrote: N How can I define a CMP2 field to only persist in N UPDATEs and not the initial INSERT ? N Thanks. N //Nicholas N = N Nicholas Whitehead N Home: (973) 377 9335 N Cell: (201) 615 2716 N Work: (212) 622 5639 N [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How do I propagate LoginContexts so allow subsequent calls to access secured EJBs ?
There is an element of JAAS and JBossSX I am not clear on. I have set up my policy (DatabaseServerLoginModule) and I can successfully authenticate users logging in via a web service (Axis), butI am unsure of what I need to do in order to propagate the LoginContext (or its contents) so that subsequent calls via the web services can invoke secured EJBs. Thanks for youer help. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How do I propagate LoginContexts so allow subsequent calls to access secured EJBs ?
OK, I got that. (I had to secure the Axis servcies servlet to get it to work, but it worked). The error I get now when I try and create a remote from the Home is: java.lang.SecurityException: No method permissions assigned to method=create, interface=HOME I am not even sure how you express permissions on the Home object. I though it was only on remotes.. I put this in the ejb-jar for the remote: method ejb-nameClientManager/ejb-name method-name*/method-name /method So do I need to add: method ejb-nameClientManagerHome/ejb-name method-name*/method-name /method ? Thanks. //Nicholas --- Scott M Stark [EMAIL PROTECTED] wrote: Its automatic when using the bundled web containers. All you need to do is be using the same security domain for the web and ejb layers. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Nicholas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 11:20 AM Subject: [JBoss-user] How do I propagate LoginContexts so allow subsequent calls to access secured EJBs ? There is an element of JAAS and JBossSX I am not clear on. I have set up my policy (DatabaseServerLoginModule) and I can successfully authenticate users logging in via a web service (Axis), butI am unsure of what I need to do in order to propagate the LoginContext (or its contents) so that subsequent calls via the web services can invoke secured EJBs. Thanks for youer help. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How do I propagate LoginContexts - SOLVED
Thanks for the help. I figured out what the problem was. --- Nicholas [EMAIL PROTECTED] wrote: OK, I got that. (I had to secure the Axis servcies servlet to get it to work, but it worked). The error I get now when I try and create a remote from the Home is: java.lang.SecurityException: No method permissions assigned to method=create, interface=HOME I am not even sure how you express permissions on the Home object. I though it was only on remotes.. I put this in the ejb-jar for the remote: method ejb-nameClientManager/ejb-name method-name*/method-name /method So do I need to add: method ejb-nameClientManagerHome/ejb-name method-name*/method-name /method ? Thanks. //Nicholas --- Scott M Stark [EMAIL PROTECTED] wrote: Its automatic when using the bundled web containers. All you need to do is be using the same security domain for the web and ejb layers. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Nicholas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 06, 2003 11:20 AM Subject: [JBoss-user] How do I propagate LoginContexts so allow subsequent calls to access secured EJBs ? There is an element of JAAS and JBossSX I am not clear on. I have set up my policy (DatabaseServerLoginModule) and I can successfully authenticate users logging in via a web service (Axis), butI am unsure of what I need to do in order to propagate the LoginContext (or its contents) so that subsequent calls via the web services can invoke secured EJBs. Thanks for youer help. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Announcement - JBoss Handbook
Awesome. I put in my order already. --- Meeraj Kunnumpurath [EMAIL PROTECTED] wrote: Hi, I am pleased to announce the availability of the book JBoss 3.0 Deployment and Administration Handbook. The book provides a comprehensive coverage of the JBoss 3.0 server, focusing on -JBoss architecture -Deploying and configuring EJBs, web applications, EAR files, JCA resource adapters, JMX MBeans etc on JBoss -JBoss CMP 2.0 features -JBoss clustering -Configuring JMS and JCA -Configuring security, logging, JavaMail -JBoss custom features like scheduling -Administration and monitoring of the server. The book will be a valuable resource for anyone using JBoss in production and development.The book is published by WROX Press and is available on Amazon, http://www.amazon.com/exec/obidos/tg/detail/-/1861008120/qid=1041628886/sr=8-1/ref=sr_8_1/104-6889188-8834314?v=glances=booksn=507846 Let me also take this opportunity to express my immense gratitude to all the JBoss developers who have made this book possible. Thanks Meeraj - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Commit Option D - Observation Questions
I have been perofmring some tests on the Commit Option D. As I understand the docs, the comtainer will periodically refresh the bean state from the database, the frequency of that process being defined by the default (30 seconds) or the optiond-refresh-rate element. However, I have observed that the event that is triggered does not seem to actually refresh the bean state, but rather simply invalidates it and forces a trip to the database on the next bean access. Am I totally off base here ? Obviously the former is preferable. Along those lines, I have some bean persistence store tables that may periodically be updated by an external source ( a legacy deal... ). I would really like to give the legacy update middleware dudes an API to publish JMS messages to MDBs that I set up that would allow me to force Option D like refreshes (or at leat invalidations). In this way, I reduce the likelihood of lost updates or stale data being retrieved. The communication mechansim aside, what would I need to do inside the container to force a resynch like this ? Thanks. //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossSX JAAS Article On JavaWorld - Does It Apply To JBoss 3.0.x ?
I am reading Scott Stark's article in JavaWorld (http://www.javaworld.com/javaworld/jw-08-2001/jw-0831-jaas_p.html) regarding JBossSX and JASS. At the time, it was based on JBoss 2.4. Does it apply, by and large, to JBoss 3.0.x as well ? //Nicholas = Nicholas Whitehead Home: (973) 377 9335 Cell: (201) 615 2716 Work: (212) 622 5639 [EMAIL PROTECTED] --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user