[Design of EJB 3.0] - Re: Component Proposal - Configurable Service Locator
by ALRubinger
This weekend I've finally been able to dedicate some time to addressing the issues I'd outlined above. The result is a project including a:
* Public Service Locator
* SLSB and SFSB Test EJBs
* Test Client invoking EJBs using Service Locator
The ServiceLocator is currently configured using a file "META-INF/service-locator.xml", which is responsible for declaring 1 or more JNP Hosts, and then mapping a series of Services (JNDI Addresses) to them.
Once packaged, the Client easily calls invocations:
ServiceLocator.getInstance().getService(TestSfsbRemote.class).test();
...illustrated above as a lookup by interface.
All non-SFSB Services are cached internally by the ServiceLocator such that subsequent requests will not require a trip to JNDI for the stub.
My next steps:
* Integrating with JBoss if approved by EJB3 Spec Leads (Bill, Carlo)?
* Tying into Carlo's Injection Framework to allow field-level injection in addition to static ServiceLocator lookup calls
* Creating a Deployer (or enhancing a current one, EjbDeployer?) to scan for an annotation demarcating which classes contain potential ServiceLocator injections
Should I be placing this project in an SVN Repository I create? As a new project (maybe in JBoss Labs)? I do have committer access but would like someone more familiar with proper policies to let me know where the code would be most welcome.
Some direction, especially from Carlo in regards to getting Injection integrated, would be most appreciated.
I believe this work will greatly simplify the task of creating Distributed Applications in EJB3.
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027043#4027043
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027043
19 years
[Design of JBoss Web Services] - Re: Using jbossws/trunk for jboss-5.0, jboss-4.2, jboss-4.0.
by sudarshan_srivathsav
Hi guys...
when i try execute the ant file after following all the steps....but when i do a ANT....im getting lot of errors like this ,
[sudharsans@linux0064 jbossws-samples-1.2.0.GA]$ ant
Buildfile: build.xml
prepare:
[echo] -----------------------------------------------
[echo] jboss.home = /home/sudharsans/jboss-4.0.5.GA
[echo] tomcat.home = /usr/java/tomcat
[echo] java.home = /apps-es4/vendor/java/jdk1.5.0/jre
[echo] endorsed = /home/sudharsans/jboss-4.0.5.GA/lib/endorsed
[echo] excludesfile = tests-jboss40-noejb3-excludes.txt
[echo] -----------------------------------------------
thirdparty-get:
thirdparty-classpath:
thirdparty:
common-classpath:
jboss-classpath:
tomcat-classpath:
init:
wsconsume:
compile14:
compile15:
[javac] Compiling 215 source files to /home/sudharsans/jbossws-samples-1.2.0.GA/output/classes
[javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTest.java:40: package org.jboss.logging does not exist
[javac] import org.jboss.logging.Logger;
[javac] ^
[javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTest.java:56: cannot find symbol
[javac] symbol : class Logger
[javac] location: class org.jboss.test.ws.JBossWSTest
[javac] protected Logger log = Logger.getLogger(getClass().getName());
[javac] ^
[javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTestHelper.java:33: package org.jboss.logging does not exist
[javac] import org.jboss.logging.Logger;
[javac] ^
[javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/JBossWSTestHelper.java:45: cannot find symbol
[javac] symbol : class Logger
[javac] location: class org.jboss.test.ws.JBossWSTestHelper
[javac] private static Logger log = Logger.getLogger(JBossWSTestHelper.class);
[javac] ^
[javac] /home/sudharsans/jbossws-samples-1.2.0.GA/src/main/java/org/jboss/test/ws/TestDeployerTomcat.java:36: package org.jboss.util does not exist
[javac] import org.jboss.util.Base64;
There are many such errors....arounf 100 errors. IM a real newbie to it..can u guys pls help me to resolve it or atleast can u guys help me giving
a small HELLOWORLD WEBSERVICE example with build file..so that i can get more familiar. It would be so great if u guys could reply as soon as possible ..Since it is very urgent.
SUDARSHAN
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027041#4027041
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027041
19 years
[TODO - DEVELOPMENT] - Re: Web Services
by jhidalgo
"jhidalgo" wrote : I would like to know how to call a C function from within a Web Service I would like to say that I already tried the following: I built a JNI library under Windows, which operates without any problem when called from a Java Application and try to call it from within a Web Service deployed under JBoss running under Windows 2003 without success. I placed the library (dll), built with Microsoft Visual C on several directories: JBOSS_HOME/bin, JBOSS_HOME/server/default/deploy and WINDOWS_SYSTEM, but I never could call the functions of the library from within a Web Service (I got an exception, aborting the Web Service in the tree scenarios). Could anybody tell me whether it is possible to call a JNI library from within a Web Service, please? Is there something special to do to achieve what I want?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026958#4026958
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026958
19 years
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Graphic Installer for Messaging
by vladimir.ralev@jboss.com
We will support only those databases for which we have config files in jboss-messaging-1.2.0.GA\examples\config - mysql, mssql, portgre, sybase, db2 and oracle. (+hsql for non-clustered) If there is something else, let me know.
Here is a screenshot of the JEMS installer's Messaging config dialog (no db, because it uses a datasource defined earlier, which is used for other things too):
http://anonsvn.jboss.org/repos/installer/jems-installer/branches/Branch_J...
And this is how it looks in the dedicated installer (db choice is for clustered configurations only, it's not very clear at the moment):
http://anonsvn.jboss.org/repos/installer/jems-installer/branches/Branch_J...
anonymous wrote : The question is, whether on not we want the user to be able to change these on install, or should we stick with the defaults?
I was hoping you would know :) . If you have any preferences about this comment here. We do have Advanced/Standard selector in the installer (standard is for the defaults). This Messaging Configuration dialog is displayed only if the user is in advanced mode.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026941#4026941
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026941
19 years
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Graphic Installer for Messaging
by timfox
"vladimir.ralev(a)jboss.com" wrote :
|
| Currently we have some issues with the database selection because messaging still suports a limited set of databases. We will probably remove the unsupported dbms' when messaging is selected, and use the full set if the user goes with jbossmq (as before). We may also refactor the Messaging Config panel, because the only real messaging-related config is the security domain.
Hi Vladimir -
Can you tell me which databases the installer will allow to be selected for JBM?
Also, you say the only messaging related config is the security domain, but there are a bunch of other settings too.
The question is, whether on not we want the user to be able to change these on install, or should we stick with the defaults?
I'm not familiar with the installer, but if there is a "custom install" option, then I guess that would be a good place for the user to be able to override the defaults.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026928#4026928
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026928
19 years