Discussion:
[jboss-user] [IronJacamar] - Supporting SocketAddress as a config property?
Philippe Marschall
2013-01-01 14:08:41 UTC
Permalink
Philippe Marschall [https://community.jboss.org/people/pmm] created the discussion

"Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/786929#786929

--------------------------------------------------------------
I know this isn't part of the spec but supporting SocketAddress as a config property would be a really nice enhancement. Resource adapters often need to bind or connect to sockets. So you'll have to reimplement this every time and also which interfaces need to be bound. There is ususally support for this in the application server, but since it's not a "native" configuration property type you can't hook into it.

In the same vain supporting List properties would be nice, so that you can have a list of addresses to bind.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/786929#786929]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2013-01-02 13:20:46 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/787034#787034

--------------------------------------------------------------
Complex objects like SocketAddress and List won't be supported any time soon.

The config-property's are initialized before the resource adapter is started, connection factories bound in JNDI, ... so it would require a very explicit lifecycle model. Not to mention the marshal/unmarshal of their values.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787034#787034]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Philippe Marschall
2013-01-02 15:13:27 UTC
Permalink
Philippe Marschall [https://community.jboss.org/people/pmm] created the discussion

"Re: Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/787074#787074

--------------------------------------------------------------
Post by Jesper Pedersen
Complex objects like SocketAddress and List won't be supported any time soon.
The config-property's are initialized before the resource adapter is started, connection factories bound in JNDI, ... so it would require a very explicit lifecycle model. Not to mention the marshal/unmarshal of their values.
Yeah. It's just something common that adaptors need to do and it would be cool if the application server could do the heavy lifting. There doesn't seem to be a JCA 1.7 planned for EE 7 so I thought I'd mention it. I guess I can still hope for a JCA 1.8 in EE 8 :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787074#787074]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2013-01-02 15:18:03 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/787076#787076

--------------------------------------------------------------
I'm working on JCA 1.7 right now, but it is just a spec update to align with EE 7.

But yeah, we will return to JCA in EE 8 for sure if I have anything to say about it ;)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787076#787076]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Philippe Marschall
2013-01-02 16:28:52 UTC
Permalink
Philippe Marschall [https://community.jboss.org/people/pmm] created the discussion

"Re: Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/787098#787098

--------------------------------------------------------------
Post by Jesper Pedersen
I'm working on JCA 1.7 right now, but it is just a spec update to align with EE 7.
But yeah, we will return to JCA in EE 8 for sure if I have anything to say about it ;)
Cool, while we're at it it would be cool if MessageEndpoint could implement AutoCloseable so that it can be used in a try-with-resources block.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787098#787098]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Jesper Pedersen
2013-01-02 21:07:34 UTC
Permalink
Jesper Pedersen [https://community.jboss.org/people/jesper.pedersen] created the discussion

"Re: Supporting SocketAddress as a config property?"

To view the discussion, visit: https://community.jboss.org/message/787153#787153

--------------------------------------------------------------
And what is stopping you from doing that ?

I'm not seeing the use-case, as the release method provides a hint that the resources should be released. That is very different than a close.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787153#787153]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Loading...