Re: [jboss-user] [JBoss Microcontainer Development] - Weld - pull from MC
by Pete Muir
Pete Muir [http://community.jboss.org/people/petemuir] replied to the discussion
"Weld - pull from MC"
To view the discussion, visit: http://community.jboss.org/message/552176#552176
--------------------------------------------------------------
> -If using a separate @McInject annotation instead of @Inject to do injection the annotated field does not appear in invocation context's injection points meaning all the fields etc. need to be parsed from invocation context's target's class (I am not sure if the target will always be non-null?)
It will always be non-null, otherwise we will be trying to inject into a null instance...
> -It does not get triggered when calling constructors
Correct, but it is probably reasonable to extend it support this for Weld 1.1
> -If using the @Inject annotation with an additional @Mc annotation (to look up the particular injection point in the MC) falls over when calling proceed(), also again a problem is that you need to iterate over all fields etc. to look for the members. This also fails in the validation pha
It is possible to overcome this, but I think it just points at underlying problems of this approach.
At the moment I'm pretty unconvinced about adding these extra SPIs because I remain unconvinced of the validity of this approach - essentially you are opening the door for introducing other resolution algorithms which aren't spec'd, which I don't see the value of for users.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/552176#552176]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months
Re: [jboss-user] [JBoss Tools] - Driver Definition/JDBC driver
by darren hartford
darren hartford [http://community.jboss.org/people/dhartford] replied to the discussion
"Driver Definition/JDBC driver"
To view the discussion, visit: http://community.jboss.org/message/552171#552171
--------------------------------------------------------------
I figured out the DTP issue, I was used to using the database-specific enablements, with 1.7.0-up it seems to be wrapped underneath a single plugin (at least that is what it appears) instead of individual plugins, but doesn't seem to be working like previous setups -- see below.
If you are using the JPA project, hibernate tools project, etc, there is the, under Eclipse->preferences, the Data Management->Connectivity section that lists all jdbc.jar's loaded into the system and the jdbc-url templates ready to go. Once the Data Management/connectivity is setup with those jdbc.jar/templates, all the other tools can now use those references. Using your words --
"expose a driver jar in a plug-in and create a driver template that automatically picks up the jar in the plug-in and pre-populates"
What I am looking for, whether with DTP or some other plugin, is a way to get all those jdbc.jar's setup, templates setup, exposed through Data Management->Connectivity through some type of plugin approach instead of always browsing through the filesystem to setup the jars.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/552171#552171]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 12 months