[JBoss-user] [EJB 3.0] - Re: Embedded EJB3: NO TX DATASOURCE setup
Nope. I also tried to do it myself starting from source, but it was too difficult for my skills. I want to share my experience: my application (same .jar) can run either (1) on thick client (container embedded), or (2) distributed server (Tomcat + container embedded), or (3) company servers (Tomcat + jboss as + ejb3). Ejb3 makes it possible! I decided not to use multiple datasources (or databases) within solution 1 & 2. This is not a workaround because every table can hosted by the same database as there are not scalability or performance issues. Doing so I get also a better manageability. Where I need multiple database is within the third solution, where there will be lots of records. I'm using mysql, so myisam performance gains are visible only within the third solution. So, just think on what you really need. In every case the original question is still open. bye F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956263#3956263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956263 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Injecting EntityManager with an interceptor
Are you sure you are interested in having the EntityManager created the first time the factory (singleton) is created? And then using that EM instance? I don't think EM is thread safe. I had the same decision to take some time ago, and I preferred to pass EM as parameter to DAO class when calling static method. Doing so, I'm sure to pass the EM private to current thread. More: I create a bunch of EM in my interceptors and I store them in threadlocal variables so to get visibility both in other interceptors and bean. Every piece of code gets what it needs and passes it to DAO. It's useful to put jboss classes on debug level in log4j conf. Doing that you could have a look at EM lifecycle. Tell me what you think. bye F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956252#3956252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956252 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Default interceptors bad behaviour
I think it's a bug. My sample application Log is: INFO 25-06 15:37:52,781 (EJB3StandaloneBootstrap.java:loadMBeanServer:408) -!!loadMBeanServer servers 0 INFO 25-06 15:37:52,781 (EJB3StandaloneBootstrap.java:loadMBeanServer:411) -!!loadMBeanServer creating... WARN 25-06 15:37:53,453 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0' INFO 25-06 15:37:54,953 (Ejb3DescriptorHandler.java:addClassAnnotation:1699) -adding class annotation javax.interceptor.Interceptors to org.jboss.tutorial.interceptor.bean.SampleBean [EMAIL PROTECTED] INFO 25-06 15:37:54,968 (Ejb3Deployment.java:create:467) -EJB3 deployment time took: 609 INFO 25-06 15:37:55,000 (MCKernelAbstraction.java:install:84) -installing bean: jboss.j2ee:jar=bin,name=SampleBean,service=EJB3 with dependencies: INFO 25-06 15:37:55,312 (EJBContainer.java:start:553) -STARTED EJB: org.jboss.tutorial.interceptor.bean.SampleBean ejbName: SampleBean Starting *** DefaultInterceptor intercepting sample *** TracingInterceptor intercepting sample *** SampleInterceptor intercepting sample *** DefaultInterceptor intercepting sample *** TracingInterceptor intercepting sample sample called *** TracingInterceptor invocation of org.jboss.tutorial.interceptor.bean.SampleBean.sample() took 0ms *** DefaultInterceptor exiting *** SampleInterceptor exiting *** TracingInterceptor invocation of org.jboss.tutorial.interceptor.bean.SampleBean.sample() took 0ms *** DefaultInterceptor exiting Done Why default interceptors (DefaultInterceptor and TracingInterceptor) are called a second time after method interceptor (SampleInterceptor)? Ejb-jar.xml content is * org.jboss.tutorial.interceptor.bean.DefaultInterceptor org.jboss.tutorial.interceptor.bean.TracingInterceptor Should I post to Jira? Thanks in advance. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953278#3953278 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953278 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Performance for embedded alpha 8
I noted a 10 second increasing on a total of 50 seconds when I switched from alfa6 to alfa8. DEBUG 20-06 19:35:32,937 (KernelFactory.java:assembleNewKernel:86) -Starting JBoss Kernel construction... DEBUG 20-06 19:35:33,078 (KernelFactory.java:assembleNewKernel:112) -Completed JBoss Kernel construction. Duration: 125 milliseconds INFO 20-06 19:35:33,078 (EJB3StandaloneBootstrap.java:loadMBeanServer:408) -!!loadMBeanServer servers 0 INFO 20-06 19:35:33,078 (EJB3StandaloneBootstrap.java:loadMBeanServer:411) -!!loadMBeanServer creating... WARN 20-06 19:35:33,656 (BeanSchemaBinding.java:init:227) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0' DEBUG 20-06 19:35:33,734 (BeanXMLDeployer.java:deploy:91) -Parsing file:/D:/Eclipse%20Workspaces/SOA_EJB3/CBI_BE/bin/embedded-jboss-beans.xml took 594 milliseconds DEBUG 20-06 19:35:34,000 (UserTransactionImpl.java:start:61) -new UserTx: [EMAIL PROTECTED] INFO 20-06 19:35:34,078 (LocalTxDataSource.java:bindConnectionFactory:117) -Bound datasource to JNDI name 'java:/cbi_local_tx' DEBUG 20-06 19:35:34,093 (BeanXMLDeployer.java:deploy:98) -Deploying file:/D:/Eclipse%20Workspaces/SOA_EJB3/CBI_BE/bin/embedded-jboss-beans.xml took 953 milliseconds DEBUG 20-06 19:36:09,296 (JaccHelper.java:initialiseJacc:61) -Initialising JACC Context for deployment: Cbi DEBUG 20-06 19:36:09,625 (Ejb3AnnotationHandler.java:getContainers:164) -found EJB3: ... ... Watching the log I see that there's a 35 secs stop (cpu at 100%) just after the deploying of embedded-jboss-bean.xml (where there is an accurate time report) and before the JACC initialization. I'm struggling to understand what those 35 secs are used for, as I think they will increase when increasing bean number. I hope not, because bootstrap can get very delayed. I'm also thinking to break bean deploying on several pieces respecting dependencies and to load beans on request. But I have to work on it. cheers F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952096#3952096 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952096 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Default interceptors bad behaviour
Win xp, jdk 1.5_04, EJB3 embeddable alfa8. Default interceptors, specified in ejb-jar.xml file, are always called even after method interceptor. Default interceptors, unless a different specified ordering, should be called before method interceptor. Instead, from release alfa8 they are called both before and after. I can provide sample code for this, maybe in Jira. Regards F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951447#3951447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951447 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Intercepting output bean results
I use EJB3 bean and interceptors in this way: int. A (try block) int. B (try block) bean's method int. B (finally block) int. A (finally block) where in try block I do some checks on request and in finally block (after bean method execution) I do some other check on bean generated response. Response is passed between interceptors and bean (and viceversa) using threadlocal data as explained in http://www.jboss.com/index.html?module=bb&op=viewtopic&t=77276 Is it possible to make bean response visible to interceptors as it yet happens for parameeters? Doing so, bean's mthod semantic would be cleaner because there's no need to rely on additional code to export the response. I don't know if this feature is implemented, so I posted on forum. thanks in advance regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951438#3951438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951438 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Embedded EJB3: NO TX DATASOURCE setup
Hi, does anyone knows how to set up a non transactional datasource inside embedded ejb3? While it is possible to define a org.jboss.resource.adapter.jdbc.local.LocalTxDataSource to bootstrap a TX DS, I still haven't found how to set up a non transactional datasource like the way I'm used to do with xml node in *-ds.xml inside the container. Any help will be appreciated. regards F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928552#3928552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928552 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - Re: CLIENT-CERT AUTH: is it really strong?
"two-way SSL handshake" with certificate from both sides is handled at lower level. Ain't to be reinvented! bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926271#3926271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926271 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - CLIENT-CERT AUTH: is it really strong?
My question rises from the fact that client is authenticated against a principal retrieved from the public certificate that the browser send in response to ObjectCallabck. Is it possible that a user could send this certificate even when he's not the real certifcate owner? I remember that security is based on digital sign of random hash sent by server and verified on server against the public certificate stored a in java store. But I cannot find this feature in the sources that manage client authentication in Jboss 4.0.3SP1 release. Any suggestion will be appreciated. thanks in advance F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925652#3925652 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925652 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EJB-3.0_RC5-PFD tutorial: problem on stateless sample
What a mistake! Thanks Peter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924404#3924404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924404 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - EJB-3.0_RC5-PFD tutorial: problem on stateless sample
I've succesfully installed JBoss-4.0.4RC1 on windows XP sp2 using graphical installer. Now I was experimenting with stateless session bean as explained in the tutorial. I'm not able to do the lookup to local interface CalculatorLocal of CalculatorBean on client side. What I get is: run: [java] Exception in thread "main" java.lang.NullPointerException [java] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74) [java] at $Proxy0.add(Unknown Source) [java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:35) [java] Java Result: 1 BUILD SUCCESSFUL Total time: 1 second I'm sure about the existence of jndi binding, as reported in Global JNDI Namespace (jmx console, service=JNDIView): +- CalculatorBean (class: org.jnp.interfaces.NamingContext) | +- local (proxy: $Proxy48 implements interface org.jboss.tutorial.stateless.bean.CalculatorLocal,interface org.jboss.ejb3.JBossProxy) | +- remote (proxy: $Proxy47 implements interface org.jboss.tutorial.stateless.bean.CalculatorRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) Remote binding works correctly. So I'm struggling only on local interface. Server side sources are same of tutorial. Client side source has only one line modified (in order to lookup local interface) public class Client { public static void main(String[] args) throws Exception { InitialContext ctx = new InitialContext(); Calculator calculator = (Calculator) ctx.lookup("CalculatorBean/local"); System.out.println("1 + 1 = " + calculator.add(1, 1)); System.out.println("1 - 1 = " + calculator.subtract(1, 1)); } } Any help will be appreciated. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924383#3924383 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924383 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Unable to access Management portlet for Portal 2.2.0RC1
I do have same problems 1. Jboss Portal 2.2 RC1 running on MySql 5.0 2. Jboss Jboss AS 4.03 SP1 running on PortalDS No custom config. thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3911717#3911717 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3911717 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - hibernate-service.xml disable second level cache
I think it's not yet possible to enable/disable the secons level cache. In fact, reading the source org.jboss.hibernate.jmx.hibernate.java, I found // TODO : needed until we decide what to do about "no cache provider specified" internally within Hibernate if ( cacheProviderClass == null ) { // Hibernate defaults to always instantiating an EHCacheProvider, which // introduces a huge potential for an unecessary dependency cacheProviderClass = "org.hibernate.cache.HashtableCacheProvider"; } I would appreciate very much if this detail were left to a develper decision. Is this feature scheduled? Is there any workaround? For now I'll try to disable the second level cache at the class level. Thanks in advance Best regards. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905509#3905509 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905509 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss 4.0.2 MDB bind to remote MQSeries
It worked for me. Thanks to all. I appreciated the great wiki very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901457#3901457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901457 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: The infamous RmiModeler: ClassNotFoundException
Hey, I'm here... I'm just telling you what worked for me. >From within the project root dir I execute the following command: wscompile -verbose -classpath ./bin -gen:server -f:rpcliteral -mapping mapping.xml config.xml where config.xml is in the project root dir; where bin is the dir where Eclipse put the compiled classes and related packages (bin is a child of project root dir). I think you are wrong in the dir name format. Hope this works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899325#3899325 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899325 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: JBoss 4.0.2 MDB bind to remote MQSeries
I have identical problem too. My configuration is as follows: JBoss 4.0.2 JDK 1.5.0_05 MQSeries version 5.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3898724#3898724 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3898724 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user