[JBoss-user] [EJB 3.0] - Re: EJB3 remote client

2006-03-21 Thread nickthegreat
anonymous wrote : 
  | Is there a possibility to get this to work? 
  | 

no.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931633#3931633

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931633


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - odd @verison behaviour

2006-03-21 Thread nickthegreat

started an ejb3 project / persistence layer/unit without @version annotion.

tried the @version annotion today with the following very strange result:

after deployment the schema update worked fine, the optlock/version column got 
created with default values null.

now it gets strange: whenever an object got "touched" (by SLSB's) it got 
duplicated(!) in db with version property set to 0 ???

What's going on here ?
Anyone any idea ? 
Bug or feature :) ?
HEM dokumenation is rather minimalistic with respect to this annotation. 

I dont need it for my current EJB3 project, so this hab been a just for fun 
attempt .. but it's really puzzles me ...


tia for infos, regards, ntg.

   


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931632#3931632

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931632


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?

2006-03-21 Thread nickthegreat
Addition:

Yes, there is a "cleaner" workaround than e.g .size() on lazy collections 
before returning them if I remeber correctly.
But it's Hibernate specific ... something like Hibernate.initialize(lazyset) 
(too lazy to look up in hibernate reference, but it should be similar)

If you are using EJB3 because it's a standard rather than a particular 
implementation, Hibernate specific code aint good I guess.

Dont know if there's a real "clean" plain EJB3 solution, both avoiding dummy  
access to lazy collection before returing it or using hibernate specific code.

Personaly  I prefer the .size() one, just get sure that it's good documented.
   


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931542#3931542

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931542


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?

2006-03-21 Thread nickthegreat

yes, I also find this rather unintuitive.
a lazy collection "per se" is a just  an "empty" proxy object, that's only 
"filled with live" when actually being accessed.
returning a "pointer" of the proxy doesnt count as being accessed.

why it is designed that way -> you have to ask the hibernate creators :)
probably performance ...
  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931538#3931538

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931538


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?

2006-03-20 Thread nickthegreat
correction:
u.size(); // dummy operaton to initialize (fill) lazy collection 
replace with ->
orders.size();

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931465#3931465

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931465


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?

2006-03-20 Thread nickthegreat
anonymous wrote : 
  |  was under the impression that as soon as I entered a method in a stateless 
session bean, under the hood the hibernate session is re-opened and therefore I 
can access any level in the graph that I want. 
  | 

you are under the right impression.

in the stateless/stateful session bean you CAN access any level in the object 
graph ... of course you cant in any "higher" level

for me this always worked ok ... so it must be something stupid ...

plz try this:

public List getOrdersForUser(String userName)
{
User u = entityManager.find(User.class,userName);
// a check if a user with this name is actualy found wouldn't hurt
List orders = u.getOrders(); 
u.size(); // dummy operaton to initialize (fill) lazy collection 
return L;
} 

or a completely different query:
(not sure if really correct, but something like that)
...
em.createQuery("select o from orders o where o.user.name=:name");
em.setParamter("name", userName);
return em.getResultList();

hth, ntg


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931464#3931464

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931464


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-17 Thread nickthegreat

Bingo ! Success :)

With the version of 
server/default/deploy/ejb3.deployer/META-INF/jboss-standard.xml you've posted 
it (finally) works great :)
 
Thx a lot for the quick help :-)))



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931059#3931059

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3931059


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat
details of the ejb3 deployer xml:

before modification (out of the box):


  |   
  |   jboss.aop:service=AspectDeployer
  |   socket://${jboss.bind.address}:3873
  |   
  |  
  | org.jboss.aspects.remoting.AOPRemotingInvocationHandler
  |  
  |   
  |
  | 

after modification


  |  
  |   jboss.aop:service=AspectDeployer
  |   socket://${jboss.bind.address}:3873
  | 
  |   
  |   
  | 
  | 1
  | 303
  | 304
  | 1
  | ${jboss.bind.address}
  | 3873
  | external-ip
  | 3873
  | false
  | 200
  | 
  | 
  | 
  | org.jboss.aspects.remoting.AOPRemotingInvocationHandler
  | 
  |   
  |  
  | 
  |
  | 
  | 


new error msg:


  | vax.naming.NamingException: Could not dereference object [Root exception is 
org.jboss.remoting.CannotConnectException: Can not get connection to server.  
Problem establishing socket connection.]
  | at 
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | at javax.naming.InitialContext.lookup(Unknown Source)
  | at GetBeans.lookup(GetBeans.java:72)
  | at TestLookup.main(TestLookup.java:17)
  | Caused by: org.jboss.remoting.CannotConnectException: Can not get 
connection to server.  Problem establishing socket connection.
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:253)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:136)
  | at org.jboss.remoting.Client.invoke(Client.java:444)
  | at org.jboss.remoting.Client.invoke(Client.java:407)
  | at 
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
  | at 
org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:34)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
  | at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:46)
  | at $Proxy0.createProxy(Unknown Source)
  | at 
org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:47)
  | at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
  | at 
org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
  | at 
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
  | ... 5 more
  | Caused by: java.net.ConnectException: Connection timed out: connect
  | at java.net.PlainSocketImpl.socketConnect(Native Method)
  | at java.net.PlainSocketImpl.doConnect(Unknown Source)
  | at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  | at java.net.PlainSocketImpl.connect(Unknown Source)
  | at java.net.SocksSocketImpl.connect(Unknown Source)
  | at java.net.Socket.connect(Unknown Source)
  | at java.net.Socket.connect(Unknown Source)
  | at java.net.Socket.(Unknown Source)
  | at java.net.Socket.(Unknown Source)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:517)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.getConnection(SocketClientInvoker.java:457)
  | at 
org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:249)
  | ... 18 more
  | 


Connection refused because it tries to talk to internal server ip on port 3873 
:/

big question is why is "it" ignoring external ip in clientconnectadress still 
tries to connect via serverbindadress ?

also seems to ignore @remotebinding annotation ... but this one needs retesting 
on my side ...

regards, ntg

 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930885#3930885

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930885


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net

[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat

tried it ..

unfortunately no change :(

just remotebinding annotation, remotebinding annotation plus 
clientConnectAddress=external ip in ejb3-deployer/metainf ...
no remotebinding annotion and clientconnectadress=external ip in ejb3-deployer 
xml ... 

in all cases client always wants to connect to internal ip of server on port 
3873 regarding my packet logs ;-(



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930848#3930848

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930848


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat
last one for today ;)

this [url=http://www.jboss.com/index.html?module=bb&op=viewtopic&t=69484]
post [/url] 

looks like it might be of interesst ...

in particular the "clientConnectAddress" property of the ejb3-deployer.

but format seems to have changed in meantime ???
mine looks quite different, did it change ?
cant see clientConnectAddress ... gone ?

confusing/confused  :/



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930834#3930834

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930834


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat

perhaps it's relevant/interesting that the ejbs are 
annoted both local and remote

@RemoteBinding(clientBindUrl="socket://external-ip:3873") 
@Remote
@Local 

... interface ...



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930803#3930803

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930803


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat

unfortunately, it doesn't seem to work :-(

test scenario:

server inside nat'ed network
jboss started via -java.rmi.server.hostname=external-ip
ports 1098,1099,,4445,3783 forwarded ...

locking at the captured packets while lookup is done iclearly shows why it 
dopesnt work ->

communication on port 1098/1099 works ok ...
but looking at the packets on port 3783 -> still wants to talk to servers 
internal ip :-(
thout it's annotated as
@RemoteBinding(clientBindUrl="socket://**EXTERNAL-IP**:3873") 

*sigh*

anyone any idea 
   
regards, ntg

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930800#3930800

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930800


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat

thx for the reply/help :)

yes, looks *very* good so far :)
a comlete test takes some time, but I'm very optistic.

so there currently is no way to define/override the 
@RemoteBinding(clientBindUrl="socket://IP:PORT")  annotation somewhere in 
jboss-xml's ?
not much fun to recompile everytime IP changes / new server deployment :)

btw: ports  and 4445 (default jrmp/pooled) aint used for ejb3 anymore ?

just RemoteBinding's port+ 1098/1099 ???



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930749#3930749

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930749


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: (BIG) Problems with bean-lookup in NAT enviroment, EJB3R

2006-03-16 Thread nickthegreat
Update:


[url=http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3877360] 
post look like a good hint[/url]

could't try out yet, but opening port 3873 plus changing client-connect 
adressress to external ip  at least I can see I my logged packets that "it" 
wants to connect to the servers intenral ip on 3873 :)

Important question:
 
anonymous wrote : 
  | @RemoteBinding(clientBindUrl="socket://66.56.72.34:3873")
  | 
  | where the external address for my server is 66.56.72.34. 
  | ...
  | 
  | In a future release of ejb3, this should not be required and should pick up 
the proper locator url as specified in the server (via the jboss-service.xml). 
However, overriding the bind information for the client will always be allowed 
via the RemoteBinding annotation (if have a particular need for this). 
  | 
  |   

Well, in a future release of ejb3, this should not be required and should pick 
up the proper locator url as specified in the server (via the 
jboss-service.xml).

ok, now we have a future verison of ejb3 :)
alsoready possible ?
if so ? 
how ?

Annotating server ip's in source code is *really* bad :/
in particular if the ip changes frequently :

best regards, ntg


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930715#3930715

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930715


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - (BIG) Problems with bean-lookup in NAT enviroment, EJB3RC5,

2006-03-16 Thread nickthegreat
Enviroment: JAS 4.0.4RC1, EJB3RC5

The error I get is:


  | javax.naming.CommunicationException [Root exception is 
java.rmi.ConnectException: Connection refused to host: ; nested 
exception is: 
  | java.net.ConnectException: Connection timed out: connect]
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | at javax.naming.InitialContext.lookup(Unknown Source)
  | at GetBeans.lookup(GetBeans.java:72)
  | at TestLookup.main(TestLookup.java:17)
  | Caused by: java.rmi.ConnectException: Connection refused to host: 
; nested exception is: 
  | java.net.ConnectException: Connection timed out: connect
  | at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
  | at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
  | at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
  | at sun.rmi.server.UnicastRef.invoke(Unknown Source)
  | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
  | ... 4 more
  | Caused by: java.net.ConnectException: Connection timed out: connect
  | at java.net.PlainSocketImpl.socketConnect(Native Method)
  | at java.net.PlainSocketImpl.doConnect(Unknown Source)
  | at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
  | at java.net.PlainSocketImpl.connect(Unknown Source)
  | at java.net.SocksSocketImpl.connect(Unknown Source)
  | at java.net.Socket.connect(Unknown Source)
  | at java.net.Socket.connect(Unknown Source)
  | at java.net.Socket.(Unknown Source)
  | at java.net.Socket.(Unknown Source)
  | at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown 
Source)
  | at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown 
Source)
  | ... 10 more
  | 

Lookup Code is vanialla/standard:


  | private static Properties JNDINameFactory(String host)
  | {
  |   Properties properties = new Properties();
  |   
properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
  |   
properties.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
  |   properties.put("java.naming.provider.url", "jnp://"+host );
  |   properties.put("jnp.disableDiscovery", "true");
  | 
  |   return properties;
  | }
  | 
  | public BeanContainer lookup() throws NamingException {
  | 
  |   BeanContainer bc = new BeanContainer();
  |   
  |   getEJBPropertiesFromFile(); // getting JBOSS server IP+port from file
  |   Properties p = JNDINameFactory(asIP+":"+asPort);
  |   
  |   System.out.println("HOST: "+asIP+" IP: "+asPort);
  |   
  |   Context context=null;
  |   try {
  |   
  |   System.out.println("inital context lookup");
  |   context = new InitialContext(p);
  |   System.out.println("done");
  | 
  |   } catch ( Exception ex ) { ex.printStackTrace(); return bc; } 
  |   
  |try {
  |  System.out.println("bean lookup");
  |  bc.CoreBean =(CoreServiceInterface) 
context.lookup("CoreServiceBean/remote");
  |  bc.ExoticBean =  (ExoticInterface) 
context.lookup("ExoticBean/remote");
  |  System.out.println("done");
  |   } catch ( Exception ex ) { ex.printStackTrace(); return bc;} 
  |   
  |   return bc;
  | }
  | 

Well, basicly a well known problem, JNDI/JBOSS in NAT enviroment


The standard workaround:

Adding 

-Djava.rmi.server.hostname="exptrernal-ip" \
-Djava.rmi.server.uselocalHostname=false \

to the jboss run-script / jboss JVM paramters.

of course I've forwared all RMI/JNDI ports correctly.
(1098/1099//4445)


starting without(!) java.rmi.server.hostname ->

lookup works in intranet .. but not remotely
lookup from remote clients -> error msg:
 
javax.naming.CommunicationException [Root exception is 
java.rmi.ConnectException: Connection refused to host: ; nested 
exception is: 

this is ok/expected ...

but when starting with java.rmi.server.hostname="external-ip"
I ALWAYS get 
javax.naming.CommunicationException [Root exception is 
java.rmi.ConnectException: Connection refused to host: ; nested 
exception is: ...

no matter if lookup is done from inernal-net or remotely.

real strange thing: if I try netcat external-ip 1099 it gives back same data.
if I look at the traffic via ethereal where are a couple a tcp/ip packets send 
from server to client and vice-verce on port 1099.
but it still gives the connection refused error !!!???

I've tried it in various(!) NAT enviroments, always the same behaviour. 

I know the  java.rmi.server.hostname= workaround worked when I worked on a 
NON-EJB3 projekt with JBOSS 4.0.3
(In the same(!) network / enviroment I want to get this EJB3 stuff working)

Please heee

[JBoss-user] [EJB 3.0] - Re: Cannot recognize polymorphic properties in a query

2006-03-15 Thread nickthegreat
[Quote]
Anyway, it might be not the most proper way to call it.
[/Quote]

I'd call it subclass specific property ...
(I dont like to call it polymorphic-property because they are very 
anti-polymorphic (polymophic in terms of generic programing) )

Anyway, no matter how we call this ->  about the question about using 
properties declared in an inherited class of the ref type.

If you want to use a property only a certain subclass defines, you have to use 
that subclass. (obviously the superclass cant be used)

superclass.subclasspecificproperty cant work. 
even in plain java. 

in other words: no, this kind of queries dont work.

of course you can do a query for all users and find out  
via reflection which u.perons are studnents and for those
which studentproperties= ?

sorry for the long verison of it doesnt work ;)




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930478#3930478

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930478


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Cannot recognize polymorphic properties in a query

2006-03-15 Thread nickthegreat

>From my understanding of polymophism I wouldnt call this a polymorphic query:
from User u where u.person.someStudentProperty = whatsoever.
you are referring to a specific subclass in a "non polymorphic" way.
(e.g violatinmg LSP)
just imagine you would have write this query in plain java.

I guess the semantics of the query should be:
get all Students with certain studentproperties ...
-->
from Students s where s.person.someStudentProperty = should work.

anonymous wrote : 
  | from User u where u.person.somePersonProperty = whatsoever..." works 
correctly ..
  | 
yes, because this IS a polymorphic query whilst  from User u where 
u.person.someStudentProperty = whatsoever aint ...

-> IMHO: no bug, it's a feature :)

hth, ntg  




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930312#3930312

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930312


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: datasource not found ...

2006-03-08 Thread nickthegreat

Thx to everyone for help -> it's highly apreciated :) 
Finally got it working, basicly via RTFM (more carefully) ;)
Overead the J2SE-example-persistence.xml in HEM "doco" -> which helped solving 
this problem very quickly ... 
 





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928904#3928904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928904


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: datasource not found ...

2006-03-08 Thread nickthegreat
Wah, sorry for my infinite stupidy

this is supposted to be a reply to
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78780


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928759#3928759

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928759


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - datasource not found ...

2006-03-08 Thread nickthegreat
Ah, thx a lot :)


  | EntityManagerFactory emf2 = Persistence.createEntityManagerFactory("mos", 
new HashMap());
  | 

works indeed better

new exception:


  | FATAL DatasourceConnectionProvider:55 - Could not find datasource: 
java:/mystDS
  | javax.naming.NameNotFoundException: mystDS not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
  | at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
  | at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
  | 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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
  | at sun.rmi.transport.Transport$1.run(Transport.java:153)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
  | at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
  | at sun.rmi.server.UnicastRef.invoke(Unknown Source)
  | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | at javax.naming.InitialContext.lookup(Unknown Source)
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:28)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:414)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:575)
  | at 
org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:118)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:165)
  | at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:103)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
  | at com.ttech.myst.client.test.Test2.main(Test2.java:69)
  | Exception in thread "main" javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:173)
  | at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:103)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
  | at com.ttech.myst.client.test.Test2.main(Test2.java:69)
  | Caused by: org.hibernate.HibernateException: Could not find datasource
  | at 
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:56)
  | at 
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
  | at 
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:28)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1881)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1174)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:414)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:575)
  | at 
org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:118)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:165)
  | ... 3 more
  | Caused by: javax.naming.NameNotFoundException: mystDS not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
 

[JBoss-user] [EJB 3.0] - Problems with getting EntityManagerFactory via JNDI

2006-03-08 Thread nickthegreat
Hi all,

Scenario/Problem: Client needs to get an Entitymanager / Entitymangerfactory 
via JNDI.

Studying docs/wikis/forum I came up with this:


  |  try {
  |  Context context = new InitialContext();
  | EntityManagerFactory emf = (EntityManagerFactory) 
context.lookup("java:/EntityManagerFactory");
  | logger.debug("emf "+emf);
  | //manager = emf.createEntityManager(); 
  | 

persistence.xml:


  |   
  |org.hibernate.ejb.HibernatePersistence
  |java:/mystDS
  |
  |
  |
  |   
  |   
  |
  | 
  | 
  | 

Problem: It always returns null :(

I've also tried it that way:


  |  EntityManagerFactory emf2 =Persistence.createEntityManagerFactory("mos");
  | emf2.cerate
  | //manager = emf2.createEntityManager(); 
  | 

(and putting persistence.xml to META-INF)

but this gives this exception:


  | Exception in thread "main" javax.persistence.PersistenceException: 
java.lang.NullPointerException
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:173)
  | at 
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:103)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
  | at 
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
  | at com.ttech.myst.client.test.Test2.main(Test2.java:68)
  | Caused by: java.lang.NullPointerException
  | at 
org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:68)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:139)
  | ... 4 more
  | 


For stateless/full beans getting the entitymanager 
via injection works wunderful, (via @PersistenceContext(unitName="..."))
and I'm awre that calling beans in hte client rather than putting the 
bussinesslayer/EJB3 queries directly into the client is suboptimal, but I cant 
avoid it in my case :-((( (long story)


Any help would be greatly appriciated :) 
thx in advance, nick

 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928731#3928731

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928731


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: client jars for EJB3 RC4 & JBOSS 4.0.3SP1

2006-02-01 Thread nickthegreat

ok, this makes sense, thx for quick answer  & sorry for my stupidity :]

anyway, unfortunately, it doesnt solve my problem (I didnt mention in the 
question/post) ... thought it's related to the client-jars but unfortunatly it 
didnt help .. so I guess I'll start a new one :/

  

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921026#3921026

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921026


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - client jars for EJB3 RC4 & JBOSS 4.0.3SP1

2006-02-01 Thread nickthegreat

well, the installation guide says ...

Installing into JBoss 4.0.3SP1
[...]
because you patched 4.0.3SP1/, the client jars ... will be invalid.
build your client classpath from
../lib; /server/all/lib ; /server/all/deploy ...

funny thing is that those client jars aint in either of thse directories.

e.g we have an outdated jnp-client.jar in /jboss-4.0.3SP1
jnp-client.jar is not contained in any of those dirs

jboss-4.0.3SP1/lib
jboss-4.0.3SP1/server/all/lib
jboss-4.0.3SP1/server/all/deploy/ejb3.deployer
jboss-4.0.3SP1/server/all/deploy/jboss-aop-jdk50.deployer

so how does it help to set the client classpath to them ?


---







View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921011#3921011

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921011


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: JNDI Lookup & JBoss EJB 3.0 RC4 ???

2006-01-31 Thread nickthegreat

thx ycswyw, worked perfectly :)







View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920818#3920818

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920818


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - JNDI Lookup & JBoss EJB 3.0 RC4 ???

2006-01-31 Thread nickthegreat
JBoss 4.0.3SP1 with EJB 3.0 RC4

trying to get the trailblazer jboss-ide demo running with it.
(got it working with RC3)

deployment seems to be ok ...


  | 15:49:37,459 INFO  [Ejb3AnnotationHandler] found EJB3: ejbName=AuthorsBean, 
class=org.jboss.ejb3demo.AuthorsBean, type=STATELESS
  | 15:49:37,474 INFO  [Ejb3Deployment] EJB3 deployment time took: 62
  | 15:49:37,490 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:service=EJB3,jar=authors-beans.ejb3,name=AuthorsBean with 
dependencies:
  | 15:49:37,490 INFO  [JmxKernelAbstraction]   persistence.units:unitName=it
  | 15:49:37,506 INFO  [EJB3Deployer] Deployed: 
file:/D:/jboss/server/default/deploy/authors-beans.ejb3
  | 15:49:37,615 FATAL [PersistenceXmlLoader] it JTA
  | 15:49:37,615 INFO  [Ejb3Deployment] EJB3 deployment time took: 31
  | 15:49:37,615 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:unitName=it with dependencies:
  | 15:49:37,615 INFO  [JmxKernelAbstraction]   
jboss.jca:name=MySqlDS,service=DataSourceBinding
  | 15:49:37,662 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.ejb3demo.Article
  | 15:49:37,677 INFO  [Ejb3Configuration] found EJB3 Entity bean: 
org.jboss.ejb3demo.Author
  | 15:49:37,677 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.ejb3demo.Article
  | 15:49:37,677 INFO  [EntityBinder] Bind entity org.jboss.ejb3demo.Article on 
table ARTICLES
  | 15:49:37,709 INFO  [AnnotationBinder] Binding entity from annotated class: 
org.jboss.ejb3demo.Author
  | 15:49:37,709 INFO  [EntityBinder] Bind entity org.jboss.ejb3demo.Author on 
table AUTHORS
  | 15:49:37,771 INFO  [CollectionBinder] Mapping collection: 
org.jboss.ejb3demo.Author.articles -> ARTICLES
  | 15:49:37,818 INFO  [ConnectionProviderFactory] Initializing connection 
provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
  | 15:49:37,834 INFO  [InjectedDataSourceConnectionProvider] Using provided 
datasource
  | 15:49:37,834 INFO  [SettingsFactory] RDBMS: MySQL, version: 4.1.10-log
  | 15:49:37,834 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, 
version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 
17 Nov 2005) $, $Revision$ )
  | 15:49:37,834 INFO  [Dialect] Using dialect: 
org.hibernate.dialect.MySQLInnoDBDialect
  | 15:49:37,849 INFO  [TransactionFactoryFactory] Using default transaction 
strategy (direct JDBC transactions)
  | 15:49:37,849 INFO  [TransactionManagerLookupFactory] instantiating 
TransactionManagerLookup: 
org.hibernate.transaction.JBossTransactionManagerLookup
  | 15:49:37,849 INFO  [TransactionManagerLookupFactory] instantiated 
TransactionManagerLookup
  | 15:49:37,849 INFO  [SettingsFactory] Automatic flush during 
beforeCompletion(): enabled
  | 15:49:37,849 INFO  [SettingsFactory] Automatic session close at end of 
transaction: disabled
  | 15:49:37,849 INFO  [SettingsFactory] JDBC batch size: 15
  | 15:49:37,849 INFO  [SettingsFactory] JDBC batch updates for versioned data: 
disabled
  | 15:49:37,849 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 15:49:37,849 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
  | 15:49:37,849 INFO  [SettingsFactory] Connection release mode: 
after_statement
  | 15:49:37,849 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
  | 15:49:37,849 INFO  [SettingsFactory] Default batch fetch size: 1
  | 15:49:37,849 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 15:49:37,849 INFO  [SettingsFactory] Order SQL updates by primary key: 
disabled
  | 15:49:37,849 INFO  [SettingsFactory] Query translator: 
org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 15:49:37,849 INFO  [ASTQueryTranslatorFactory] Using 
ASTQueryTranslatorFactory
  | 15:49:37,865 INFO  [SettingsFactory] Query language substitutions: {}
  | 15:49:37,865 INFO  [SettingsFactory] Second-level cache: enabled
  | 15:49:37,865 INFO  [SettingsFactory] Query cache: disabled
  | 15:49:37,865 INFO  [SettingsFactory] Cache provider: 
org.hibernate.cache.HashtableCacheProvider
  | 15:49:37,865 INFO  [SettingsFactory] Optimize cache for minimal puts: 
disabled
  | 15:49:37,865 INFO  [SettingsFactory] Structured second-level cache entries: 
disabled
  | 15:49:37,865 INFO  [SettingsFactory] Statistics: disabled
  | 15:49:37,865 INFO  [SettingsFactory] Deleted entity synthetic identifier 
rollback: disabled
  | 15:49:37,865 INFO  [SettingsFactory] Default entity-mode: pojo
  | 15:49:37,881 INFO  [SessionFactoryImpl] building session factory
  | 15:49:38,006 INFO  [SessionFactoryObjectFactory] Not binding factory to 
JNDI, no JNDI name configured
  | 15:49:38,006 INFO  [SchemaUpdate] Running hbm2ddl schema update
  | 15:49:38,006 INFO  [SchemaUpdate] fetching database metadata
  | 15:49:38,006 INFO  [SchemaUpdate] updating schema
  | 15:49:38,037 INFO  [TableMetadata] table found: ejb3test.ARTICLES
  | 15:49:38,037 INFO  [TableMetadata] columns: [title, articleid, authorid, 
body]
  | 15:49:38,037 INF

[JBoss-user] [EJB 3.0] - Re: persistence.xml in EJB3.0 RC4

2006-01-31 Thread nickthegreat

Bingo :-)

Thx a lot jc7442, changing persistence.xml fixed the deplyoment problems.

now I'm getting problems with lookup, but that's a differnt story, need to look 
into this later ...


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920646#3920646

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920646


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: persistence.xml in EJB3.0 RC4

2006-01-31 Thread nickthegreat
Sorry, no clue, just experienced a similar problem with RC4 :(

got the trailblazer jboss-ide demo working under  RC3.
Fails with RC4.

persistence.xml

 
  | 
  | http://java.sun.com/xml/ns/persistence"/>
  | 
  |it
  |org.hibernate.ejb.HibernatePersistence
  |java:/MySqlDS
  |
  |
  | 
  |  
  |
  | 
  | 


  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: jboss.j2ee:service=EJB3,jar=authors-beans.ejb3,name=AuthorsBean
  |   State: NOTYETINSTALLED
  |   I Depend On:
  | persistence.units:unitName=it
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:unitName=it
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  | jboss.j2ee:service=EJB3,jar=authors-beans.ejb3,name=AuthorsBean
  | 

no errors reported, "just" doesnt deploy anymore ...

there is some vague / not really helpful  hint at the 
FromJBossEJB3.0RC3ToRC4PFD wiki -> 
The persistence.xml schema has changed in the specification. 
See the tutorials or the spec for more details.
but couldnt find out what actually changed.
sorry for my stupidity if this is obvious :/


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920625#3920625

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3920625


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: JBOSS EJB3 RC4 ???

2006-01-24 Thread nickthegreat

ah, that's great/good news, thx for the quick infos :)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919391#3919391

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919391


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - JBOSS EJB3 RC4 ???

2006-01-24 Thread nickthegreat
Is there any JBoss EJB3 RC out reflecting the latest bunch of Hibernate updates 
(which brings compliance with the EJB3 public final draft)
(Annotation 3.1beta8, EntityManager 3.1 beta6, Core 3.1.1)

If not is it planned ? 
If so Is there an approximate ETA ?

I've installed JBoss with EJB3 RC3
(Annotation 3.1beta7, EntityManager 3.1 beta5, Core 3.1)
How to update to Annotation 3.1beta8, EntityManager 3.1 beta6, Core 3.1.1 ?
Is it as easy as putting updated jars to... \ejb3.deployer ???
ejb3-persistence, hiberernate-annotations.jar,  hibernate-entyitymanger.jar, 
hibernate3.jar -> probably yes, but dont know about the remaing ones ...

Thx i.a for any help :)


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919298#3919298

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919298


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - Re: Code Completion Not Working

2006-01-13 Thread nickthegreat
This really really should be mentioned in the JBoss IDE EJB 3.0 Tools 
trailblazer video or any kind of (official) documentation 
!

Feelt sooo stupid not being able to get code completation to work :-(

Unless I found this post, thx :)



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917340#3917340

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917340


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user