[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: log multile FILEs appender on JBoss
PeterJ wrote : The logger that the code is getting is not the appender, but rather the category (perhaps it should be Lopgger.getLoggerCategory()). | | If you want to log to different log files you must use different categories. Example: | | appender name=A .../ | | appender name=B .../ | | category name=a | | appender-ref=A/ | | /category | | category name=b | | appender-ref=B/ | | /category | | Your Java code then looks like: | | Logger x = Logger.getLogger(a.wombat); | Logger y = Logger.getLogger(b.wombat); | | different categories ? Can I define my own category? I found these only in jboss-log4j.xml : !-- Limit the org.apache category to INFO as its DEBUG is verbose -- |category name=org.apache | priority value=INFO/ |/category | |!-- Limit the jacorb category to WARN as its INFO is verbose -- |category name=jacorb | priority value=WARN/ |/category | |!-- Limit the org.jgroups category to WARN as its INFO is verbose -- |category name=org.jgroups | priority value=WARN/ |/category | |!-- Limit the org.quartz category to INFO as its DEBUG is verbose -- |category name=org.quartz | priority value=INFO/ |/category View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166777#4166777 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JAVA_HOME is not set. Unexpected results may occur.? JB
PeterJ wrote : The fact that new system properties are not found by the services until after you reboot the PC is not a JBoss Native bug - it is the operating system, and specifically the service manager, that is not registering the env var changes until a reboot. Therefore you should not have opened a JIRA. There is nothing that the JBoss team can do to fix this. thanks for your explaination. I closed it. At least I can update the Jboos Wiki, it might be helpful for others. anonymous wrote : Also, I did mean service.bat. I meant it too. sorry, that's my typo previously to answer jakiran. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166778#4166778 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: logging from java.util.logging
SO by default idoes not? would you have an example for the logging configuration has logging statements got to stdout or stderr? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166783#4166783 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Hibernate/Writes but does not loads
you must enable second level cache: | property name=hibernate.cache.use_second_level_cache value=true / | And cache is used in that situations: | Whenever you pass an object to save(), update() or saveOrUpdate() and whenever you retrieve an object using load(), get(), list(), iterate() or scroll(), that object is added to the internal cache of the Session. | http://www.hibernate.org/hib_docs/reference/en/html/performance.html Maybe you are using session.createQuery which uses cache in different ways. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166786#4166786 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: org.hibernate.HibernateException: null index column for
anonymous wrote : to be honest, I do not know why i am posting question on this forum, since I am the one who only answers on them, and I really do not think I will have an answer on this one :) Sorry, but that might have to do with how questions are posed, what info is provided etc... - do you use spring jBPM template? if so, ditch it (not spring, just this template, it's officially only for 3.1.x afaik) - Do both the junit and tomcat use spring? - Same jbpm config? (not e.g. one without and one with transactions configured) - same transactionmanager? - same transactionmanager config? - if you cut spring out of it (for this specific situation) does it work then? anonymous wrote : NOTE: since I am using JBPM with spring and within a big enterprise application, I am not able to send short Unit test, that someone can try locally. Hmm.. strange Does this mean you have very few big classes that do a lot of work? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166795#4166795 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166795 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task Node Question - How to end blocking tasks
anonymous wrote : I have tried a number of approaches, none of them work. What have you tried? Asking politely? Shouting? Commanding? Begging? All of the above? for task nodes just not signal the node but the task.. look at the testcases in the source how that is done, or simple deduce from the api View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166796#4166796 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Oracle Error Keyword from missing
oracle boolean substitutions? property name=hibernate.query.substitutionstrue 1, false 0/property View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166797#4166797 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about JobExecutor and Threads
I miss your point... They are different because in JEE we can use something that is already there and is proven. For the other envs the jobexecutor is there Making a new JEE jobexecutor seems illogical to me View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166798#4166798 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - shared object between layers and nodes
Hi, I would like share an contextual object (user id ...) between layers (presentation, business) and cluster node. the aim will be to avoid pass parameters for all business services. how to realise this without handle, just with ThreadLocal. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166799#4166799 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JBoss Cache performance looks pretty poor :(
Ok then a simple modulus spread should be all you need. The depth of the tree only matters if you are using the lockParentForChildInsertRemove option, which is disabled by default. Regarding balancing, you do not need to balance the tree, since it's not a b-tree. You just need a reasonable spread across nodes, since a node only supports 4 concurrent inserts at a time. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166803#4166803 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Newbie JBoss Clustering Problem
See Thread at: http://www.techienuggets.com/Detail?tx=45902 Posted on behalf of a User Hi, I have two JBoss Servers: 4.2.3.GA (Windows XP) and 4.2.1.GA (Windows 2000). They are running in the all server configuration. My problem is that they don't discover each other. The Windows XP on start up shows the following message: 12:49:09,906 INFO [DefaultPartition] Number of cluster members: 1 12:49:09,906 INFO [DefaultPartition] Other members: 0 12:49:09,906 INFO [DefaultPartition] Fetching state (will wait for 3 millis econds): 12:49:09,906 INFO [DefaultPartition] State could not be retrieved (we are the f irst member in group) I haven't restarted the JBoss running on Windows 2000. I have disabled the firewall on the Windows XP box. Thanks for any advice. ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Wierd behavior with reply queue
The solution was settting KeepAliveMillis setting for the MDB in standardjboss.xml ti a larger value. It was set to 30 secs. When I was sending a large batch size, the MDB thread that takes car of the reply would timeout. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166807#4166807 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Exception with AroundInvoke
I wrote a Profiler with AroundInvoke, and here is the code: import javax.interceptor.*; | import javax.ejb.*; | | public class Profiler | { | public Profiler() { | } | | @AroundInvoke | public Object profile(InvocationContext ctx) throws Exception | { | System.out.println(there); | long t1 = System.currentTimeMillis(); | try | { | return ctx.proceed(); | } | finally | { | long t2 = System.currentTimeMillis() - t1; | System.out.println(ctx.getMethod().getName() + | ( + ctx.getParameters()[0] + ) took: + | ((t2 - t1)/ 1000.0) + ms); | } | } | } | I used it to annotate a class like this: @Interceptors ({Profiler.class}) When I invoke the EJB, I got this: 2008-07-26 11:35:03,675 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | org.jboss.tutorial.entity.bean.WSException: web service failed | at org.jboss.tutorial.entity.bean.CalculatorBean.testReflect(CalculatorBean.java:305) | 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:585) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.invoke(InvocationHandlerEJB3.java:103) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:220) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at
[jboss-user] [EJB 3.0] - Re: Exception with AroundInvoke
I copied the code from a book, and the problem is with: ctx.getParameters()[0] When the invoked func has no param, the code fails. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166810#4166810 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Migration EJB2 - EJB3
Ejb3 is very well discussed for 3 years ;) Look at theserverside.com - source for many good discussion on JEE. [url]http://www.theserverside.com/search.tss?rankBy=size=start=q=ejb3+vs+ejb2dateRange=all [/url] For me most important is testability: you can start enity factory manager in 6 seconds without server ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166812#4166812 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Migration EJB2 - EJB3
Ejb3 is backward compatible, so would advice to write only new code in ejb3, and don't rewrite your ejb2 code but only when you really need. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166814#4166814 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JBoss Cache performance looks pretty poor :(
Thank you so much. I've bookmarked this and will change my code. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166821#4166821 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - JCA - Implementation and Correct Usage
I am evaluating JCA for an upcoming project. I have the following the requirements: I have one or more TCP log servers on a remote device. These logging servers emit ASCII strings when a remote client connects to listen to the log. The log entries spit out one string at a time. If I have understood the purpose of JCA correctly, these log servers play the role of the EIS asset and I will have to develop a TCP RA adapter to enable my application running in JBoss AS to receive the log strings. Is it possible for me to build a resource adapter and have an EJB connect to the log servers automatically when ever the container starts and remain connected until the container shutdowns? Or would it be simpler to create a Servlet Context listener with a simple outboard socket connect? Any suggestions and commentary would be appreciated. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166825#4166825 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Delivery Final Failure Notice
Can not deliver the message you sent. Will not retry. Sender: jboss-user@lists.jboss.org The following addresses had delivery problems [EMAIL PROTECTED] Reply from 192.168.0.5[192.168.0.5]: 550 5.1.1 User unknown ---BeginMessage--- http://news-press.ru ---End Message--- ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: reuse same transaction hit error in JBoss
anyone? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166828#4166828 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: reuse same transaction hit error in JBoss
anyone? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4166829#4166829 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user