How to import CMP EJB which are generated outside sun ONE studio

I have some generated EJBs, a stateless session bean and a CMP Entity bean. how do i import them inside the sun studio so that i can do all the mapping with the database table and create an archieve for deployment?

I have been unsuccessful in deployment of the jar file by manually creating the descriptor files as per DTD. I found out that sun studio generated file sun-ejb-jar.xml" contains

<cmp>

<mapping-properties> pcImpl0/moduleComp1/com/blackboard/parliament/ejb/vendor/entity/vendor/vendor.m apping

</mapping-properties>

</cmp>

which doesn't make sense to me. Please let me know.

Regards,

Pradeep.

[701 byte] By [704522] at [2007-11-25 9:44:12]
# 1
You can import the source directory by file -> mount file Systems -> local directories. You can mount the directory which contains the EJB.Let me know if you have any issues.Thanks,-Parsu.
709121 at 2007-7-1 18:51:34 > top of Java-index,Development Tools,Java Tools...
# 2
I am having a similar problem.Once you mount the filesystem, the files are just treated as standard .java and .xml files. Can you get Studio to treat these J2EE objects as session beans, entity beans etc?
BrettRobertson at 2007-7-1 18:51:34 > top of Java-index,Development Tools,Java Tools...
# 3

The easiest way to import non studio J2EE artifacts is to use the import ear capability. This feature allows a standard ear archive to be imported into studio. A typical ear does not have source, but the source directories can be mounted ahead of the filesystems containing the class files (which can then be unmounted).

cbwebster at 2007-7-1 18:51:34 > top of Java-index,Development Tools,Java Tools...
# 4

Thanks for the advice. Not really what I was after since the EJBs haven't been packaged into an .ear file yet.

I did find however, that if you create a EJBs so that the classnames match those from the non-Studio artifacts, and then copy the source files on top of the Studio-generated class files, Studio refreshes with the changes correctly. This is not as good as I would have liked, but it's pretty quick as long as there aren't lots and lots of EJBs.

BrettRobertson at 2007-7-1 18:51:34 > top of Java-index,Development Tools,Java Tools...