[Beginners Corner] - Cannot connect to port 1099
by bkaremba
Hi
I am using JBoss 3.2.7 and I have an application that need to connect to the server via port 1099. However I am getting the error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out
A "netstat -ao" shows me that java.exe is listening on localhost:1099 (and other ports)
However when I try to "telnet 127.0.0.1 1099" or "localhost 1099" all I get is:
¼?sr?java.rmi.MarshalledObject|??ù?c?>??I?hashlocBytest?[BobjBytesq~?xp?O?»ur?[B¼??°T??xp#¼?t?http://Brian:8083/q~q~uq~??¼?sr o
rg.jnp.server.NamingServer_Stub??xrjava.rmi.server.RemoteStub????ïße?xr?java.rmi.server.RemoteObject?a?æ
a3??xpw5
UnicastRef2
10.2
U,c?Çx?J?
Connection to host lost.
C:\Documents and Settings\Administrator>
I can telnet into all other ports on the localhost that java.exe is listening on except 1099. Please help.
Regards
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967841#3967841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967841
19 years, 8 months
[JBoss jBPM] - Cannot connect to port 1099
by bkaremba
Hi
I am using JBoss 3.2.7 and I have an application that need to connect to the server via port 1099. However I am getting the error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out
A "netstat -ao" shows me that java.exe is listening on localhost:1099 (and other ports)
However when I try to "telnet 127.0.0.1 1099" or "localhost 1099" all I get is:
¼?sr?java.rmi.MarshalledObject|??ù?c?>??I?hashlocBytest?[BobjBytesq~?xp?O?»ur?[B¼??°T??xp#¼?t?http://Brian:8083/q~q~uq~??¼?sr o
rg.jnp.server.NamingServer_Stub??xrjava.rmi.server.RemoteStub????ïße?xr?java.rmi.server.RemoteObject?a?æ
a3??xpw5
UnicastRef2
10.2
U,c?Çx?J?
Connection to host lost.
C:\Documents and Settings\Administrator>
I can telnet into all other ports on the localhost that java.exe is listening on . Please help.
Regards
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967832#3967832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967832
19 years, 8 months
[JBoss Seam] - Re: Merging objects problems.
by sjmenden
I will post my code to satisfy curiosity although there is not much to look at.
Using Conversation scope seems very strange to me in this instance. I guess SEAM caters to a whole new realm of patterns that don't exist in the other MVC world.
Registering a Group SHOULD be stateless, at least I thought so, but in this case you are saying it should be Conversational. I really don't want any other functionality in this bean at the moment except registering groups. A completely different bean will handle viewing and editing the Group.
RegisterGroupAction.java:
| @Stateless
| @Name("registerGroup")
| public class RegisterGroupAction implements RegisterGroup {
|
| @In(create=true) @Out @Valid
| private Group group;
|
| @PersistenceContext
| private EntityManager em;
|
| @Logger
| private Log log;
|
| public String register() {
| List existing = em.createQuery("select name from Group where name = :name")
| .setParameter("name", group.getName())
| .getResultList();
| if (existing.size()==0) {
| //group = em.merge(group);
| em.persist(group);
|
|
|
| FacesMessages.instance().add("Group successfully created");
| log.info("Registered new Group #{group.name} with id: " + group.getGroupId());
| return "/showGroup.jsp";
| } else {
| FacesMessages.instance().add("Group name already exists, please choose another");
| return null;
| }
| }
| }
|
registerGroup.jsp - the commandButton is only relevant I think
| ...
| ...
| ...
| <h:commandButton type="submit" value="Greate Group" action="#{registerGroup.register}"/>
| ...
| ...
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967830#3967830
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967830
19 years, 8 months