[jboss-user] [EJB 3.0] - Re: Testing MDBs

2009-08-04 Thread ALRubinger
While MDBs themselves are agnostic to the vendor container, the activation config properties and their values are not. Recommend extracting this metadata into a partial XML descriptor, and making one descriptor per target container. The build may then leave you with separate artifacts

[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5

2009-07-28 Thread ALRubinger
jcstaff2 wrote : I understand where your caution comes from about the ClassLoader after reading the spec, but when I read the Javadoc on getClass().getResource(), it sounds like it too is locating the ClassLoader. The difference is in your definition of the.

[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5

2009-07-28 Thread ALRubinger
jcstaff2 wrote : When I did some searching, I found that Tom Marrs (Lead Author, JBoss at Work: A Practical Guide) had the same solution as I did as late as 2006. http://www.coderanch.com/t/89900/JBoss/reading-properties-file Respectfully disagree. Tom Marrs wrote : The EJB specification

[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5

2009-07-27 Thread ALRubinger
Hey Jim: jcstaff2 wrote : If obtaining the current classloader is illegal/non-portable, how does one read in a data file from the EJB's classpath? Is there a legal classloader we can access that will have the file Resource that can be read in as a stream? In general, use of File (and other

[jboss-user] [EJB/JBoss] - Re: PostConstruct loadClass fails when porting to JBoss 5

2009-07-26 Thread ALRubinger
alesj wrote : Or what does the spec say about what should the TCCL be in this case? EJB 3.0 Specification 21.1.2: Programming Restrictions wrote : The enterprise bean must not attempt to create a class loader; obtain the current class loader; set the context class loader; set security manager;

[jboss-user] [Microcontainer] - Re: How to convert @Service MBean POJO to microcontainer POJ

2009-07-06 Thread ALRubinger
Sounds like you'd just want to deploy some MC beans and get the use of @EJB within them, yes? :) Check the EJB3 integration testsuite for an example: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/testsuite/src/test/java/org/jboss/ejb3/test/ejbthree1624/ S, ALR View the original

[jboss-user] [Microcontainer] - Re: Classloading vs. VFS

2009-06-01 Thread ALRubinger
Ran through this a bit today. Came across in the JCA Standalone: Caused by: java.net.MalformedURLException: unknown protocol: vfsfile ...as Jesper's been encountering. It's this logic which fully inits VFS:

[jboss-user] [Microcontainer] - Re: Classloading vs. VFS

2009-05-28 Thread ALRubinger
This results from parsing a bootstrap.xml with hooks to VFS before VFS itself has been init'd. I've addressed this in jboss-bootstrap-impl-as by a manual hack: https://jira.jboss.org/jira/browse/JBBOOT-67 http://fisheye.jboss.org/changelog/JBossAS/?cs=88598 So for users of MCServer who need

[jboss-user] [Microcontainer] - Re: Classloading vs. VFS

2009-05-28 Thread ALRubinger
jesper.pedersen wrote : anonymous wrote : | | Looks like the NCDFE is blocking you from doing that. Which is another issue alltogether. Due to parentchild delegation and leaking of class references, we've got to be very careful what's on the application CP, URLCL, etc. | | | I only

[jboss-user] [Microcontainer] - Re: Classloading vs. VFS

2009-05-28 Thread ALRubinger
jesper.pedersen wrote : Another question is if bootstrap/MC should make assumptions about CLs. I think having to define a DEFAULT_BOOT_LIBRARY_LIST is something we should think about. We don't. :) We boot library list is of the AS Main, not bootstrap. It can be removed from its explicit

[jboss-user] [Microcontainer] - Re: Classloading vs. VFS

2009-05-28 Thread ALRubinger
jesper.pedersen wrote : My point is here - why do we have to define a DEFAULT_BOOT_LIBRARY_LIBS in our Main ? Splitting our classloader structure into multiple layers shouldn't be needed. | | Passing the classloader defined in Main to the bootstrap implementation should be enough. You've

[jboss-user] [EJB 3.0] - Re: EJB3 business delegates?

2009-05-14 Thread ALRubinger
You should absolutely cache SLSB proxies. Do the lookup once, then you may pass around and share this instance. This is because the proxy you lookup may target *any* of the underlying bean instances in the pool. Assuming you've done a good job to ensure your SLSB has no *conversational

[jboss-user] [EJB 3.0] - Re: Deploying Apache DayTrader on AS 5.1

2009-05-06 Thread ALRubinger
What's up with the deployment ie. ejb-jar.xml or @Resource annotations? If we can get a failing case we should either: 1) Throw descriptive deployment exception if caused by invalid metadata 2) Fix this NPE ...but either way the error as-is offers no feedback and should be chansed down/fixed.

[jboss-user] [EJB 3.0] - Re: Deploying Apache DayTrader on AS 5.1

2009-05-06 Thread ALRubinger
BTW the line in question is: if(envRef.getType().equals(URL.class.getName())) S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4229242#4229242 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4229242

[jboss-user] [EJB/JBoss] - Re: HelloUser simple ejb deployement in Jboss5 true myeclips

2009-05-02 Thread ALRubinger
Also have a look at our EJB3 tutorials: http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.6/html/index.html S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4227987#4227987 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: HelloUser simple ejb deployement in Jboss5 true myeclips

2009-05-02 Thread ALRubinger
I still think you have classpath setup incorrectly. Regarding the client CCE on javax.naming.Reference, I suspect jbossall-client .jar isn't on your client CP. As to the server boot error, looks like you've changed something about the installation. After unzip what did you do? S, ALR View

[jboss-user] [EJB 3.0] - Re: Errors When Passing A Generic Object To A Stateless Sess

2009-04-11 Thread ALRubinger
Exception in thread main java.lang.RuntimeException: java.lang.ClassNotFoundException: com.acmeco.serverapp.test.fileStuff.FilePackage (no security manager: RMI class loader disabled) Is FilePackage not in your JAR/EAR alongside your EJB? S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: @RunAs doesn't work in JBossAS 4.2.3?

2009-04-11 Thread ALRubinger
Definitely give it a spin on AS 5.0.1.GA or 5.1.0.Beta1; we've got integration tests for this kind of thing. If it turns out you've still got a problem we'll look into either 1) Fixing your config or 2) Addressing a gap in our test coverage / possible bug. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: Errors When Passing A Generic Object To A Stateless Sess

2009-04-11 Thread ALRubinger
javax.naming.NamingException: Could not dereference object [Root exception is java.lang.RuntimeException: Could not find InvokerLocator URL at JNDI address FTPBean/local; looking up local Proxy from Remote JVM?] To ask the obvious question, is your client (where the JNDI lookup is performed)

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread ALRubinger
That's a different error :) EJB Proxies are castable to their business interface types, not to the bean implementation class. So instead: (com.acmeco.serverapp.ftp.ejb3.FTPBeanRemote)ref; S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4223803#4223803

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread ALRubinger
Also, have a look at http://www.jboss.org/jbossejb3/docs/. :) S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4223807#4223807 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4223807

[jboss-user] [EJB 3.0] - Re: Web Beans + JPA

2009-03-26 Thread ALRubinger
Emmanuel, I agree; reporting entities is out of scope for Hibernate. Probably this reporting is best handled by some integration layer in AS, a central registry that we can expose via an MC bean maybe? The problem comes when we start talking about this notion of extra scanning (==time). As

[jboss-user] [EJB 3.0] - Re: Unit test EJB3 Exception

2009-03-25 Thread ALRubinger
mvpc wrote : java.lang.ClassCastException: javax.naming.Reference cannot be cast to br.com.original.negocio.email.interfaces.IEmailLocal This is a common symptom that you don't have the proxy object factories on your client CP. Typically this is fixed by ensuring you've got

[jboss-user] [EJB 3.0] - Re: [FieldBeanProperty] failed to set value Proxy to jboss.j

2009-03-24 Thread ALRubinger
buki79 wrote : seems this helped. Thanks! Cool. Would you please open a JIRA under the EJBTHREE project requesting that I enhance the error message to account for this case? While true that the CLs didn't match, they wouldn't in this case, and I want to let the user know they're trying to

[jboss-user] [EJB 3.0] - Re: [FieldBeanProperty] failed to set value Proxy to jboss.j

2009-03-24 Thread ALRubinger
ALRubinger wrote : Would you please open a JIRA under the EJBTHREE project requesting that I enhance the error message to account for this case? Thanks. :) https://jira.jboss.org/jira/browse/EJBTHREE-1789 S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp

[jboss-user] [EJB 3.0] - Re: java.lan.ClassCastException when casting to remote bean

2009-03-23 Thread ALRubinger
manemannen wrote : SimpleStatefulBeanRemote o = (SimpleStatefulBeanRemote) ctx.lookup(simpleserver/ + SimpleStatefulBean.class.getSimpleName() + /remote); | | | | I have seen many examples of this and it introduces a dependency from the client to the actual implementation and

[jboss-user] [EJB 3.0] - Re: [FieldBeanProperty] failed to set value Proxy to jboss.j

2009-03-23 Thread ALRubinger
Would you please post your packaging structure? Looks like the issue here is that the Proxy doesn't have the same defining ClassLoader as the CL that loaded TwitterSessionBeanRemote in your app. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4220410#4220410

[jboss-user] [EJB 3.0] - Re: [FieldBeanProperty] failed to set value Proxy to jboss.j

2009-03-23 Thread ALRubinger
Servlet field should be of type TwitterSessionBeanLocal. S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4220415#4220415 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4220415

[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance

2009-03-15 Thread ALRubinger
ALRubinger wrote : https://jira.jboss.org/jira/browse/EJBTHREE-1773 Done. Relevant unit test showing usage is: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/core/src/test/java/org/jboss/ejb3/core/test/ejbthree1773/unit/RemoveRequestFromSessionProxyUnitTestCase.java ALRubinger

[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance

2009-03-14 Thread ALRubinger
I'll implement remove() for us. It'll be dependent upon the new EJB3 release (due out this week). Your implementation of JBossEjbReference will not work w/ SessionContext.getInvokedBusinessInterface() because it's looking up a non-deterministic proxy. Why did you chooe to go for:

[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance

2009-03-14 Thread ALRubinger
On the EJB3 side: https://jira.jboss.org/jira/browse/EJBTHREE-1773 S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4218048#4218048 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4218048

[jboss-user] [EJB 3.0] - Re: Requesting the EJB container to remove an instance

2009-03-13 Thread ALRubinger
I recommended adding onto SessionProxy: http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/trunk/proxy-spi/src/main/java/org/jboss/ejb3/proxy/spi/intf/SessionProxy.java ...to add a removeTarget() method. Usage becomes: Object proxy = jndiContext.lookup(MyBean/remote); | SessionProxy sProxy

[jboss-user] [EJB 3.0] - Re: EJB reference in Servlet always null

2009-03-11 Thread ALRubinger
web.xml version? Doesn't sound like injection is even getting setup; not a problem with target resolution. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4216860#4216860 Reply to the post :

[jboss-user] [EJB 3.0] - Re: EJB reference in Servlet always null

2009-03-10 Thread ALRubinger
@EJB.mappedName is a vendor-specific (non-portable) attribute which in JBoss EJB3 is used to denote the JNDI target; you're using it as the target EJB name. @EJB should be sufficient. Likewise you don't need to specify @Stateful.name (the default is the bean impl class getSimpleName()). S,

[jboss-user] [EJB 3.0] - Re: A callback on EJB removal

2009-03-09 Thread ALRubinger
ALRubinger wrote : We could expose this by adding interface support for a JBossStatefulSessionObject in the proxy, which has some method getId(); I did this in r85648 for https://jira.jboss.org/jira/browse/EJBTHREE-1758. StatefulSessionProxy statefulProxy = (StatefulSessionProxy)proxy

[jboss-user] [EJB 3.0] - Re: A callback on EJB removal

2009-03-08 Thread ALRubinger
Just for SFSB I'd imagine? Our standard M.O. applies I guess; make some SPI to register a callback listener in wb-as-int and we'll invoke upon it via some EJB3 optional add-on component. What contextual information do you need? Session ID? S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: A callback on EJB removal

2009-03-08 Thread ALRubinger
pete.m...@jboss.org wrote : What is the best way (that ideally is standard, otherwise we'll need another SPI for identifying an SFSB) to identify an SFSB instance? You mean the ID of a given proxy? ATM we'd be diving into implementation details by getting the it out of a field in the

[jboss-user] [EJB 3.0] - Re: Using WebBeans EJB integration in EEJB

2009-02-24 Thread ALRubinger
But we don't need a full profile3_1 just to get a couple MC Beans installed into Embeddable. This can even be done by way of jboss-ejb3. So long as there's some component that brings in the configs needed... S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: Using WebBeans EJB integration in EEJB

2009-02-24 Thread ALRubinger
pete.m...@jboss.org wrote : ALRubinger wrote : We're currently defining EjbReferenceResolver in ejb3-deployers-jboss-beans, which resides in ejb3-core. | | This one is more urgent, as we have many tests relating to EJB functionality. https://jira.jboss.org/jira/browse/EJBTHREE-1736 S

[jboss-user] [EJB 3.0] - Re: Using WebBeans EJB integration in EEJB

2009-02-23 Thread ALRubinger
We're currently defining these in ejb3-deployers-jboss-beans, which resides in ejb3-core. Lately we've been discussing moving to finer-grained MC Deployable XMLs, to live in the same component that defines them. So I could envision a ejb-resolver-jboss-beans.xml, pu-resolver-jboss-beans.xml -

[jboss-user] [Microcontainer] - Re: Accessing EJB's with custom annotations.

2009-02-19 Thread ALRubinger
Ah, you're tackling this from the other end. ejb3-mc integration as described in the blog post is how I enabled @EJB injection into MC Beans. Here you're trying for custom annotation support on EJBs. As EJB bean impl classes are not installed as MC beans, the annotation plugin is not getting

[jboss-user] [EJB 3.0] - Re: Status of EJBTHREE-1096 Make SLSB and SFSB hot deployabl

2009-02-16 Thread ALRubinger
Jason: You're right, this has been unscheduled for some time. Our development priorities have simply not lined up here. We are, however, aware of the community interest. Basically this feature boils down to a dev-mode where we line up a new ClassLoader, ditch it when some scanner detects a

[jboss-user] [EJB 3.0] - Re: Status of EJBTHREE-1096 Make SLSB and SFSB hot deployabl

2009-02-16 Thread ALRubinger
If you're volunteering to get into some dev, we'll get you pointed to some basic stuff to start out, then point you in the right direction. ;) S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210472#4210472 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Status of EJBTHREE-1096 Make SLSB and SFSB hot deployabl

2009-02-16 Thread ALRubinger
Ah, so we're not the only ones currently overloaded. ;) Unfortunately, I cannot give you an estimate now. We do feature-specific planning for each EJB3 release (every 2 weeks), and we have a longer-term roadmap as well. At the moment EJBTHREE-1096 is not on the roadmap (which mostly involves

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
Do you have SpringInjectionInterceptor defined under the domain Intercepted Bean in ejb3-interceptors-aop.xml? If so, what's your pointcut? Ales, what should the pointcut be do to the lifecycle injection? S, ALR View the original post :

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
green804 wrote : I had it under Stateless Bean because that's where it was in 4.2. Should I move it to Intercepted Bean? Does it matter where? Aha. You've got a SFSB, which is tied to domain Stateful Bean. Intercepted Bean is a top-level parent (@see domain extends=X). This is the pointcut

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
ALRubinger wrote : You've got a SFSB My eyes are lying to me. Sorry, you've clearly got @Stateless on there. S, ALR View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4210065#4210065 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
green804 wrote : I changed my app to use the @Interceptors, and everything is now working correctly. You're cheating by workaround. :D SFSB instances are created by class.newInstance, I'm doing some tests to see if AOP pointcuts to *-new(..) work this way. S, ALR View the original post :

[jboss-user] [JBoss/Spring Integration] - Re: AS5 @Spring injection failing

2009-02-13 Thread ALRubinger
My tests to intercept newInstance calls via new() show that the pointcut won't work this way. Perhaps what's needed is: http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/misc/reflection.html The way @EJB, @Resource, etc works is that EJB3 looks for these and applies the logic

[jboss-user] [EJB 3.0] - Re: JBoss 5.0.0.GA and Ejb 3.1 - Singleton Services

2009-02-02 Thread ALRubinger
Hi Paata: The EJB3 Plugin installer currently updates AS to the latest EJB3 release, 1.0.0. We don't yet have EJB 3.1 features available, but these are either scheduled or under development, and we'll be pushing them to the community as they reach stable/preview state. Check back to the

[jboss-user] [EJB 3.0] - Re: JBoss AS InterceptorRegistry warning

2009-02-02 Thread ALRubinger
https://jira.jboss.org/jira/browse/EJBTHREE-1709 S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4206329#4206329 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4206329 ___

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-27 Thread ALRubinger
skajotde wrote : ALRubinger wrote : | | Would an additional assembly of all the EJB3 component resources in one place solve this? ie. ejb3-sources-1.0.0.jar, which contains all the sources from the various component versions that are in the EJB3 1.0.0 distribution? | | | | Yes

[jboss-user] [EJB 3.0] - Re: JBoss AS 5.0.0.GA doesn't have bundled Ejb3

2009-01-26 Thread ALRubinger
skajotde wrote : | It would be nice release notes (http://sourceforge.net/project/shownotes.php?release_id=655817group_id=22866) describe this relation. It is great that EJB3 can be standalone product but from JEE view is couply integrated with application server so I think version matrix

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-26 Thread ALRubinger
wolfc wrote : The feature packs will have a separate release cycle. As do each of the components that together compose EJB3. skajotde wrote : At least there is plus that all ejb3 artifacts have common version number ...but because of the separate release cycles, the components will not have

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-26 Thread ALRubinger
skajotde wrote : I think it is great that library can be used outside EJB3 and provides model and metatada. But main purposes of this libraries are be part of EJB3 product so I think it should be versioned in one way with one version number for releases of all libraries. So change in library-a

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-26 Thread ALRubinger
skajotde wrote : Yes, there are true arguments but I very prefer treat these libraries as part of EJB3 Project. So when EJB3 Project change releases new version there is one number of version. You can't override logical arguments with preference. :) skajotde wrote : I'm afraid of versioning

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-26 Thread ALRubinger
skajotde wrote : Version madnes is my argument and I describe my way to improve/balance this situation ;) (from experience with work on granular libraries). That's fair, but your proposal involves coupling the release schedule of all EJB3 components. This comes at the cost of the 2 drawbacks

[jboss-user] [EJB 3.0] - Re: JBoss AS 5.0.0.GA doesn't have bundled Ejb3

2009-01-25 Thread ALRubinger
Glad to clear this up. JBossAS 5.0.0.GA shipped with a composite of the EJB3 components, which together had a release version of 1.0.0-Beta7. While this was sufficient for the release criteria of AS, the EJB3 Team had a different set of release criteria before we were comfortable branding as

[jboss-user] [EJB 3.0] - Re: Ejb3 sources in zipped form

2009-01-25 Thread ALRubinger
Sure, but at the moment, each EJB3 component has its own source artifact: http://repository.jboss.org/maven2/org/jboss/ejb3/ At time of this writing, each component is at 1.0.0. This is subject to change. :) Short answer: all sources are available, but there's no composite JAR with all of

[jboss-user] [EJB 3.0] - Re: When will be JBoss EJB 3.1 implementation ?

2009-01-22 Thread ALRubinger
We're working on the EJB 3.1 features now, but have not yet released a roadmap. JBoss does provide client-driven asynchronous invocations, take a look at our Unit Tests (works w/ EJB3 in AS 5.0.0.GA):

[jboss-user] [EJB 3.0] - Re: Migrating EJB3 Code from 4.2 to 5.0 and encountering [J

2009-01-21 Thread ALRubinger
Yep. * @Remote references a business interface (EJB 3.x View) * is a Remote Component interface (extends EJBObject, an EJB 2.x View) * business-remote is the XML equivalent to @Remote * There is no annotation for , we read it in via the return types of @Home create methods. S, ALR View the

[jboss-user] [EJB 3.0] - Re: Migrating EJB3 Code from 4.2 to 5.0 and encountering [J

2009-01-20 Thread ALRubinger
Looks like the forum software chopped off the JIRA issue from your topic. What was the error? There's nothing wrong with that construct assuming: * There's no @Local or @Remote annotation on EchoService * EchoServiceRemote does not also extend from EJBObject * EchoServiceLocal does not also

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread ALRubinger
kolszew73 wrote : 1. This in not EJB3 compilant, i must use annotation org.jboss.ejb3.annotation.LocalBinding which is'n standard EJB annotation Strong words from someone trying to bypass spec scoping by injecting across unrelated JARs/EARs. ;) True story though. Looking forward we'll be

[jboss-user] [EJB 3.0] - Re: How to inject sessionbean from sessionbean from another

2009-01-16 Thread ALRubinger
kolszew73 wrote : Ok i know, but ... it works fine in JBOSS 4.2.2 ! | I'm sympathetic to this in practice. So: [url]https://jira.jboss.org/jira/browse/EJBTHREE-1689[/ur] S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4202529#4202529 Reply to the

[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment

2009-01-16 Thread ALRubinger
davestar wrote : Thanks Everyone, the JIRA ticket can be closed. It can't be closed if all we've done is identified a workaround. ;) First we need a test for @PersistenceContent w/ no unitName placed at the root of an EAR, checking that the default PU can be resolved. S, ALR View the

[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment

2009-01-15 Thread ALRubinger
JBossAS Version? davestar wrote : My persistence.xml is in the MET-INF folder in the ear file. I assume you mean META-INF? For reference: EJB 3.0 Persistence Specification 6.2.2 wrote : When referencing a persistence unit using the unitName annotation element or persis- | tence-unit-name

[jboss-user] [EJB 3.0] - Re: Embedded EJB 3.1: EjbReferenceResolver and getting hold

2009-01-15 Thread ALRubinger
pete.m...@jboss.org wrote : 1) Do(es) the org.jboss.ejb3.EjbReferenceResolver ... exist in embedded EJB3.1? Nope. After I get this release out we can talk about moving support into Embeddable EJB. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: There is no default persistence unit in this deployment

2009-01-15 Thread ALRubinger
Might wanna change your packaging as to not bring in your SVN meta into the EAR. ;) Sure, let's open a JIRA and attach your EAR. I'll have a look to see if it's something I'm missing from this post, or a real issue. EJBTHREE project, component jpa-deployers. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: jboss 5.0.0.GA and ejb3

2009-01-14 Thread ALRubinger
The reason for this is because starting in the 5.0.0.Beta releases we moved jbossall-client to a manifest-only JAR. This means that instead of repackaging all of the classes in the JARs you mention into one uber-JAR, jbossall-client contains a ClassPath entry in the manifest to point to the

[jboss-user] [EJB 3.0] - Re: how start ejb timer on deployment of ejb sesssion beans?

2009-01-14 Thread ALRubinger
This was an issue also discussed today on Freenode IRC's #jboss. :) The EJB 3.1 Specification addresses application lifecycle via the @Singleton bean. Until that support arrives, JBoss has a vendor-specific extension called the @Service bean, which is a singleton that optionally supports MBean

[jboss-user] [Microcontainer] - Re: How to add Annotation Plugin?

2009-01-12 Thread ALRubinger
trustin wrote : Thanks ALR for sharing your code: http://tinyurl.com/7wjv78 | | I put it out there just hoping you'd find it. :) | | Are the callbacks called only when an installed AnnotationPlugin is described in the same deployment, or are they called regardless of whether the

[jboss-user] [Microcontainer] - Re: How to add Annotation Plugin?

2009-01-12 Thread ALRubinger
ALRubinger wrote : The callbacks are added for any deployment under the same Controller So beware, you're actually altering MC's behaviour. I believe Ales made some mention of considering whether these callbacks should be made by default (so this bit wouldn't be needed)? S, ALR View

[jboss-user] [EJB 3.0] - Re: MBean start ordering in 5.0CR2

2009-01-07 Thread ALRubinger
Just a note that I've duplicated the issue and am working on a fix for the next release. Thanks huberth for your detailed explanations. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4200028#4200028 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Extreme long deployment time of ear/EJB3s in JBoss 5.0.0

2008-12-30 Thread ALRubinger
Might also be a good idea to do some profiling to determine some of the major bottlenecks first. If you have the means, JProfiler[1] is a great commercial product. S, ALR [1] http://www.ej-technologies.com/products/jprofiler/overview.html View the original post :

[jboss-user] [EJB 3.0] - Re: Don't want to hard code the dynamic IP for @RemoteBindin

2008-12-28 Thread ALRubinger
slimamar wrote : https://jira.jboss.org/jira/browse/EJBTHREE-1650 Thank you for opening this. I've deprioritized it from critical, changed from bug to feature request, and renamed Need EL-replacement within @RemoteBinding.clientBindUrl so connect addresses are not hardcoded. slimamar wrote :

[jboss-user] [EJB 3.0] - Re: Possible Bug?

2008-12-28 Thread ALRubinger
So you're still exhibiting unexpected behaviour? Does @EJB.name work as expected (ie resolves properly to the ENC name)? I'd be surprised if it didn't as we're shipping a compliant implementation. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: Possible Bug?

2008-12-28 Thread ALRubinger
green_bean_1 wrote : EJB.name does NOT work. it does NOT correctly inject the specific implementation.. How would I verify the ENC name for each specific implementation? You haven't supplied the right ENC name yet, so how can you assert it doesn't work? :P. Get the ENC Name using JNDIView in

[jboss-user] [EJB 3.0] - Re: Binding / JNDI / EJB

2008-12-21 Thread ALRubinger
I have a sneaking suspicion that jndi-name support is lacking. Jaikiran, mind opening a JIRA w/ some simple integration test for it? I should look when I'm back next week. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4197835#4197835 Reply to the

[jboss-user] [EJB 3.0] - Re: class java.lang.ClassCastException in EJB3.0 lookup

2008-12-20 Thread ALRubinger
I think you want 5th Edition. ;) http://oreilly.com/catalog/9780596009786/?CMP=AFC-ak_bookATT=Enterprise+JavaBeans+3.0 ...which covers EJB 3.0. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4197819#4197819 Reply to the post :

[jboss-user] [EJB 3.0] - Re: remote ejb and dependency injection

2008-12-19 Thread ALRubinger
morphy wrote : no way to inject a remote ejb??? True, the spec does not provide mechanism for injection of remote resources. In fact, until EJB 3.1 there isn't even a mandate that EJBs are bound into Global JNDI. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: Don't want to hard code the dynamic IP for @RemoteBindin

2008-12-19 Thread ALRubinger
Please create a JIRA for this as a feature request under EJBTHREE. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4197722#4197722 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4197722

[jboss-user] [EJB 3.0] - Re: Possible Bug?

2008-12-18 Thread ALRubinger
@EJB.name is for the JNDI name of the reference within the ENC. Check your JNDI View, looking under the component (your EJB's deployment) namespace for the correct value. If you're like to use the global JNDI name (as you are), use @EJB.mappedName. Or, designate the target EJB by its name:

[jboss-user] [EJB 3.0] - Re: Possible Bug?

2008-12-18 Thread ALRubinger
green_bean_1 wrote : So, it seems to me like if two impls share the same interface, JBoss doesn't differentiate them? If you can provide a use case (unit test) exhibiting this, we can open a JIRA for resolution. :) S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: Possible Bug?

2008-12-18 Thread ALRubinger
Judging from those JNDI Names, gotta be at least AS 5 CR2. :) S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4197506#4197506 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4197506

[jboss-user] [Microcontainer] - Re: Define dependency for ValueMetaData?

2008-12-17 Thread ALRubinger
Nice. public class AbstractEjbReferenceValueMetadata extends AbstractDependencyValueMetaData ...and... /** | * Used in defining the dependency | */ |@Override |public Object getUnderlyingValue() |{ | return DEPENDS_JNDI_PREFIX +

[jboss-user] [Microcontainer] - Re: Define dependency for ValueMetaData?

2008-12-17 Thread ALRubinger
alesj wrote : Why would we have something like this in MC? Isn't it MC which knows how to treat that the jndi: prefix defines a dependency upon a JNDI entry? Otherwise it's just some magic string? S, ALR View the original post :

[jboss-user] [Microcontainer] - Define dependency for ValueMetaData?

2008-12-15 Thread ALRubinger
I've got a ValueMetaData upon which I need to define a dependency before getValue() may be called. Possible? This is so that the target value is available before I inject via an annotation plugin. S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: jboss.xml question AS 5

2008-12-14 Thread ALRubinger
Try instead mapped-name. If that works, please open a JBMETA JIRA issue? S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4196425#4196425 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4196425

[jboss-user] [Microcontainer] - Re: DeploymentUnitRegistry: exists?

2008-12-14 Thread ALRubinger
Your example works well in my initial integration tests. :) alesj wrote : I expect the blog when I wake up on Monday. ;-) I'll take some more time to beef up the test coverage, make proper unit tests (mocking the MC SPIs). But it works as advertised. S, ALR View the original post :

[jboss-user] [Microcontainer] - DeploymentUnitRegistry: exists?

2008-12-13 Thread ALRubinger
Is there an equivalent of a DeploymentUnitRegistry? For instance: CollectionDeploymentUnit deploymentUnits = DeploymentUnitRegistry.getAllDeploymentUnits(); S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4196383#4196383 Reply to the post :

[jboss-user] [Microcontainer] - How to pick up field-level annotations in annotation plugin?

2008-12-10 Thread ALRubinger
I've got an annotation plugin: public class EjbReferenceAnnotationPlugin extends FieldAnnotationPluginEJB | {...} ..which does not run through protected ValueMetaData createValueMetaData(FieldInfo fieldInfo, EJB annotation) upon encountering @EJB on a field-level property. If I change this

[jboss-user] [EJB 3.0] - Re: EAR Scoped PersistenceUnit

2008-12-10 Thread ALRubinger
EJB 3.0 Persistence Specification, Section 6.2 wrote : A persistence unit is defined by a persistence.xml file. The jar file or directory whose META-INF | directory contains the persistence.xml file is termed the root of the persistence unit. In Java EE, the root of a persistence unit may be

[jboss-user] [Microcontainer] - Re: How to add Annotation Plugin?

2008-12-10 Thread ALRubinger
Yes, was hoping for this auto-registration much like is done when installing a KernelRegistryPlugin (ie. picks up the interface and takes appropriate action). So the following works: // Install the BeanAnnotationAdapter w/ callback to add annotation plugins on install |

[jboss-user] [Microcontainer] - Re: How to pick up field-level annotations in annotation plu

2008-12-10 Thread ALRubinger
alesj wrote : Either set bean's BeanAccessMode to FIELDS or ALL. Great, thanks. ;) A follow-up question: public class Pojo | { |@EJB |private Object injectedEjb; | |public Object getInjectedMember() |{ | return injectedEjb; |} | | } I must use

[jboss-user] [Microcontainer] - How to add Annotation Plugin?

2008-12-09 Thread ALRubinger
I'm currently adding my annotation plugin like: // Add our annotation plugin | BeanAnnotationAdapter beanAnnotationAdapter = BeanAnnotationAdapterFactory.getInstance() | .getBeanAnnotationAdapter(); | AbstractBeanAnnotationAdapter abstractAdapter =

[jboss-user] [EJB 3.0] - Re: Cross-referencing EJBs doesn't work

2008-12-08 Thread ALRubinger
The Integration Test is passing: http://jboss.hudson.alrubinger.com/job/EJB3_Integration_TestSuite_AS5_GA/lastBuild/testReport/org.jboss.ejb3.test.circulardependency.unit/ Please post relevant layout and errors in a new topic (so we don't hijack this one). ;) S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: how to customize the TM for my EJB3 app?

2008-11-29 Thread ALRubinger
If you get the TransactionManager from JNDI, then get the Thread's current Tx from there, that's not sufficient for you? It's some wrapper object and you need an underlying impl (much like EntityManager.getDelegate() provides)? S, ALR View the original post :

[jboss-user] [EJB 3.0] - Re: EJB3 Session Bean as 2.1 Service

2008-11-25 Thread ALRubinger
cburnley wrote : which would imply that it is not really a 2.1 view of the service because it uses ejb3 proxy classes No, it's a valid EJB 2.1 View, but the ICE is because the 4.2.3 and 4.0.3 Proxy classes are not compatible. Solution is to ensure that your client has the correct classes on

[jboss-user] [EJB 3.0] - Re: client interceptor - ejb3-interceptors-aop.xml

2008-11-24 Thread ALRubinger
JBossAS / EJB3 Version? Stack trace? Client interceptors, on invocation, must be available on the client's CP. S, ALR View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4191782#4191782 Reply to the post :

[jboss-user] [EJB 3.0] - Re: client interceptor - ejb3-interceptors-aop.xml

2008-11-24 Thread ALRubinger
There's not much we can do about Community AS 4.2.x. In current trunk I see your problem: 10:47:58,654 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): | | *** CONTEXTS MISSING DEPENDENCIES: Name -

  1   2   3   4   5   >