users@glassfish.java.net

Re: How to specify metadata of EJB registered as OSGi service?

From: <forums_at_java.net>
Date: Tue, 4 Jun 2013 05:32:32 -0500 (CDT)

If he wants to register additional properties as service properties,
considering three common ways in gf, 1) MANIFEST.MF defining a key eg.
EJBServiceProperties, then the user can write EJBServiceProperties: a, b,
c...... Then, while deploying ejb bundles, by scanning the key, we can
register these EJBServiceProperties , of course, he should first plan to
register an ejb as service. 2) Using asadmin deploy using deploy command's
props to reach the same effect. However, I do not recommend the way because
we will miss the effect of using common osgi install command. 3) Using
annotation in source this is an OSGi EJB RFC's contents and should be
combined with CDI/OSGi. Future's consideration. Tang

--
[Message sent by forum member 'codeprince']
View Post: http://forums.java.net/node/896955