[Clustering/JBoss] - Re: JBoss Cluster using Gossip Router
by bstansberry@jboss.com
The connections to 1199 and 1198 are for a JNDI lookup. The 5446 connection is most likely made by an EJB proxy that was returned by the JNDI lookup.
Have a look at the config of the "jboss.remoting:service=Connector,transport=socket" mbean in conf/jboss-service.xml. By default the "serverBindAddress" attribute is set to ${jboss.bind.address} which will resolve to whatever address you pass to -b. If you want the server to listen on vpnip, you'd start JBoss with -b vpnip.
You can also have a look at the "jboss:service=Naming" which has "BindAddress" and "RmiBindAddress" attributes. Compare those configs to what you see in the "jboss.remoting:service=Connector,transport=socket"; it will probably give you a clue as to why JNDI is behaving differently from the remoting connector in your config.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228675#4228675
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228675
17 years
[EJB 3.0] - Re: Annotating @persistencecontext from a different ear
by erili
Ok.
Then I'll have to figure out a different solution. The bbb-ear is a large application with slow release cycles. I'm developing a maintenance application (aaa.ear) that deploys as a stateless EJB that can pull entities from the main application and send data from them to a client through JMX. So the ejb in aaa.ear need to access some entities in bbb and it would be really nice if this could be done through the same persistence context that the main application is using.
This would allow the maintenance guys to hot deploy the hook ear, run some batch jobs and whatnot and undeploy it without having to clutter the main application.
I guess I could connect directly to the datasource, but then the cache would be bypassed and only reads would be possible.
Am I trying to do something impossible? Are there any other approaches I should look into? I'm very new to JavaEE, I hope I'm not asking dumb questions.. Oh, the shame..! :-)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228667#4228667
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228667
17 years
[JBoss Portal] - user role and several portals
by bilou690
hello all,
i have a portlet with an url but when i click on the link nothing...
i don't unerderstand where is the problem
this is the code of my class :
|
|
| import java.io.IOException;
| import java.io.PrintWriter;
|
| import javax.portlet.GenericPortlet;
| import javax.portlet.PortletException;
| import javax.portlet.PortletRequestDispatcher;
| import javax.portlet.RenderRequest;
| import javax.portlet.RenderResponse;
| import javax.portlet.UnavailableException;
|
| public class SimplePortlet extends GenericPortlet {
|
| /* (non-Javadoc)
| * @see javax.portlet.GenericPortlet#doView(javax.portlet.RenderRequest, javax.portlet.RenderResponse)
| */
| @Override
| protected void doView(RenderRequest request, RenderResponse response)
| throws PortletException, IOException, UnavailableException {
| response.setContentType("text/html");
| PortletRequestDispatcher prd=getPortletContext().getRequestDispatcher("/WEB-INF/jsp/hello.jsp");
| prd.include(request, response);
| }
|
| @Override
| protected void doHelp(RenderRequest request, RenderResponse response)
| throws PortletException, IOException {
| // TODO Auto-generated method stub
| PrintWriter writer=response.getWriter();
| writer.write("this portlet displays hello world in a jsp ");
| writer.close();
| }
|
| }
|
this is the code of my jsp :
| <?xml version="1.0" encoding="ISO-8859-1" ?>
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
| pageEncoding="ISO-8859-1"%>
| <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
| <title>Hello</title>
| </head>
| <body>
| Allons visiter une page :
| <a href=" www.google.fr">google</a>
| </body>
| </html>
|
i can't go to google for example through my portlet
thanks
bilou690
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228660#4228660
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228660
17 years
[Microcontainer] - Re: Conflict between ejb3 deployer and custom GenericAnnotat
by alesj
"gregory.mostizky(a)gmail.com" wrote : I think it makes sense that the one you posted is the one causing the conflict.
| Just from quick look at its source code, it seems that it applies additional filtering and scoping on top of GenericAnnotationDeployer which is consistent with what I saw when I disabled my custom deployer - I could get AnnotationEnviroment but some classes were missing (i.e. filtered out).
|
Ah, ic.
Yes, we do some filtering chain, in order not to scan too much by default.
But you can change that easily.
"gregory.mostizky(a)gmail.com" wrote :
| So the root of the problem seems to be that it is possible to use both of them and each one will try to overwrite AnnotationEnviroment attachment with slightly different data resulting in unpredictable behavior. Since both attachments are valid the fix IMO should be just assigning unique "attachment ids" to each one instead of both sharing AnnotationEnviroment.class
I still think we should force usage of a single AE.
As encouraging multiple AE is not the way to go,
performance wise in the first place.
I'll need to change this filtering anyway,
as I should do scanning no matter if JBossMD says it's complete.
e.g. I should scan @Entity anyway
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228656#4228656
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228656
17 years