Coherence and JBoss
Hi,
I've been looking for documentation on setting up Coherence as a JBoss service and the only thing I could find in these forums was meant for JBoss 3.2 and Coherence 2.3.1 (see the FAQ titled: How do I test the Transactional Cache?).
Obviously this does not work with JBoss 4.0 and Coherence 3.1.
Is there an updated answer for this question?
Thanks,
Glenn.
Glen,
Coherence is pure Java and does not rely on any JBoss-specific classes or functionality (with a few exceptions listed below), so it has worked fine with every version of JBoss we've ever tested and our customers have ever used.
The areas in which there could be minor conflicts are those areas where Coherence does plug in more tightly with container functionality; for example:
1) Session management: Jboss ships with Tomcat (and there used to be a Jetty option), and Coherence*Web supports Tomcat (and Jetty)
2) JTA transactions via the J2CA adapter (coherence.rar): the note you pointed to
3) Hibernate: Coherence has a brand new provider (in 3.1) for Hibernate, and Hibernate is now a part of Jboss.
As far as I know, there are no known problems with any of the above three items (or others) on Jboss, and if you do encounter any apparent difficulties, just let us know.
Peace,
Similar Messages
-
Using Coherence and Oracle Database as the CacheStore
We are working on implementing a solution using Coherence and Oracle Database as the CacheStore. We initially implemented the Cache as a distributed-scheme which in turn uses the backing-map-scheme. We are trying to introduce transaction management and I used a scheme-ref in a transactional-scheme to point to an already existing distributed-scheme. However when I bring up the server, my custom coherence-cache-config.xml file is not recognized and Coherence comes up with the default setting. Given below is the snippet of my configuration file.
1) I would like to understand why the below configuration doesn’t work and am I doing it the right way? If not, what is the correct way of doing it?
2) There are a multiple transaction management options given in the documentation. Which are the ones that will work with a distributed-scheme and read-write-backing-map-scheme?
3) If transactional-schemes cannot work with distributed-scheme, what is the best way to have a distributed cache with a oracle database as a cache store?
<caching-scheme-mapping>
<cache-mapping>
<cache-name>id<cache-name>
<scheme-name>example-transactional<scheme-name>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<transactional-scheme>
<scheme-name>example-transactional</scheme-name>
<scheme-ref>distributedcustomcache</scheme-ref>
<thread-count>10</thread-count>
</transactional-scheme>
<distributed-scheme>
<scheme-name>distributedcustomcache</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<local-scheme>
<!--scheme-ref>categories-eviction</scheme-ref-->
<scheme-name>inMemory</scheme-name>
</local-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>spring-bean:coherenceCacheStore</class-name>
<init-params>
<init-param>
<param-name>setEntityName</param-name>
<param-value>{cache-name}</param-value>
</init-param>
</init-params>
</class-scheme>
</cachestore-scheme>
<!--refresh-ahead-factor>0.5</refresh-ahead-factor-->
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>Hi,
If you look at the documentation for transactional-scheme here: http://docs.oracle.com/cd/E24290_01/coh.371/e22837/appendix_cacheconfig.htm#BHCIABHA
you will see that it says The transactional-scheme element defines a transactional cache, which is a specialized distributed cache. That means that a transactional-scheme is already a distributed-scheme.
You will see from the same documentation above that there is no way in a transactional-scheme to configure things like cache-stores or listeners or even the backing-map-scheme as these are not supported on a transactional-scheme - so you cannot use a cache store.
Personally I would not use transactional-scheme unless you have some really big reason to do so - the restrictions far outweigh any perceived advantage of having a transaction. There are better ways to build applications so they do not require transactions, that is what we have been doing for years with Coherence so far, and there is no real reason to change that.
JK -
Building the mod_jk between apche and jboss in solaris environment
hi there,
i have installed apache2 and running on one zone and jboss installed and running on another zone
now when i connecting of them using the tomcat connector by building the mod_jk i am getting the error where i have followed the procedure in the following link:
http://blogs.sun.com/shanti/entry/building_mod_jk
from the above link i have downloaded the source and set the path and then when i am running the file which i have saved then i am getting the below error:
./configure --with-apxs=/usr/local/apache2/bin/apxs
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for a BSD-compatible install... scripts/build/unix/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for test... /usr/bin/test
checking for rm... /usr/bin/rm
checking for grep... /usr/bin/grep
checking for echo... /usr/bin/echo
checking for sed... /usr/bin/sed
checking for cp... /usr/bin/cp
checking for mkdir... /usr/bin/mkdir
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
could not find /usr/local/apache2/bin/apxs
configure: error: You must specify a valid --with-apxs path
if any body has encountered such a problem please give me the reply
thank you for allhi o.bogosavljevic
yes i am using that package only
what might be the path of the aspx -
How to compile jsp project on the plateform of Myeclipse and jboss
hi
I m new in jboss application server with myeclipse plateform.
im unable to solve this error.which are occured doring the starting of server in my eclipse.
the error is:-----
13:12:41,484 INFO [Server] Starting JBoss (MX MicroKernel)...
13:12:41,500 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
13:12:41,515 INFO [Server] Home Dir: C:\Program Files\jboss-4.0.4.GA
13:12:41,515 INFO [Server] Home URL: file:/C:/Program Files/jboss-4.0.4.GA/
13:12:41,515 INFO [Server] Patch URL: null
13:12:41,515 INFO [Server] Server Name: default
13:12:41,515 INFO [Server] Server Home Dir: C:\Program Files\jboss-4.0.4.GA\server\default
13:12:41,515 INFO [Server] Server Home URL: file:/C:/Program Files/jboss-4.0.4.GA/server/default/
13:12:41,531 INFO [Server] Server Log Dir: C:\Program Files\jboss-4.0.4.GA\server\default\log
13:12:41,531 INFO [Server] Server Temp Dir: C:\Program Files\jboss-4.0.4.GA\server\default\tmp
13:12:41,531 INFO [Server] Root Deployment Filename: jboss-service.xml
13:12:44,015 INFO [ServerInfo] Java version: 1.4.2_05,Sun Microsystems Inc.
13:12:44,015 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_05-b04,Sun Microsystems Inc.
13:12:44,015 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
13:12:45,750 INFO [Server] Core system initialized
13:12:55,515 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
13:13:09,218 INFO [WebService] Using RMI server codebase: http://shabrez:8083/
13:13:19,578 INFO [MailService] Mail Service bound to java:/Mail
13:13:20,484 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
13:13:20,718 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
13:13:25,109 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000D8000102000000000E3139322E3136382E302E313331000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313331000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
13:13:25,812 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000D8000102000000000E3139322E3136382E302E313331000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313331000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
13:13:27,875 INFO [Embedded] Catalina naming disabled
13:13:28,140 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
13:13:28,140 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
13:13:29,390 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
13:13:29,390 INFO [Catalina] Initialization processed in 1250 ms
13:13:29,406 INFO [StandardService] Starting service jboss.web
13:13:29,406 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
13:13:29,562 INFO [StandardHost] XML validation disabled
13:13:29,640 INFO [Catalina] Server startup in 250 ms
13:13:30,671 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
13:13:31,906 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
13:13:33,515 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
13:13:34,015 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp13610jbossws-exp.war/
13:13:34,531 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
13:13:35,359 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
13:13:39,453 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
13:13:39,593 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
13:13:39,687 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
13:13:39,781 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
13:13:39,906 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
13:13:40,031 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
13:13:44,234 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
13:13:45,640 INFO [A] Bound to JNDI name: queue/A
13:13:45,656 INFO Bound to JNDI name: queue/B
13:13:45,656 INFO [C] Bound to JNDI name: queue/C
13:13:45,656 INFO [D] Bound to JNDI name: queue/D
13:13:45,656 INFO [ex] Bound to JNDI name: queue/ex
13:13:45,718 INFO [testTopic] Bound to JNDI name: topic/testTopic
13:13:45,734 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
13:13:45,734 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
13:13:45,750 INFO [testQueue] Bound to JNDI name: queue/testQueue
13:13:46,000 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
13:13:46,140 INFO [DLQ] Bound to JNDI name: queue/DLQ
13:13:46,609 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
13:13:46,750 ERROR [MainDeployer] Could not create deployment: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/
java.lang.UnsupportedClassVersionError: com/jbosstest/testJboss (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jboss.ws.server.WebServiceDeployerJSE.isWebserviceDeployment(WebServiceDeployerJSE.java:151)
at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:101)
at org.jboss.ws.server.WebServiceDeployerJSE.create(WebServiceDeployerJSE.java:66)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy41.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:464)
at java.lang.Thread.run(Thread.java:534)
13:13:47,000 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
13:13:47,625 INFO [TomcatDeployer] deploy, ctxPath=/testproject, warUrl=.../deploy/testproject.war/
13:13:48,578 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@abba8a12 { url=file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/ }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: com/jbosstest/testJboss (Unsupported major.minor version 49.0)
state: FAILED
watch: file:/C:/Program Files/jboss-4.0.4.GA/server/default/deploy/helloword.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1148111026703
lastModified: 1147940958000
mbeans:
13:13:48,796 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
13:13:49,125 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
13:13:49,312 INFO [JkMain] Jk running ID=0 time=0/328 config=null
13:13:49,328 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:7s:797ms
plz send me the solution of this error.
Thanks.I m new in jboss application server with myeclipse plateform.
im unable to solve this error.which are occured doring the starting of server in my eclipse.
How to compile jsp project on the plateform of Myeclipse and jboss
hi :-) this is not eclipse forum and not that sure about your problem but i'll try to answer :-)
i'm not sure how you create your war but there something wrong with your web.xml. kindly check it :-)
by d way, you can deploy your project in my-eclipse by
- right click on the project then select my-eclipse > Add and Remove Project Deployment's
- a new window will open and you can now configure how you deploy your project :-)
other alternative edit your jboss-service.xml then put something like this
<attribute name="URLs">deploy/, file:/D:/workspace/deploy</attribute>
(note, change the path according to your needs)
regards, -
Relationship between coherence and NIC teaming
Hi,
We are using Tangosol coherence for clustering purpose in our product Webmethods Integration server.
When our server starts up it tries to jojn tne cluster.
Our scenario is this :-
We have 2 servers running on 2 separate boxes A&B.
They are on same network segment.
Multicast test is working properly .
The issue is only one of the nodes(which is started first) in becoming the part of the cluster and other one remain disabled.
We found out that the NIC teaming was disabled in the boxes.
When we enabled NIC teaming with smart load balancing then both the nodes are able to join the cluster.
My specific question is,
Is there any relationship between Tangosol coherence and NIC teaming? If yes, what's the relationship.
Regards,
Ritwik BhattacharyyaI did some tinkering a while back trying to get 4Gb/s bonded etherchannels going on linux boxes but I had issues with out of order and missing packets:
4Gb/s bonded ethernet test results - finally...
But to answer your question there is no reason that you would need NIC teaming on in order to make Coherence work. It sounds like something is not configured correctly with your NIC or switch. Maybe try connecting the machines with a crossover cable instead of a switch just to eliminate the switch as a possible problem. It sounds like maybe you're just using the wrong ethernet port on a server or something.
-Andrew -
Hello! I'm not that new to web programming in Java but there are some things that I think I need to fully understand. Can anyone here give me a comparison between Tomcat and JBoss? What are the similarities and key differences between the two? Tomcat is a servlet container while JBoss is an application container(?? not sure about that, still haven't read enough about it).
Thanks in advance,
RomaineHi Romaine,
Tomcat is not only a servelet container...its actually the webserver which is a servlet container and jsp engine as well.
Where as JBOSS is one of the application servers where it provides the run time environment for the business components( the ejbs) in addition to the support environment for servlets and jsps.
examples of application servers: JBOSS, WEBLOGIC, WEBSPHERE -
Transaction Isolation level in WebSphere and JBOSS???
Hi,
How to set up the transaction isolation level in Websphere and JBOSS???
In weblogic, we can set it in weblogic-ejb-jar.xml. Is there any other file where we can set the isolation level in websphere and jboss???
What is the difference between all the 4 isolation levels such as
1) Transaction_committed
2) Transaction_uncommitted
3)Transaction_Repeatable_read
4)Transaction_serializable
Thanks,
JavaCrazyLoverIn WebSphere 5.1 you can set the isolation level using resource reference. The following link describes the steps involved in this operation. I am not aware how to do the same thing in JBoss.
Regards,
Neo -
Integrate Adobe Flex and JBOSS using BlazeDS
I using this link http://simplyolaf.blogspot.com/2009/07/integrate-adobe-flex-and-jboss-using.html to create Flex Project for Blaze DS. I added the following arguments to the flex compiler: -services "F:/java_WS/iASCUE/WebContent/WEB-INF/flex/services-config.xml" . Can I define relate path? when I put my project on other server it don't work
Does anybody something know?
-
I'm trying to use JAAS to log in a user on a JBOSS app, but am running into a problem. I'm able to successfully authenticate the user, and retrieve a Subject from my LoginContext. However, once that request is done (i.e. the browser displays the "log in complete" page), the application seems to forget that the user was logged in. How does JAAS and JBOSS keep track of the logged in user? Is this done by keeping a singleton of LoginContext around in some scope? Right now I'm creating a new instance of LoginContext, and using it to load a new instance of my CallbackHandler. Note, when I used JBOSS default form based authentication, it kept the user logged in. However, I can't use their default auth because I have some custom things I need to do.
Thanks in advance for any help you provide.Hi,
I tested this on OC4J for you and here - after setting jbo.security.enforce to Must, the user principal name and the roles are displayed.
So there are three possibilities why you don't see things working
- JBoss doesn't add the role principals to the Subject so they become available in the session
- You attempt accessing this information in a prepareSession() override without enforcing authentication to happen for the root page - URL pattern = /
- ADF BC security doesn't recognize the custom role principal
After briefly reviewing the security implementation code, it seems that ADF BC security is dependent on Oracle JAZN for authorization.
Frank -
Weblogic.jar 9.2 and jboss
why when i put weblogic.jar in the jboss classpath or in my .war classpath = web-inf/lib all of its classes are class not found exception
is there a problem with this jar being inside jboss
if i take the same jar and run my application on eclipse everything works fine
but when i debug this problem and try to loader classes, they are not found
its like it being ignored and not loaded like the rest of my jars in the classpath.
is this got anything to do with security?
Edited by: user8709596 on Sep 6, 2009 4:23 AMfound a fix to this problem
weblogic.jar is a standalone jar
remove all javax folder from this jar and this solves the problem
and jboss will load the jar successfuly -
Clarrification about JSF and JBoss Seam
Hi ,
i have just started a couple of hours ago reading about JSF and JBoss Seam and it seems interesting ......
here is my question :
i have a form ( registration form ) written in jsp and a congratulation page (jsp page too)
is right what i am saying ?
JSF form ( input values) are sent to Seam to be validated under hibernate rules and then it( Seam ) responses to the JSF the entity bean .
again JSF form asks Seam to resolve the variable Register ( the value of the submit button in the form) and Seam returns the RegisterACtion
After that the same jsp page invoke the register method of the RegisterAction stateless session beam .inside the register method it redirect the user to congratulation jsp page .
do you think its correct
sorry folks for my english
Best reagrds
yacine fandior maybe if you can give a link of a good tutorial I�ll be greatfull
cheers yacine
Message was edited by:
fandi_yacine -
Can i use ICE Faces and JBoss RichFaces combinely in JSF
hi
I can use ICE Faces and JBoss RichFaces in Jsf.But my requirement is that can i use both(ICE Faces&JBoss RichFaces) components in single .jspx page.is that possible
plz tell me
regards
niranjanthanks for your reply
plz clarify what it means "JSF Implemetation".i.e for example can i place an Rich Face Component In ICEFaces Form
<ice:form>
<rfc:inputText/>
</ice:form>
because we have some components in IFaces and some in JBoss Rich Faces which are needed for our application.
Thanks & regards
nsanagari -
Hi, My company is currently trying to migrate from Weblogic to JBoss.
We have all the jar, war, and xml file.
However, I'm not familiar with all these.
Could someone explain to me what;s the appropriate things to do.
All i know is that putting the war or jar file in a certain directory on Weblogic would result in those files being deployed.
Would JBoss work the same way?
Can I just put these files and will it get deployed?
I have looked through the web and mostly what they're talking about is creating ejbs from scratch (and .ear file also new thing to me) ... which is too technical for me.
Can someone suggest a solution please.
I'm a newbie to this technology.
All help/reply would be a great help.
thanks in advance.Greetings,
Would JBoss work the same way?
Can I just put these files and will it get deployed?Yes, JBoss offers a similar deployment strategy. Presuming you are using JBoss 3.x and starting with default configuration you would place your components into ${JBOSS_HOME}/server/default/deploy and JBoss will auto-deploy them - er, assuming there are no errors in your components... ;) If there are errors then these will either be displayed on the console or in the 'console log' file depending on your startup strategy.
I have looked through the web and mostly what they're
talking about is creating ejbs from scratch (and .ear
file also new thing to me) ... which is too technical
for me.
Can someone suggest a solution please.
I'm a newbie to this technology.Where most of your difficulties are likely to play is in configuring your application's infrastructure - i.e. resources, security model, transactions, etc. Application Servers tend to differ quite a bit on such things (rather, on how to do them...), and JBoss is no exception. Furthermore, JBoss does not have a native GUI for these things which may complicate the matter even more. The best place to start for configuration issues is with the JBoss 3.0.x QuickStart Guide. This book-length guide provides a lot more detail on these matters than might be expected from typical "quick start" document and is available in PDF format for free from the JBoss site Documentation page. While you're there, it is worth-while to investigate the commercial documentation offerings on the same page...
All help/reply would be a great help.
thanks in advance.Regards,
Tony "Vee Schade" Cook -
Log4j and Jboss are acting weird
This question is reagards to Log4j and JBoss and I thought this is the best place to ask this question.
I am using Jboss 3.2.3. My purpose was to log messages in a seperate file "developer.log" using Log4j. These messages has to be logged in this file only. So in my WAR's folder under WEB-INF/classes I created a file log4j.properties:
log4j.logger.standard=DEBUG, devlog
log4j.appender.devlog=org.apache.log4j.RollingFileAppender
log4j.appender.devlog.File=C:/logs/developer.log
log4j.appender.devlog.layout=org.apache.log4j.PatternLayout
log4j.appender.devlog.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%nNow my code :
import org.apache.log4j.Logger;
private static Logger log = Logger.getLogger("standard");
log.debug("a debug message");
log.info("a info message");
log.warn("a war message");I test run this code without Jboss and it works perfect. It created a file "developer.log" in the desired location and logs messages in it.
Now i run with JBoss. JBoss does not create "developer.log" file at all. Instead it logs all the messages in server.log
2005-09-30 23:07:35,459 DEBUG [standard] a debug message
Jboss is recognizing that it is standard but after that it is not gving me the desired results. Any input on how to fix this problem?
TIAYou can tell it you don't want to inherit, by adding
this to your "standard" category tag:
<category name="standard" additivity="false">
thanks. it works perfect.
ok i got it working kind of. Jboss already comeswith
a log4j.xml so i put my log4j stuff in this file :You should be able to deploy your own log4j.xml with
your app's resource files and make it use yours when
it is running your app.Ok I took out my stuff from Jboss log4j.xml, create a new xml progtest.log4j.xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="DEVLOG" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/developer.log" />
<param name="Append" value="true" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" />
</layout>
</appender>
<category name="standard" additivity="false">
<priority value="INFO"/>
<appender-ref ref="DEVLOG" />
</category>
</log4j:configuration>My web application is in a ProgTest.WAR folder. I put the above file "progtest.log4j.xml" under WEB-INF/classes in ProgTest.WAR folder. When i run the app the very first problem again arises that no developer.log file was created; instead the concerned messages were put into server.log and console.
All my classes are in one jar file. I include progtest.log4j.xml in that jar file, redeploy it and test it but still the same problem.
What i am doing wrong here?
Thanks -
Install both Sun Application server and Jboss application server- Can I?
Dear all,
I am programmer and want to test for something.
Is it possible to install sun application server and jboss application server in the same computer (Windows XP Professional)?
Is there any special attention I need to take?I am programmer and want to test for something.Allowed.
Is it possible to install sun application server and jboss application server in the same computer (Windows XP Professional)?Why do you think it may not be possible ?
Is there any special attention I need to take?just the way the URL is populated.
Maybe you are looking for
-
Report with top 10 tables ...
Hello ! I need to create an report with the top 10 tables : 1 - The most bigger tables 2 - The most access tables 3 - The bigger number of sorts 4 - The physical access 5 - The bigger shared memory use The first one i can get from dba_segments, but t
-
Hi, We are in receipt of the Notice for Assessment from the I.T Dept.They have asked for u201CBooks of accounts for the Financial Year in CD form for Stock register, Purchase Register and Sales Register, Ledgeru201D Can any one proprose the best sol
-
Hello, I'm creating a bdc for create customer transaction (FD01). The problem I'm currently having is on maintaining the "other communication" details for the customer. The requirement I have is to maintain only the communication type "URI". But I
-
I have created a program with its name not beginning with letter 'z' or 'y' and it ran perfectly without any error. Though it prompted error in other cases as in objects, structures etc.So i want to know what can be the cause of it? Is it a bug in t
-
This is a new computer. I set up a new account. When I click on Music, Import does not appear to allow me to add my CD's