[jboss-user] [EJB 3.0 Users] - Re: Session EJB 3.1 packaged in war file not recognized in J
JBoss AS 6.0.0.M1 does not support any EJB 3.1 features. https://jira.jboss.org/jira/browse/JBAS-7526 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4269540#4269540 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4269540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - EJB 3 1.1.21 bundle released with JBoss AS 6.0.0.M1
The first and foremost question everybody will ask is: does it contain EJB 3.1 features? The short answer is: no (keep on reading ;-) ). Jason Greene wrote : JBoss AS 6.0.0.M1 is the first milestone release of the community driven AS 6 series. It includes support for certain key technologies that are part of the EE6 specification. Additional capabilities will be added in future milestones. | | The new EE standards supported in this release are: | * JSF 2 - Includes major improvements over JSF1 such as AJAX support and integration with Bean Validation. | * Bean Validation (JSR-303) - Provides centralized validation of model objects accross all tiers (presentation, data, etc). | * CDI [Weld RI] (JSR-299) - Offers an innovative and feature rich context management and dependency injection framework for EE applications. | | Other major additions include: | * Mod_cluster - An intelligent load balancing solution that integrates with Apache Web Server, and uses appserver heuristics to efficiently balance requests across a JBoss AS cluster. | * Embedded Prototype - A prototype for a new API that launches, configures and deploys against an in-VM JBoss AS instance. | * Many bug fixes and small enhancements listed in the full notes below. For the complete release notes with working links go to http://www.jboss.org/community/wiki/AS600M1ReleaseNotes. The AS 6 milestones will get additional capabilities as they are released. For EJB 3 we'll start at the baseline EJB 3.0 and release a new capability frequently until we get the full EJB 3.1 in the final AS 6 release. In fact we will not wait for milestones to appear, but we'll use a package manager to install components into the latest milestone (in similar fashion as the plugin). As for the new technologies that are in 6.0.0.M1, like Bean Validation, I highly recommend you add ConstraintViolationException to your application exception list. http://wolf-71.blogspot.com/2009/10/constraint-violated-transaction-rolled.html More information and the download link can be found on Jasons blog entry: http://in.relation.to/Bloggers/IntroducingJBossAS600M1. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4268680#4268680 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4268680 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - Final release of EJB 3 1.0.19 Plugin (1.1.22 bundle) for JBo
Plugin release 1.0.19, which installs the 1.1.22 bundle into JBoss AS 5.1.0.GA, is the last release we'll do of the plugin. With the release of JBoss AS 6.0.0.M1 we'll switch over to 'Package Manager'. It will allow us to replace components on a much finer scale than the Plugin is capable of. So, to bring your AS 5.1.0.GA up to date with EJB 3 1.1.22 download and run the Plugin found here: http://sourceforge.net/projects/jboss/files/EJB 3.0/JBoss EJB 3.0 1.0.19/. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4268683#4268683 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4268683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0 Users] - Re: Migration EJB2.1 - EJB3 - Usage of ValueObjects / DataT
Duplicate post, see http://www.jboss.org/index.html?module=bbop=viewtopict=164123. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4267060#4267060 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4267060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging Users] - Re: JSMSecurityException on my queue (EJB 3)
Alternatively enable tracing on org.jboss.security and get the real exception. catch(LoginException e) | { | // Don't log anonymous user failures unless trace level logging is on | if( principal != null principal.getName() != null || trace ) | log.trace(Login failure, e); | authException = e; | } View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4252711#4252711 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4252711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBOSS5.1.x :: Does EJB3 MDB has a dependency on EJBTimer
It's hardcoded in Ejb3Deployment.registerContainer. Please file an issue in https://jira.jboss.org/jira/browse/EJBTHREE Note that this is a low priority. The issue will probably dissipate when the new deployers come online. The bean should really have an optional dependency on org.jboss.ejb3.timerservice.spi.TimerServiceFactory (which is implemented by the bean installed in ejb3-timerservice-jboss-beans.xml). View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4247236#4247236 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4247236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence Unit not found for EJB3 SLSB in AS 5.1.0.GA
The real question is: why did it detect an EJB in the EAR? jboss.j2ee:ear=MVCCSampleEAR.ear,jar=MVCCSampleEAR.ear,name=PersonManager,service=EJB3 What's the exact layout of the EAR? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244330#4244330 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244330 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Limit IP access to a session beans (EAR)
An AOP interceptor can access the client address: https://jira.jboss.org/jira/browse/JBREM-758. It's not yet available through an EJB API yet: https://jira.jboss.org/jira/browse/EJBTHREE-902. So you can write an AOP interceptor, put it into ejb3-interceptors-aop.xml and push the client address somewhere where you can pick it up in the bean. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240347#4240347 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240347 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB injection fails with
It's actually Weblogic which is faulty here. To determine whether you want to call-by-value (remote) or call-by-reference (local) we must have a reference to the appropriate interface. The construct posted by Jaikiran should work, if not open a Jira. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236618#4236618 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Regression: Unable to deploy self referencing EJB3 sessi
Sounds like https://jira.jboss.org/jira/browse/EJBTHREE-1520. The associated unit test is passing fine. Please post your NPE. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4236616#4236616 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4236616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3 unit tests, how?
You can find the latest stuff here: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/embedded/ You may want to checkout all of trunk and build it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4235397#4235397 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4235397 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3 unit tests, how?
For AS 5.1 you can use the EJB 3.1 Embeddable prototype http://www.jboss.org/community/wiki/EJB31Embeddable The latest version can also deploy datasources and JPA entities. Properties properties = new Properties(); | container = EJBContainer.createEJBContainer(properties); | | on(container).deploy( | deployment(resource(explicit/ds-deployers-beans.xml)), | deployment(default-ds, |NonXADataSourceDeploymentMetaData.class, |localDataSource() | .connectionURL(jdbc:hsqldb:mem:defaultdb) | .driverClass(org.jboss.ejb3.embedded.test.common.HSQLDBService) | .jndiName(java:/DefaultDS) | .user(sa) | .password() | .getMetaData() | )); | | on(container).deploy( | deployment( | pkg(org.jboss.ejb3.embedded.test.stateless), | persistence( | unit(tempdb) |.jtaDataSource(java:/DefaultDS) |.property(hibernate.hbm2ddl.auto, create-drop) |))); | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4235087#4235087 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4235087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3 1.1.5 bundle released with JBoss AS 5.1.0.GA
Already old, because a plugin release has already gone passed. :-) But here is AS 5.1.0.GA with a new and better EJB 3 implementation: Rajesh Rajasek wrote : JBoss AS 5.1.0.GA is released and is available for download. | http://www.jboss.org/jbossas/downloads/ | | Along with many bug fixes and enhancements, this is the first general release to include our new, significantly improved open-source console. | Highlights | * New Web Console - This release includes our new administration console. Several updates have been made since the CR1 release, including the introduction of WAR metrics. | * Web Beans Update - In addition, this release includes an updated tech preview of the new JSR-299 Web Beans RI. | * Farming Returns - Due to popular demand, the farming service is back! | | For detailed release notes, visit here: | http://www.jboss.org/jbossas/docs/Release_Notes/510GA/readme.html | | Happy Memorial Day to all folks in the US! | | Thanks | Rajesh These are the changes since AS 5.0.1.GA: Release Notes for EJB 3.0 Includes versions: 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 ** Sub-task * [ EJBTHREE-1718 ] Deprecate usage of org.jboss.ejb3.embedded.deployers.JBossEjbParsingDeployer * [ EJBTHREE-1722 ] Clear out existing ejb3-async Implementation * [ EJBTHREE-1729 ] Make jboss-ejb3-async-spi * [ EJBTHREE-1740 ] Upport JBPAPP-856: Support DeliveryActive MDB activation config property on deployment * [ EJBTHREE-1753 ] persistenceunits MultipleEarTestCase.testServerFound fails due to changed error message * [ EJBTHREE-1767 ] Change ejb3-proxy to ejb3-proxy-impl * [ EJBTHREE-1771 ] Create a proxy transition component * [ EJBTHREE-1801 ] Performance : Improve the logic in the InterceptorRegistry and InjectInterceptorsFactory ** Feature Request * [ EJBTHREE-987 ] support DeliveryActive MDB activation config property * [ EJBTHREE-1624 ] Provide @EJB injection into MC Beans * [ EJBTHREE-1708 ] Allow the installer to install packages and remain in the temp dir * [ EJBTHREE-1768 ] Create a Utility to alter Manifest Class-Path in jbossall-client * [ EJBTHREE-1815 ] Unwarranted deployment errors must specify the offending bean ** Bug * [ EJBTHREE-1135 ] Interceptor's tutorial page contains outdated XML * [ EJBTHREE-1346 ] Disabling @Clustered via jboss.xml not being respected * [ EJBTHREE-1358 ] StrictMaxPool for SFSB does not decrease Pool-Usage on bean-removal * [ EJBTHREE-1597 ] Missing default persistence properties * [ EJBTHREE-1629 ] Ejb3DescriptorHandler does not handle complete set of primitives * [ EJBTHREE-1677 ] Incorrect handling of overloaded methods in ServiceMBeanDelegate * [ EJBTHREE-1690 ] jboss-ejb3-core has has a transitive dependency on jboss-servlet-api * [ EJBTHREE-1692 ] Slow memory leak in StatefulTreeCache if removal timeout is not configured. * [ EJBTHREE-1694 ] FieldBeanProperty.set has potential NPE, not considering Bootstrap CL * [ EJBTHREE-1700 ] EJB3 installer deletes JBOSS_HOME/client/ejb3-persistence.jar and does not copy it back during patching * [ EJBTHREE-1745 ] java:comp/env isn't available for SessionSynchronization callbacks * [ EJBTHREE-1746 ] EJB3 tutorials not working against JBossAS-5.0.1 GA * [ EJBTHREE-1757 ] Chapter 36 of the tutorial guide is missing the chapter name * [ EJBTHREE-1778 ] Proxy Factories are not bound in MC under unique names across EARs * [ EJBTHREE-1793 ] EJb2.x bean in reference21_30 testcase of the testsuite does not strictly follow the spec * [ EJBTHREE-1795 ] Fix the ChangeXMLUnitTestCase to be more robust * [ EJBTHREE-1798 ] JNDIKernelRegistryPlugin should not create proxies or sessions during MC context state change * [ EJBTHREE-1802 ] AbstractEjbReferenceValueMetadata doesn't handle UnresolvableReferenceException while resolving EJB reference * [ EJBTHREE-1803 ] Installer does not copy core-client to client folder of AS * [ EJBTHREE-1807 ] StatefulTreeCache removal task can't handle already removed beans * [ EJBTHREE-1808 ] Fix the pointcut expressions, to introduce annotations on joinpoints, in ejb3-interceptors-aop.xml * [ EJBTHREE-1825 ] Fix the typo in jboss-ejb3-endpoint-deployer.xml which is used in the plugin for installing the ejb3-endpoint-deployer ** Task * [ EJBTHREE-1241 ] Address EJB3 TestSuite Regressions * [ EJBTHREE-1396 ] MockServer must report startup / shutdown * [ EJBTHREE-1401 ] Create Tests for @Remote pass-by-value within local JVM * [ EJBTHREE-1693 ] Don't duplicate DeploymentUnit.getTopLevel * [ EJBTHREE-1695 ] Remove ejb3-core dependency upon ejb3-async * [ EJBTHREE-1697 ] Move the current ejb3 timer service to a separate optional component * [ EJBTHREE-1709 ] Check for applicable interceptors is missing (Was: Unnecessary logging at WARN level) * [
[jboss-user] [EJB 3.0] - Re: Problem in calling methods on EJB3 app from client
That piece of source is here: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/ejb3/tags/jboss-ejb3-core-1.0.0/src/main/java/org/jboss/ejb3/stateless/StatelessContainer.java?annotate=83287 Apparently the business method called can't be found in the AOP Advisor. Could you try again using AS 5.1.0.CR1? If it fails there open up a Jira in https://jira.jboss.org/jira/browse/EJBTHREE. If possible attach source code which exhibits the problem. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4230707#4230707 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4230707 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Deploying Apache DayTrader on AS 5.1
By spec res-type is mandatory if no injection target is given. In practice we can continue without, because it's just a LinkRef to the jndi-name. Issue a warning, but allow the construct. Create a test case accordingly. The bug was introduced with: https://jira.jboss.org/jira/browse/EJBTHREE-1635 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229460#4229460 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence context propagation on remote calls
EJB 3.0 Persistence 5.6.3 wrote : Propagation of persistence contexts only applies within a local environment. Persistence contexts are not propagated to remote tiers. So propagation will not occur if the call is really remote. Calling locally through a remote interface will propagate the PC. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228429#4228429 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: ThreadLocalPool - Seam and Stateful Session Beans potent
https://jira.jboss.org/jira/browse/EJBTHREE-1358 https://jira.jboss.org/jira/browse/JBPAPP-1938 This is fixed in the upcoming EJB 3 Plugin and Enterprise Application Platform releases. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4228431#4228431 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4228431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
There seems to be an illegal configuration in connectadministration-ejb.jar on which the deployment chokes. Does it contain a jboss.xml? If so, could you post it? Would it be possible to attach said jar to EJBTHREE-1751? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4226949#4226949 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4226949 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Unable to register deployment mbean org.jboss.metadata.j
It looks like a bug in JBDEPLOYERS. It registers a MBean under the same name for components from different units. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4226544#4226544 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4226544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
Just before the NPE there should a log debug message starting with: Found endpoint for interface: If so, please post it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4224590#4224590 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Web Beans + JPA
Alternatively, if you're on the VDF you can pick up the PersistenceMetaData attachment from the PerisistenceParsingDeployer. http://anonsvn.jboss.org/repos/jbossas/projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers/PersistenceParsingDeployer.java View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4224086#4224086 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4224086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Web Beans + JPA
I disagree: The JPA consumer (AS / Embedded) has no facility to identify an entity. This is custom logic per JPA provider. For example the JPA provider could have a @WhopperEntity which is an extension to the standard @Entity (extra cheese). In which case we'll never find it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4221470#4221470 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4221470 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Programatically create a Inject fromContext
//ValueMetaData inject = builder.createInject(containerMCBeanName, null, null, ControllerState.DESCRIBED); | AbstractInjectionValueMetaData inject = new AbstractInjectionValueMetaData(containerMCBeanName); | inject.setWhenRequiredState(ControllerState.DESCRIBED); | inject.setFromContext(FromContext.CONTEXT); View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4219025#4219025 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4219025 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance
We could bind a 'home' interface and call it 'meta' instead. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216088#4216088 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216088 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: A callback on EJB removal
Why doesn't the @PreDestroy on the SeamInterceptor work? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216089#4216089 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216089 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Make a default interceptor the inner interceptor
pete.m...@jboss.org wrote : ... | So, is there a spec'd way to do this? Or a JBoss way? No and no. We could create a new interceptor group which allows for ordering on a new level. But that should not be be limited to Seam so we would need ordering within that new group as well. What's the problem you're trying to resolve? If it's 'configuration errors', then adding complexity to relieve that is not an option. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216090#4216090 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216090 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Attachments eligible for being passed to the deployers?
So why does the AliasDeploymentDeployer add an attachment? |protected static void addAliasComponent(DeploymentUnit unit, NamedAliasMetaData alias) |{ | DeploymentUnit component = unit.addComponent(alias.getAliasValue().toString()); | component.addAttachment(NamedAliasMetaData.class.getName(), alias); |} | When will you answer my question? :-) http://www.jboss.org/index.html?module=bbop=viewtopict=145178 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216124#4216124 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4216124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using WebBeans EJB integration in EEJB
The underlying problem is that we don't have a (JTA) data source deployer in E-EJB3. jta-profile needs to move down the food chain. jpa-profile needs to be created and we need a simple jca-profile for the above. Then ejb3-embedded should be based on profile3_1 and your set to go. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4212520#4212520 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4212520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3 1.0.0 bundle released with JBoss AS 5.0.1.GA
The EJB 3 1.0.0 release that is available for as a plugin for AS 5.0.0.GA has also gone into AS 5.0.1.GA. Rajesh Rajasekaran wrote : JBoss AS 5.0.1.GA has been released and is available for download at | http://www.jboss.org/jbossas/downloads/ | | This is the first bug fixing release http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProductVersioning release of the JBoss 5.0 series for the Java EE5 codebase that fully complies | with the Java EE 5 conformance testing certification requirements. It contains more than 40 bug fixes and | improvents as well as addresses the majority of the initial glitches reported by the | community since the release of JBoss AS 5.0.0.GA | | Detailed release notes: | https://sourceforge.net/project/shownotes.php?release_id=663566group_id=22866 | | Thanks | Rajesh Other than a recent post of someone deprecating the .ejb3 usage, I saw no reply to the .ejb3 usage question. So that function has been removed. Please open a forum thread here if you spot any problems. Release Notes for EJB 3 1.0.0-GA (from 1.0.0-Beta10) ** Sub-task * [ EJBTHREE-1243 ] Fix Security Regressions from Revision 71339 * [ EJBTHREE-1251 ] Fix security5 tests * [ EJBTHREE-1609 ] ClassHelper needs privileged blocks for all sensistive operations * [ EJBTHREE-1618 ] Insecure access to getClassLoader in SerializableMethod * [ EJBTHREE-1619 ] Setting permissions in Ejb3AuthenticationInterceptorv2 needs to be done in doPrivileged * [ EJBTHREE-1636 ] SerializableMethod should use PrimitiveAwareClassLoader ** Feature Request * [ EJBTHREE-1437 ] Upgrade -aop.xml files to use JAXB * [ EJBTHREE-1596 ] Improve error message when persistence unit can not be resolved * [ EJBTHREE-1620 ] Allow for configuration of known-issues * [ EJBTHREE-1648 ] Plugin should not export dependencies to consumers ** Bug * [ EJBTHREE-1530 ] MBean 'start' method calls not honouring dependencies * [ EJBTHREE-1622 ] Errors in resolving arrays under JDK6 in SerializableMethod.toMethod() * [ EJBTHREE-1628 ] NullPointerException in ExtendedSessionInvocationHandler * [ EJBTHREE-1630 ] EJBContext of service bean does not implement SessionContext * [ EJBTHREE-1635 ] Resources of type URL defined with annotations don't have resUrl set * [ EJBTHREE-1643 ] SecurityDomain unauthenticatedPrincipal is not honoured * [ EJBTHREE-1646 ] Placeholder * [ EJBTHREE-1653 ] Locking in EJBContainer during start/stop can cause deadlocks and/or IllegalMonitorStateExceptions * [ EJBTHREE-1654 ] BlockContainerShutdownInterceptor does not immediately reject invocations once EJBContainer stop is requested * [ EJBTHREE-1658 ] pecified calling class, [B could not be found for sun.misc.Launcher$AppClassLoader * [ EJBTHREE-1663 ] Authorization/Authentication should not be performed upon lifecycle of @Service beans * [ EJBTHREE-1668 ] Non-existent default business interface(s) for EJB2.x view beans bound to JNDI * [ EJBTHREE-1671 ] CNFE when injecting @Resource of application specific type in an application packaged as EAR with jboss-app.xml classloading configuration * [ EJBTHREE-1675 ] Fix invoker test * [ EJBTHREE-1676 ] JBossServiceBeanMetadata must be wrapped in JBossServicePolicyDecorator * [ EJBTHREE-1678 ] Support for Service exposing a management interface and a custom objectName through deployment descriptor isn't working * [ EJBTHREE-1680 ] Async invocation should report the real exception as a cause in ExecutionException * [ EJBTHREE-1681 ] Async invocation only works once * [ EJBTHREE-1682 ] SecurityContext is not propagated on asynchronous calls * [ EJBTHREE-1684 ] Plugin must also install jboss-metadata.jar in client directory * [ EJBTHREE-1688 ] isHomeAndBusinessBoundTogether may return true in presense of no business interfaces ** Task * [ EJBTHREE-655 ] Refactor @Service beans * [ EJBTHREE-1201 ] fix failures/regressions in testsuite * [ EJBTHREE-1328 ] Fixes for build-test.xml * [ EJBTHREE-1574 ] EJB3 Remote Annotation with EJB2.x View - Enhanced Error Message * [ EJBTHREE-1610 ] Remove configurations telling clients to connect to 0.0.0.0 (INADDR_ANY) * [ EJBTHREE-1611 ] Embedded EJB3 POM out of date * [ EJBTHREE-1614 ] Extract out logic to decorate metadata w/ JNDI Binding Policy from EjbMetadataJndiPolicyDecoratorDeployer * [ EJBTHREE-1615 ] Externalize attachment names as a contract away from the deployers themselves * [ EJBTHREE-1616 ] Create a pluggable @EJB Reference Resolver * [ EJBTHREE-1625 ] Create MC Integration Project * [ EJBTHREE-1626 ] Create a ClassLoader capable of loading Primitives * [ EJBTHREE-1639 ] IsLocalInterceptor should no longer support @Deprecated dynamicInvoke to Service Containers * [ EJBTHREE-1645 ] Centralize logic to get at all EJB3 Deployment
[jboss-user] [Microcontainer] - Re: Deployment unit aware annotations
That doesn't work because the bean itself isn't there yet. So right now I examine the BeanMetaData. (iterating over mainDeployer.getTopLevel()) private DeploymentUnit findBean(DeploymentUnit deploymentUnit, String contextName) |{ | if(deploymentUnit == null) | return null; | /* | SetObject controllerContextNames = deploymentUnit.getControllerContextNames(); | if(controllerContextNames != null) | { | for(Object name : controllerContextNames) | { | if(name.equals(contextName)) |return deploymentUnit; | } | } | */ | BeanMetaData bmd = deploymentUnit.getAttachment(BeanMetaData.class); | if(bmd != null bmd.getName().equals(contextName)) | return deploymentUnit; | DeploymentUnit result; | for(DeploymentUnit component : deploymentUnit.getComponents()) | { | result = findBean(component, contextName); | if(result != null) | return deploymentUnit; | } | for(DeploymentUnit child : deploymentUnit.getChildren()) | { | result = findBean(child, contextName); | if(result != null) | return result; | } | return null; |} View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210956#4210956 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4210956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: How to add Annotation Plugin?
This bit: bean name=AnnotationHandlerFactory | constructor factoryClass=org.jboss.kernel.plugins.annotations.BeanAnnotationAdapterFactory factoryMethod=getInstance / |/bean |bean name=AnnotationHandler | constructor factoryMethod=getBeanAnnotationAdapter | factory bean=AnnotationHandlerFactory/ | /constructor | incallback method=addAnnotationPlugin / | uncallback method=removeAnnotationPlugin / |/bean must go into the bootstrap. https://jira.jboss.org/jira/browse/JBAS-6514 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210683#4210683 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4210683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Deployment unit aware annotations
I need to have deployment unit aware injection / annotations, so stuff like: @PersistenceUnit |public void setEntityManagerFactory(EntityManagerFactory emf) |{ | this.emf = emf; |} works within a MC bean while obeying the scoping rules. @EJB annotations need the same thing. Now AbstractEjbReferenceValueMetadata.getTargetJndiName throws scoping out the window, which is wrong. I think it boils down to knowing the cause of a MC bean install. While the current resolvers work on deployment unit (as being the root cause) this might now be truly the proper abstraction. For the moment it would be great to actually know the deployment unit which is causing a MC bean install. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210689#4210689 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4210689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Prevent Persistence of EJB Timers
Non-persistent timers are not supported in the current EJB 3 implementation. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210042#4210042 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4210042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Interceptors not working with derived classes (4.2.3)
Would you mind filing a Jira with the code that lead into the NullPointerException? I would rather see a proper check, than a NPE. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4208098#4208098 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4208098 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JBoss AS 5.0.0.GA doesn't have bundled Ejb3
ALRubinger wrote : ... | JBossAS 5.0.0.GA shipped with a composite of the EJB3 components, which together had a release version of 1.0.0-Beta7. | ... That is 1.0.0-Beta10. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4204639#4204639 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4204639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Embeddable EJB release estimate?
The Embeddable EJB 3.1 is a work in progress. We did silently release an 1.0.0-Alpha1 which is compatible with AS 5.0.0.GA. I'm planning to do a 1.0.0-Alpha2 release which is compatible with EJB 3 1.0.0. For more instructions on how to use: http://wiki.jboss.org/wiki/EJB31Embeddable. The plan is to have an embeddable available to co-release with Enterprise Application Platform 5. This could be JBoss Embeddable or EJB 3 Embeddable. It depends a bit on how many standalone components will be available. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4204695#4204695 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4204695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form
The aim of the game here is to get one set of stable components which are certified against EJB 3.0 specs. Since it's a lengthy process to ascertain both certification and stability I want these components to stay solidly in place for a long time. On top of this we'll develop new components to add the extra features required by EJB 3.1 and other feature packs: - class based queuing for invocations - clustered timer service etc. The feature packs will have a separate release cycle. So you might see an EJB 3.1 installer for AS 5.1 (while the basic installation is JavaEE 5 / EJB 3.0). So you're seeing multiple components in the repository. It is even possible to use these components outside of EJB 3 scope. What we don't have yet is a nice graph which shows a good view of these components. So if anybody has some suggestions? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4204698#4204698 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4204698 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3 1.0.0 GA installer released for use with JBoss AS 5.0.
The final release of JBoss EJB 3 1.0.0 is now available. To use it within JBoss AS 5.0.0.GA download the provided installer. http://sourceforge.net/project/showfiles.php?group_id=22866package_id=132063 JBoss EJB 3 1.0.0 is an EJB 3.0 spec compliant implementation for use in JBoss Application Server. Prerequisites: - JBoss AS 5.0.0.GA - Ant 1.7 To install EJB 3 1.0.0 run: $ java -jar jboss-ejb3-plugin-1.0.0-installer.jar /path/to/jboss-5.0.0.GA The known issues are listed here: https://jira.jboss.org/jira/secure/IssueNavigator.jspa?reset=truepid=10021version=12312768sorter/field=issuekeysorter/order=DESC (Note that I didn't reinstate .ejb3 file deployments. Is there anybody using this? :-) ) Please ask any questions or report problems in this forum. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4204446#4204446 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4204446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Looking up a PU from @PersistenceContext annotation
After injecting PersistenceUnitDependencyResolver, this piece of pseudo code should do the trick: String beanName = persistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(deploymentUnit, persistenceUnitName); | PersistenceUnitDeployment deployment = lookup(beanName); | ManagedEntityManagerFactory managedFactory = deployment.getManagedFactory(); | return new InjectedEntityManagerFactory(managedFactory); Although PersistenceUnitDeployment is an internal. Maybe we should add a simple utility class to jpa-deployers. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4200154#4200154 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4200154 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3 1.0.0-Beta10 bundle released with JBoss AS 5.0.0.GA
A new release of EJB 3 is available bundled in JBoss AS 5.0.0.GA. Rajesh Rajasekaran wrote : JBoss Application Server 5.0.0.GA has been released and is available for download. | http://www.jboss.org/jbossas/downloads/ | | This is the final http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProductVersioning release of the JBoss 5.0 series for the JavaEE 5 codebase that fully complies with the Java EE 5 | conformance testing certification requirements. It brings us to the end of a 3+ year marathon of redesigning | the most popular open-source application server over a completely new kernel architecture. | More in the release notes. | https://sourceforge.net/project/shownotes.php?release_id=645033group_id=22866 | | Thanks | Rajesh JBoss Application Server 5.0.0.GA contains a fully spec compliant implementation of EJB 3.0. The bundle itself is called 1.0.0-Beta10, because I want to be certain that all features from JBoss AS 4.2 are available. So certain things are currently not yet implemented, like deploying .ejb3 files. And other things need to be configured using MC services, like skipping annotation scanning. Once we have this fixed and/or documented you'll see a GA of JBoss EJB 3. In the meantime, if you spot a problem with this release, be sure to open a thread here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4194553#4194553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4194553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1/2 Embeddable Usage
This is probably the culprit: jboss:jboss-common-core:jar:2.0.2.GA:compile It probably ends up before org.jboss:jboss-common-core:jar:2.2.8.GA on the classpath. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4190251#4190251 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4190251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Web Bean Discovery
[EMAIL PROTECTED] wrote :/** | | * @return A Map of EJB descriptors, keyed by the EJB bean class | | */ | |public MapClass?, EjbDescriptor? discoverEjbs(); A bean class can be used by multiple EJBs. So you'll have to come up with another key. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4189772#4189772 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4189772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
I've upgraded embedded to use MC 2.0.0.CR5 and applied the workaround. For now embedded is using core SNAPSHOT. https://jira.jboss.org/jira/browse/EJBTHREE-1575[/url] View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4188134#4188134 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4188134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - What's the relation between DeploymentUnit and component?
Adrian, When I call deploymentUnit.addComponent(test); I get back a deployment unit which signifies component test. What can I do with this component? How does it differ from a regular deployment unit? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187286#4187286 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
https://jira.jboss.org/jira/browse/JBMICROCONT-380 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187367#4187367 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
At least MC should say that we entered a non-deterministic situation and throw an exception. I think it would be better to have an UndeterminedConstructorInfo which does some extra work at the end. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4187370#4187370 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4187370 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
So far can't find anything different than my own setup except junit, which I have as:dependency | groupIdjunit/groupId | artifactIdjunit/artifactId | version[4,)/version | scopetest/scope | /dependency What JDK are you using? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4186776#4186776 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4186776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
It's not the exact same problem, but close. Usually this indicates that Maven has chosen the wrong dependency somewhere. Are you using Maven 2.0.9? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4186483#4186483 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4186483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1 Embeddable
Just to be sure: post the output of mvn -Dverbose=true dependency:tree here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4186484#4186484 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4186484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection
javidjamae wrote : So does anybody have the final word on whether this functionality will be in JBoss 5 or not? | | If it will be in JBoss 5, any ideas on what I am doing something wrong in my code? Or is the functionality broken right now? | | Thanks. It'll work if you configure JPA according to http://www.jboss.org/jbossejb3/docs/reference/build/reference/en/html/entityconfig.html. Do not use Hibernate configuration files. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4183171#4183171 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4183171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Hibernate SessionFactory Injection
You must use JPA (/ persistence.xml) to get a persistence unit, not Hibernate directly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4181141#4181141 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4181141 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Where might I download 1.0.0-Beta4?
There is no distribution download for 1.0.0-Beta4. This release is meant to be used within the JBoss AS build process (as is any release of EJB 3 right now). Although we do have a prototype for a new plugin which can install the latest EJB 3 into JBoss AS (see http://wiki.jboss.org/wiki/DevEJB3NewPlugin), it does not take into account any sub-components we depend upon. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180943#4180943 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180943 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.1/2 Embeddable Usage
No, but you can always plug-in the EAR deployer. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180473#4180473 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to access EntityManager in a Thread run() method?
Fixed in rev 61993 (so it's in AS 5 Beta 2). I suggest using AS 5.0 CR2. PS. You shouldn't access an EJBs EM in another thread. The transaction isn't propagated, so you'll probably run into interesting problems. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180211#4180211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Interceptors per MDB
My is guess is you're running into this issue: https://jira.jboss.org/jira/browse/EJBTHREE-1246. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180212#4180212 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3.1/2 Embeddable Usage
Yesterday Kenneth announced the public review of the EJB 3.1 JSR (http://jcp.org/en/jsr/detail?id=318). I've been mucking around a bit, especially with chapter 22, the Embeddable Usage. And thus came up with a prototype which should be usable in any Maven project: http://wiki.jboss.org/wiki/EJB31Embeddable. The one think I already spotted was that there is no security provisioning in the Embeddable API, so I'm going to raise that to the EG. What else might be missing from the picture? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180285#4180285 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: deployment of ejb3 in jboss-5.0.0 CR2
You don't have to alter the application.xml. EE 8.4.2 bullet 1 shows the rules when you don't have one. Most likely all the jars are correctly designated and the application will come up. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180292#4180292 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Can't have interceptor element within bind element in AS 5
The following xml: aop xmlns=urn:jboss:aop-beans:1.0 | bind pointcut=execution(* org.jboss.ejb3.test.ejbthree1023.AnnotatedLocalBean-woven()) | interceptor class=org.jboss.ejb3.test.ejbthree1023.TestInterceptor/ | /bind | bind pointcut=execution(* org.jboss.ejb3.test.ejbthree1023.DefaultLocalBean-woven()) | interceptor class=org.jboss.ejb3.test.ejbthree1023.TestInterceptor/ | /bind | /aop results in: org.jboss.xb.binding.JBossXBRuntimeException: {urn:jboss:aop-beans:1.0}interceptor not found as a child of {urn:jboss:aop-beans:1.0}bind when trying to deploy it on AS 5. According to the xsd it should be possible. xsd:complexType name=bindType | xsd:annotation | xsd:documentation | ![CDATA[ |A binding |]] | /xsd:documentation | /xsd:annotation | xsd:choice minOccurs=1 maxOccurs=unbounded | xsd:element name=interceptor type=aspectOrInterceptorType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=interceptor-ref type=interceptorRefType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=stack-ref type=stackRefType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=advice type=adviceType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=around type=adviceType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=before type=beforeType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=after type=afterType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=throwing type=throwingType minOccurs=0 maxOccurs=unbounded/ | xsd:element name=finally type=finallyType minOccurs=0 maxOccurs=unbounded/ | /xsd:choice | xsd:attribute name=name type=xsd:string use=optional / | xsd:attribute name=pointcut type=xsd:string use=required / | xsd:attribute name=cflow type=xsd:string use=optional / |/xsd:complexType But org.jboss.aop.microcontainer.beans.metadata.BindBeanMetaDataFactory.getInterceptors() doesn't define it as possible. So should it be possible? Or not? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180022#4180022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180022 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: deployment of ejb3 in jboss-5.0.0 CR2
Yes, this is intended behaviour. The DefaultPersistenceUnitDependencyResolver only works for spec compliant deployments. If you want you can plug in your own implementation of a PersistenceUnitDependencyResolver which goes beyond the spec. But if the other ear/jar containing the persistence unit you want hasn't been deployed yet, you'll end up with a failed deployment. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180049#4180049 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180049 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: deployment of ejb3 in jboss-5.0.0 CR2
jaikiran wrote : I haven't given a try with deploying independent jar files. I have always used a EAR inside which i have the jar(s). Let me see if there is some issue with individual jar files. | | By the way, this looks a bit strange to me: | | anonymous wrote : 19:15:40,616 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3) to KernelDeployment of: newCmp3.jar | | I don't know if the ear=newCmp3.jar in the objectname is expected when you are deploying just the jar file. | It also leads to @Depends regression, so: https://jira.jboss.org/jira/browse/JBAS-6007 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4179594#4179594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4179594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
JeffBrooks wrote : ... | Wolfc, I assume you agree with the rubbish comment and not with GColeman's comment about how disappointing JBoss 5 is. I didn't not expect such a bug to surface in CR2, so I'm just as disappointed with the situation as you guys. Not using JBoss AS 5 as a workaround, that is something I find rubbish. ;-) JeffBrooks wrote : anonymous wrote : So making sure the actual EJBs are not in a jar which is in lib (optionally specifying it as an ejb module in application.xml) should resolve the problem. | | Rubbish! ;-) | | Your suggestion will take significantly longer than removing two @EJB annotations. | | I'm not arguing that removing the @EJB is a good solution but in my case it is a very simple way of getting my application deployed on JBoss 5. It appears that this isn't an option for GColeman. | | What I really want is for JBoss 5 to be able to handle @EJB annotations correctly without any workarounds. | | Jeff Brooks | Yup, so far I found 2 cases where JavaEEComponentHelper throws a NPE. I want cover all bases, so we can get going without any workarounds. How come my workaround is a bigger impact? It should just be a repacking. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4178739#4178739 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4178739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
Couldn't agree more. I think the underlying issue is: https://jira.jboss.org/jira/browse/JBAS-5895, but I want to be sure. So making sure the actual EJBs are not in a jar which is in lib (optionally specifying it as an ejb module in application.xml) should resolve the problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4178538#4178538 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4178538 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
It appears that for any EJB3 annotated classes found on the ear's classpath the Ejb3Deployer gets booted. Most likely the OptAnnotationDeployer creates EJB meta data for the ear. If possible try to contain the EJB3 classes to an ejb module and make sure it's not in any library directory of the ear. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4178209#4178209 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4178209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @PostConstruct and @PreDestroy in JBoss AS 5.0.0CR2
As for the exit() not being called: https://jira.jboss.org/jira/browse/EJBTHREE-1496 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4177976#4177976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4177976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: deployment of ejb3 in jboss-5.0.0 CR2
First of all for any NullPointerException which doesn't give any message a Jira can be opened. Preferably with some test code attached that reproduces the problem. This NPE is caused by improper specification of the properties in persistence.xml. You must use the forum code tag if you want to show us the persistence.xml. Please do so. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4177979#4177979 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4177979 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - EJB 3 1.0.0-Beta3 bundle released with JBoss AS 5.0.0.CR2
A new release of EJB 3 is available bundled in JBoss AS 5.0.0.CR2. Rajesh Rajasekaran wrote : JBoss Application Server 5.0.0.CR2 has been released and is available for download. | http://www.jboss.org/jbossas/downloads/ | | This is the last candidate | http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossProductVersioningrelease | of the JBoss 5.0.x series for the Java EE*TM* 5 codebase | and the first JBossAS release that fully complies with the Java EE 5 | conformance testing certification requirements | | Detailed released notes: | http://sourceforge.net/project/shownotes.php?release_id=627020group_id=22866 | | Thanks | Rajesh With the release of JBoss Application Server 5.0.0.CR2, the EJB 3 implementation therein is fully spec compliant. Note that right now I consider EJB 3 'Beta', because we're still working on getting JBoss specific functions in it. Some functions had to be scraped, because they were contradictory against the spec. We're still working out the final list. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4177305#4177305 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4177305 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB3 inside a WAR
This is not possible in AS 4. In AS 5 you can enable scanning of wars by setting the 'scanWars' property to true in ejb3.deployer/META-INF/ejb3-deployers-jboss-beans.xml (ejb3-deployers-beans.xml for CR1). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4168250#4168250 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4168250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problem with EJB3 MDB, Entity Objects
Most likely the message is received before the transaction of the first MDB has been fully completed. Even when using a transacted session this can happen. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167821#4167821 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using quartz from EJB 3.0
You can use the code that stems from EJBTHREE-619 as a base for your solution. Change the MBean to suit your own needs and then have it bind a proxy in JNDI that you can lookup in the bean. If you want it injectable, then you need to change the ejb3 code itself. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167523#4167523 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167523 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: What's about embeddable EJB3
The short answer is: there is nothing yet to replace the old Embeddable EJB3 in a way that's usable for current scenarios. Embeddable EJB3 Alpha 9 is an AS 5 Alpha preview (thus has Micro Container in it). There already where some incompability issues with AS 4 and when AS 5 started moving forward it was impossible to maintain an AS 4 compatible E-EJB3. So from your use case scenario it became unusable. You can read more on this in the sticky: http://www.jboss.com/index.html?module=bbop=viewtopict=103397 Right now we're working on EJB3 Standalone, which targets unit testing. But it'll only be compatible with AS 5, so even an Alpha release there will not be usable. In AS 4 we use AS itself for tests, in AS 5 we got AS Micro which we augment with enough services to handle most EJB deployments. This will be the basis for EJB3 Standalone. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167566#4167566 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167566 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: server-side exceptions in EJB3
You're not missing a configuration setting. It really is not implemented yet. :-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4167357#4167357 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4167357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Annotation @TransactionTimeout not honoured for asynchro
The transaction timeout only works if specified on the EJB3 bean itself. Since you're using a Seam component which delegates to TimerServiceDispatcher (which is the EJB3), the transaction timeout annotation will not take hold. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165295#4165295 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB timers ignoring start date
Create an issue here: https://jira.jboss.org/jira/browse/JBAS on component 'Scheduling/Timers'. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165297#4165297 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using quartz from EJB 3.0
There are two ways to use Quartz from EJB3: 1. the unsupported EJB3 Quartz timer service: https://jira.jboss.org/jira/browse/EJBTHREE-619 2. or the Quartz resource adapter: http://wiki.jboss.org/auth/wiki/QuartzSchedulerIntegration View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4165383#4165383 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4165383 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Bug : JCA MDB deployment not working with Deployment Des
activation-config-property-name and activation-config-property-value are designated xsd:string in the xsd. That means that any spaces, linefeeds, carriage returns and tabs are interpreted literally. So you must remove those from the descriptor. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4164726#4164726 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: specify resource adapter on an mdb deployment descriptor
You can specify a resource-adapter-name in jboss.xml as shown here: http://wiki.jboss.org/auth/wiki/ConfigMessageListener View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4162294#4162294 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not find new XAResource to use for recovering non-
There is this document on recovery modules: https://www.redhat.com/docs/manuals/jboss/jboss-eap-4.3/doc/jbossts/TX_Core_Failure_Recovery_Guide.pdf But no extra module should be needed. Do you have a small test case that exhibits this problem? If so, open a Jira and attach it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4162302#4162302 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Partial override of MapValue not working
Given the following code: @MapValue(keyClass=String.class, value={}, valueClass=String.class) |public void setDefaultPersistenceProperties(Properties p) |{ | this.defaultPersistenceProperties = p; |} With the following override: bean name=PersistenceUnitDeployer class=org.jboss.jpa.deployers.PersistenceUnitDeployer | property name=defaultPersistenceProperties | map | entry |keyhibernate.transaction.manager_lookup_class/key | valueorg.hibernate.transaction.JBossTransactionManagerLookup/value | /entry | /map | /property |/bean I still get: java.lang.IllegalArgumentException: Unable to determine type for value: hibernate.transaction.manager_lookup_class Why is that? (It also struck me as weird that MapValue.value is mandatory.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4162019#4162019 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162019 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Partial override of MapValue not working
Parsing is already done and has finished correctly. This has nothing to do with XB. It's all about MC juggling meta data. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4162028#4162028 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Partial override of MapValue not working
ch11s01 wrote : Warning | | The type of each value must be specified using either the elementClass or type/class attribute in order for the collection to be created. Which I already did in the annotation. I agree that MC is pretty dumb to not be able to create meta data that amounts to this: :-P bean name=PersistenceUnitDeployer class=org.jboss.jpa.deployers.PersistenceUnitDeployer | property name=defaultPersistenceProperties | map keyClass=java.lang.String valueClass=java.lang.String | entry |keyhibernate.transaction.manager_lookup_class/key | valueorg.hibernate.transaction.JBossTransactionManagerLookup/value | /entry | /map | /property |/bean View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4162068#4162068 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4162068 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Is this a JBoss bug?
EntityManagerHelper is trying to create an EntityManagerFactory. This is not allowed within a JavaEE container. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4161238#4161238 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4161238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: Get at Kernel from Unmanaged Object
On a similar note: http://jira.jboss.com/jira/browse/JBMICROCONT-288 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4151409#4151409 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4151409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Question on @Service annotated beans
A bean annotated with @Service acts as a stateful bean with just one instance available. So in effect it's the same as a singleton in EJB 3.1. Any lookup or injection of the service bean will result in an association with that single instance. With the use of @Management the service bean will also expose a JMX view of itself. Note that lifecycle mbean methods are currently invoked, but I would rather eliminate that function and have the option of exposing a JMX view for stateless beans as well. In effect this means that the service (/singleton) bean has the same 'prohibitions' as any other EJB. The limitations are put in place to make the bean portable and easily maintainable. You can create threads or access the file system in an EJB, but that means governing your own resources and giving up portability. Resources available to any EJB (JPA entity managers, declarative transactions etc) are fully supported from a service bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4151181#4151181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4151181 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Hierarchical context
Is there a notion of hierarchical context within MC? For example I want to start 2 stateless containers, both need to have a pool. So I want to install pool 1 into context A and pool 2 into context B. Then depending on where I install the container it will inject the correct pool with the same name. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4149749#4149749 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4149749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: deploy ear with embedded jboss
Sorry for the confusion. It's not possible to deploy an ear in EJB 3 Embedded. For Embedded JBoss go to it's forum and ask again. (It should work though. :-) ) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4145488#4145488 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4145488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can ejb3 be used with generics?
This defines the view that gets exposed (and injected): @Remote ({GenericsEJBInjection.class}) Not the actual implementing of an interface. So you have two duplicate views in 1 deployment. So the 'workaround' specified by jaikiran is actually the correct way to resolve it. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4143410#4143410 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4143410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: ejb3.0 problem, container not yet available??
http://jira.jboss.org/jira/browse/EJBTHREE-751 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4141857#4141857 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141857 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Bug: Injected EJB objects instantiated on every MDB call
ariekenb wrote : After doing this I only see 2 instances of my stateless session bean created, even in tests where it's called from multiple different MDBs and directly from clients. It appears StrictMaxPool is much more conservative in ThreadlocalPool. | | doktora - Maybe using StrictMaxPool would be an interesting test/workaround in your case? | | To the JBoss experts out there - is it a problem that ThreadlocalPool appears to create a new instance of a stateless session bean for every call from an MDB, or is this somehow being managed? What exactly is the difference with StrictMaxPool? Will using StrictMaxPool kill performance? http://jira.jboss.org/jira/browse/JBAS-5345 ThreadlocalPool should be used in a scenario where there is high concurrency on an EJB which is being called by a ThreadPool. The ThreadlocalPool will then ensure that there is one instance per Thread and no contention between these threads. It would appear that JBossMQ does not use a ThreadPool, but instantiates threads on the fly. Thus the ThreadlocalPool will keep on creating instances to match. That makes the use of StrictMaxPool mandatory. Thus only remains the issue of why ThreadlocalPool retains instances after the thread has died. ThreadlocalPool retains all instances to make sure PreDestroy is called upon destruction of the pool. I could implement something that PreDestroy is called when the instance is ready for GC, but in this scenario it would entail creating an instance for each MDB call. That is certainly a higher performance hit then contention in the StrictMaxPool. http://jira.jboss.org/jira/browse/JBAS-1175 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4141227#4141227 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4141227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Using @Resource causes NPE at org.jboss.ejb3.JndiUtil.lo
This is a bug in AS 4.2.2 where if it can't find the name in JNDI and there is no cluster active it will give a NPE instead of NameNotFoundException. Fixed in AS 5.0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4140558#4140558 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4140558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to start a session bean as soon as it is deployed
I'm planning to change this behavior in light of EJB 3.1. The supported way will be to use @PostConstruct in a @Singleton. So for now I would say use @PosConstruct in a @Service bean. Note that the create, start, stop, destroy methods will become deprecated and might disappear completely. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126183#4126183 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4126183 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Preview the next EJB 3 implementation bundled in JBoss AS 5.
A new release of the EJB 3 module is available bundled into JBoss Application Server 5.0.0.Beta3. Rajesh Rajasekaran wrote : JBoss Application Server 5.0.0.Beta3 is out, right in time for the holidays. | | Download it from sourceforge | http://sourceforge.net/project/showfiles.php?group_id=22866package_id=16942release_id=563302 | or through the jboss.org labs page. | http://labs.jboss.com/jbossas/downloads/ | | This is the last Beta release of the *JBoss 5.0.x* series for the *Java EE?* 5 codebase! This release completes a big round of refactorings related to the transformation of JBossAS into a pure POJO-based server. There should be no API changes from this point on as we move closer to a final release. | | JBoss 5 is the next generation of the JBoss Application Server build on top of the new JBoss Microcontainer. The JBoss Microcontainer is a lightweight container for managing POJOs, their deployment, configuration and lifecycle. It is a standalone project that replaces the famous JBoss JMX Microkernel of the 3.x and 4.x JBoss series. The Microcontainer integrates nicely with the JBoss framework for Aspect Oriented Programming, JBoss AOP. | Support for JMX in JBoss 5 remains strong and MBean services written against the old Microkernel are expected to work. | | Detailed release notes: | http://sourceforge.net/project/shownotes.php?release_id=563302group_id=22866 | | | Thanks | Rajesh Note that this release is NOT backwards compatible with AS 4.2, so expect some migration issues. More information can be found here: http://wiki.jboss.org/wiki/Wiki.jsp?page=ToAS5.0.0.Beta3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116306#4116306 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116306 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Talikng to Remote EJBs in 4.2.1 from 4.0.5
http://jira.jboss.com/jira/browse/EJBTHREE-1118 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113946#4113946 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113946 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3 tutorial encourages non-standard code
http://jira.jboss.com/jira/browse/EJBTHREE-1071 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4110115#4110115 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: jbossall-client.jar incompatible between 421 and 422
http://jira.jboss.com/jira/browse/EJBTHREE-1118 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4105420#4105420 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4105420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: TransactionRequiredException: EntityManager must be acce
You are calling the entity manager in a NOT_SUPPORTED context from fetchProcess. If you want the REQUIRES_NEW to take affect, you must call fetchProcess_real through a business object instead of directly. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102110#4102110 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Why isn't @Predestory honored in @Stateless beans as wel
This behavior has changed with the implementation of a new ThreadlocalPool. Now the pool completely cleans up at undeploy and calls @PreDestroy on all session bean instances. See http://jira.jboss.com/jira/browse/EJBTHREE-1031 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100215#4100215 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: PreDestroy callback is not being called by container
In AS 4.2.2 the ThreadlocalPool does call @PreDestroy on undeploy. This is a 'side effect' of another issue with ThreadlocalPool. See http://jira.jboss.com/jira/browse/EJBTHREE-1031 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100216#4100216 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Error Injecting EntityManager
Which annotation are you using to inject the entity manager? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099341#4099341 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099341 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: CONTEXTS MISSING DEPENDENCIES: Name - Dependency{Requir
Is persistence.xml located in the META-INF directory of the jar file? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4095266#4095266 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4095266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Passivation-can its time of occurance be controlled?(4.2
Take a look in ejb3-interceptors-aop.xml. In the Stateful Bean domain, the cache is configured for clustered and non-clustered beans. You can either edit this file or add the annotations to your bean. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4093144#4093144 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4093144 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user