[JBoss-user] [JBoss Seam] - Re: Factories vs. outjections

2006-06-02 Thread abirkmanis
Not before I know how to do such examples. I am currently a bit busy understanding limitations of JSF in regards to componentization. BTW, regarding the mapping from names to FactoryMethod's, which is application-wide (stored in Init): the situation is quite similar to an application-wide mappi

[JBoss-user] [JBoss Seam] - API vs. non-API

2006-05-31 Thread abirkmanis
Are there any guidelines which classes/interfaces/methods in Seam are API, and which are an implementation detail and subject to change? I mean something along the lines of http://dev.eclipse.org/naming.html. This would help the people that are using, but especially extending Seam to save their

[JBoss-user] [Installation, Configuration & Deployment] - Re: Does JBoss 4.0.4 support Java EE 5?

2006-05-30 Thread abirkmanis
Aha, found a reply in archives: http://jboss.org/index.html?module=bb&op=viewtopic&p=3946281. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947683#3947683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947683 --

[JBoss-user] [Installation, Configuration & Deployment] - Does JBoss 4.0.4 support Java EE 5?

2006-05-30 Thread abirkmanis
I am trying to deploy a really simple EAR to JBoss 4.0.4 GA, and I have the following exception: org.jboss.deployment.DeploymentException: No META-INF/application.xml found at org.jboss.deployment.EARDeployer.init(EARDeployer.java:133) at org.jboss.deployment.MainDeployer.init(Main

[JBoss-user] [JBoss Seam] - Re: Factories vs. outjections

2006-05-29 Thread abirkmanis
Could you provide an estimate of the availability of these examples demonstrating how to build reusable components in Seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947334#3947334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting

[JBoss-user] [JBoss Seam] - Re: Web services and Seam

2006-05-29 Thread abirkmanis
"[EMAIL PROTECTED]" wrote : Not really correct. | | For example, if I call a Seam component via RMI, Seam can set up an event context and application contect for me. It just cant do a session or conversation context because RMI can't propagate conversation or session ids. I am specifically t

[JBoss-user] [JBoss Seam] - Re: Scoping for events

2006-05-29 Thread abirkmanis
I am glad I finally managed to formulate my idea. "CptnKirk" wrote : On the other hand, somtimes you want global events, sometimes you want local events. Why not just say: "the scope for the events you want varies", from application-wide (the only choice ATM) to a conversation-wide. "CptnKirk

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-29 Thread abirkmanis
"CptnKirk" wrote : "abirkmanis" wrote : Also note that in case of eager injections (the current mechanizm) new ComponentA().doStuff() throws an NPE, which is hardly better. | Had getB() actually been abstract rather than "conceptually" abstract, the compiler wou

[JBoss-user] [JBoss Seam] - Re: Scoping for events

2006-05-29 Thread abirkmanis
Imagine an application with workspace management, which uses 3rd-party ProductFinder and ProductEditor components (for finding products by some criteria, and modifying a selected product), the finder outjecting a product, and the editor injecting the product. The application has multiple conver

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-29 Thread abirkmanis
"[EMAIL PROTECTED]" wrote : By the way, it is utterly irrelevant whether it is "conceptually" or actually abstract. In either case my arguments apply. Testing is marginally more complex, that's true. But I believe this is outweighted by the improved runtime guarantees. And the difference between

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-29 Thread abirkmanis
"[EMAIL PROTECTED]" wrote : It is difficult to test because | | new ComponentA().doStuff() throws an UOE. I have to subclass the class before I can call its methods. OTOH, componentAFactory.newInstance().doStuff() works fine. Also note that in case of eager injections (the current mechanizm)

[JBoss-user] [JBoss Seam] - Re: Web services and Seam

2006-05-28 Thread abirkmanis
I stand corrected - Seam does not require JSF. But all the operation modes I've seen - JSF, servlet, remoting - assume that the client is HTTP-based. Is this statement more correct? Will the next version (probably in addition to SOA layer, and the already existing client technology adapters) expo

[JBoss-user] [JBoss Seam] - Re: Scoping for events

2006-05-28 Thread abirkmanis
An application-wide instance of Init contains a map from event names to ObserverMethod. While each ObserverMethod certainly has a reference to component to be notified, this is not the feature I miss. My problem is that this mapping from event names to observers is application-wide (read: monol

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-28 Thread abirkmanis
I might have not stressed that enough in the previous posts, but I meant the methods to be conceptually abstract, not formally, e.g.: @Name("a") public class ComponentA { @In("b") protected IComponentB getB() { throw new UnsupportedOperationException(); } public void doStuff() {

[JBoss-user] [JBoss Seam] - Re: Scoping for events

2006-05-26 Thread abirkmanis
events.xml feels like going against the grain of Seam, namely having "drag-and-drop configuration", or "zero configuration". Am I wrong with this feeling? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946855#3946855 Reply to the post : http://www.jboss.com/

[JBoss-user] [JBoss Seam] - Re: Web services and Seam

2006-05-26 Thread abirkmanis
But if I understand that correctly, this would introduce an additional layer of marshalling - first my web service clients go to a SOAP/SeamRemoting bridge, then it talks to Seam components. What I really need is an ability to execute Seam-controlled components from a local Java code, POJO-clien

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-26 Thread abirkmanis
What exactly is a problem? A method that throws an exception? But interceptors are not obliged to call it, right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946845#3946845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[JBoss-user] [JBoss Seam] - Re: Web services and Seam

2006-05-26 Thread abirkmanis
My impression is that current Lifecycle, Manager, and Component are too intimately coupled to JSF to easily use Seam in a "headless" (without JSF) mode. Should we mimic test cases and use mock objects to run Seam under web services? View the original post : http://www.jboss.com/index.html?modu

[JBoss-user] [JBoss Seam] - Re: Scoping for events

2006-05-26 Thread abirkmanis
One idea would be to emulate scopable listeners in application code - by outjecting/injecting listeners, but this only works for one listener per event type (i.e., bijection name). May this be a sign of a feature missing - I mean, some kind of aggregated outjection, where multiple components con

[JBoss-user] [JBoss Seam] - Scoping for events

2006-05-26 Thread abirkmanis
I might be missing something (again), but would not be it nice to have events scopable as well? I mean, currently there is a global (ok, application-wide) map of listeners by event type, which is not very handy in a big application composed from components. Is it feasible to lookup listeners in

[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-26 Thread abirkmanis
Contexts.lookup() is not type safe. Abstract getters need not be abstract from Java point of view, just conceptually. For example, their body can do nothing but throw UnsupportedOperationException. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946761#394676

[JBoss-user] [JBoss Seam] - Re: Factories vs. outjections

2006-05-26 Thread abirkmanis
First of all, thanks for your suggestions. As far as I understood, @Unwrap allows substituting some object (not necessarily an instance of Seam component) when a component was expected, but it does not change the timing of the instantiation. I also realize that instantiation of components can be

[JBoss-user] [JBoss Seam] - Injection via abstract getters

2006-05-24 Thread abirkmanis
Another question (or mayb suggestion on advancement of data-flow synchronization): currently it looks that Seam performs all injections for a component before entering any method of the component (provided interception criteria are met), even if the component is not going to use these values dur

[JBoss-user] [JBoss Seam] - Factories vs. outjections

2006-05-24 Thread abirkmanis
I am trying to understand why @Factory is much less well represented in Seam examples than @Out (7 vs. 21 in CR2). On the first glance, factories seem to play the same role as outjections, just lazy (or call it demand-drivden, pull-like, data flow, etc.). This mode of operation looks safer than

[JBoss-user] [JBoss Seam] - Web services and Seam

2006-05-24 Thread abirkmanis
We are evaluating Seam for use in several projects, and have come up with several questions. One of them is the intended affinity of Seam and web services. Currently, Seam runs in JSF-driven configuration ou of the box; how easy would it be to configure it to expose web services instead of JSF U

[JBoss-user] Web modules started before EJB modules. Why?

2001-05-04 Thread abirkmanis
Hello everyone! Let's examine startApplication(...) in org.jboss.deployment.J2eeDeployer (Revision 1.20 or 1.21, JBoss 2.2.1 or CVS). It starts web modules (lines ca. 403), then it starts EJB modules (lines ca. 423). I didn't find any documentation that explains this choice of behaviour. Would

[JBoss-user] org.jboss.ejb.plugins.jrmp.interfaces.*HandleImpl problem

2001-05-03 Thread abirkmanis
This issue had been risen before, but was never fixed. The problem is, *HandleImpl classes, such as StatefulHandleImpl, in their getEJBObject() contain such a code: ... ContainerRemote container = (ContainerRemote) new InitialContext().lookup("invokers/"+name); ... But wait! Enterprise JavaBeans