[JBoss Seam] - Re: Quick entity question
by ellenzhao
"fhh" wrote :
| Not sure what you mean by that. The whole point of an entity bean is to hold persitent data.
|
Well, I guess Manuel takes an "Entity" more like a concept, a description, a skeleton of something which has some properties and can behave.
"fhh" wrote :
| Why not inject the entity bean into the service objects? If you use Seam, you might as well do things the Seam way.
|
Well, if you started out with a very clear awareness of the behaviors of the entities in your application (for most web applications, that's CRUD), it's best to inject the entity bean into the service objects. That's sending data to computation. But under some situation, you have a clear layout of the data (entity properties) but do not know how to deal with the data in an application from the beginning, you need to send computation to your data. If your entity "knows" how to crunch its own data (and inter-entity data), your entity is more reusable in a larger scale.
http://www.isi.edu/expect/papers/papers-ontos.html
http://www-ksl.stanford.edu/KSL_Abstracts/KSL-89-50.html
Aside from the "knowledge storing" for entities (even if we do not bind behaviours to entities using rule engine), expert systems have been very successful in hardware configuration for decades of years. Nowadays the software is becoming more and more modular, assembling software modules is pretty like assembling hardware modules. Why cannot we use expert systems to configure a big software system given well defined entities and services?
That said, personally I feel Seam + Drools approach is more flexible, more expressive and more intuitive than the Spring + AOP thing. Dealing with cross-cutting concerns? Rule engines are _very_ good at that.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066852#4066852
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066852
18Â years, 9Â months
[Installation, Configuration & DEPLOYMENT] - Re: jboss installation with easyEclipse JbossIDE
by wagner
Hi Peter,
As a jboss installation method I just extracted the jboss zip file in the folder below:
/windows/programasLinux/programmin-java-appServers/jboss-4.0.4GA/
The /windows partition is a FAT32 formated by window SO. It it is not a windows installation.
I think so, It is possible that I am with a enviroment issue. So I am printing here my situation to you examine:
I am working with a Debian 4.0
-------------------------------------------------------------------
infor-5:/home/wagner# uname -a
Linux infor-5 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 GNU/Linux
infor-5:/home/wagner#
infor-5:/home/wagner# apt-cache policy sun-java5-jdk
sun-java5-jdk:
Instalado(installed): 1.5.0-10-3
Candidato(candidate): 1.5.0-10-3
Tabela de versão:
*** 1.5.0-10-3 0
500 ftp://ftp.debian.org stable/non-free Packages
100 /var/lib/dpkg/status
wagner@infor-5:~$
wagner@infor-5:~$
wagner@infor-5:~$ su
Password: ********
infor-5:/home/wagner# update-java-alternatives -l
java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
infor-5:/home/wagner# java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
infor-5:/home/wagner# javac -version
javac 1.5.0_10
(...)
infor-5:/home/wagner# echo $JAVA_HOME
(none)
infor-5:/home/wagner# echo $JRE_HOME
(none)
And I guive the 777 (total permission) to the Jboss folder to prevent privelegies issues.
Again, thaks a lot.
wagner
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066849#4066849
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066849
18Â years, 9Â months
[JBossWS] - wsrunclient error
by bglasco
Jboss 4.2 java 5 and jbossws 2.0
Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Prov
ider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.Prov
iderImpl
at javax.xml.ws.spi.Provider.provider(Provider.java:98)
at javax.xml.ws.Service.(Service.java:83)
at events.SdtwsService.(SdtwsService.java:40)
at events.SdtClient.main(SdtClient.java:14)
Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Prov
ider: org.jboss.ws.core.jaxws.spi.ProviderImpl
at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96)
at javax.xml.ws.spi.Provider.provider(Provider.java:90)
... 3 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedExceptio
n
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066841#4066841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066841
18Â years, 9Â months